Giter Site home page Giter Site logo

Comments (6)

badboy-tian avatar badboy-tian commented on July 29, 2024
compiler message: file:///Users/tian/.pub-cache/hosted/pub.dartlang.org/pointycastle-0.11.1/lib/macs/hmac.dart:82:28: Error: The parameter 'params' of the method 'HMac::init' has type pointycastle.api::KeyParameter, which does not match the corresponding type in the overridden method (pointycastle.api::CipherParameters).
compiler message: Change to a supertype of pointycastle.api::CipherParameters (or, for a covariant parameter, a subtype).
compiler message:     void init(KeyParameter params) {
compiler message:                            ^
compiler message: file:///Users/tian/.pub-cache/hosted/pub.dartlang.org/pointycastle-0.11.1/lib/src/api/mac.dart:26:8: Context: This is the overriden method ('init').
compiler message:   void init(CipherParameters params);
compiler message:        ^
compiler message: file:///Users/tian/.pub-cache/hosted/pub.dartlang.org/pointycastle-0.11.1/lib/signers/ecdsa_signer.dart:129:55: Error: The parameter 'signature' of the method 'ECDSASigner::verifySignature' has type pointycastle.api.ecc::ECSignature, which does not match the corresponding type in the overridden method (pointycastle.api::Signature).
compiler message: Change to a supertype of pointycastle.api::Signature (or, for a covariant parameter, a subtype).
compiler message:   bool verifySignature(Uint8List message, ECSignature signature) {
compiler message:                                                       ^

from web3dart.

simolus3 avatar simolus3 commented on July 29, 2024

The crypto library used by this project isn't ready for dart 2 (which Flutter uses by default) yet. When PointyCastle/pointycastle#122 lands, I will upgrade this library so that it will work with Flutter.

If you urgently need to use this library, consider disabling dart 2 for Flutter with this guide. I will close this issue when this library and all its dependencies support dart 2, although that might break backwards-compatibility for some APIs.

from web3dart.

badboy-tian avatar badboy-tian commented on July 29, 2024

Thank you

from web3dart.

badboy-tian avatar badboy-tian commented on July 29, 2024

@simolus3 Hi, the PointyCastle has a RC version solved the dart 2 problem. PointyCastle/pointycastle#125

from web3dart.

badboy-tian avatar badboy-tian commented on July 29, 2024

@simolus3 can you please fix this issue ? thank you very much

from web3dart.

simolus3 avatar simolus3 commented on July 29, 2024

It should be fixed in version 0.3.0 of this library which is now out on pub. Let me know if you run into any further issues.

from web3dart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.