c0mm4nd / dart-secp256k1

Fucking dart!!! Force me to write all deps!!!
https://pub.dev/packages/secp256k1
MIT License
12 stars 1 forks source link

result not equal BouncyCastleProvider #1

Closed vast-z closed 3 years ago

vast-z commented 4 years ago

Thank you very much, I really need this library, but the string after the hash is signed with the private key is different every time. I don’t know the principle, can you help me?

c0mm4nd commented 4 years ago

this is a signature curve not for hashing. I cannot understand why you need the consistent result.

I havent used java nor BouncyCastle. As far as I known, the dart port of this, pointycastle, doesnt have secp256k1 support.

The reason why different every time is here https://github.com/C0MM4ND/dart-secp256k1/blob/72182100d5445b23bae633bfa4e10e4c94614bf9/lib/src/base.dart#L217

Please briefly describe your actual demand and then I am able to help you.

c0mm4nd commented 3 years ago

Close this issue because no further reply