Closed peipeitu closed 3 years ago
I was about to post this, I noticed this happens about 1% of the times when signing an input of a bitcoin transaction.
happens here to. but only several times - any ideas?
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 0.0036 RBTC (201.57 USD @ $55993.0/RBTC) attached to it.
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
Work for 0.0036 RBTC has been submitted by:
PR created for the issue: https://github.com/dart-bitcoin/bip32-dart/pull/10
I don't think it's it solved for every case. Please check https://github.com/ivaneidel/bip32-dart/blob/16025317311d0a8a3c41829af66d35d155d42166/test/ecc_test.dart for a test that was added, which is still facing the same issue.
I will check that and come back to you!
I‘ve got an error when using function sign(hash, x) which is
import 'package:bip32/src/utils/ecurve.dart' as ecc;
The expected sig is
00349f1a2df670db4ec676674489f12684afb0ca8225e02a1299c01b8c9c99804837d43fce2267e2200526f0ad304360a5371f859698c2a1c042004c85f1c985
But it throw an error:
I just found it’s because the length of
encodeBigInt(sig.r)
is 31, butbuffer.setRange(0, 32, list)
need 32. If the resultencodeBigInt(sig.r)
can be length 32 with 0 fixed in the front of the list, it will be right.I hope this problem can be fixed.