Closed querli closed 9 months ago
@justkawal
Looking into it.
@justkawal
Can you share your intToBytes function ?
On my side I used the internal Utilities class methods to convert the BigInt
to Bytes
.
@querli I haven't done the Hash.hashSHA256
on line 6 because sign function already does that internally on calling sign
method:
Thank you very much for your answer? Is now positioning is intToBytes function problem, use the library is web3dart 2.7.2, link is https://pub.dev/packages/web3dart, due to the cognition is not deep, specific don't know what is the difference between transformation!
Hey @querli, not sure I understood your comment. You mean you were using another lib to make the convertion? But did your problem get solved now?
Yes, I used the web3Dart library. Since secp256K1 cannot be used, I relied on your secp256k1_ecdsa separately. Now I use secp256k1_ecdsa to convert the data format
hmacSha256
Is this optional parameter hmacSha256 also a sha256 hash function? What if you use it?
May I ask whether recovery in Signature can control the automatic addition of 27? Make recovery 27 or 28. At present, I process this data manually.