-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid derivation result for specific path #1
Comments
both libraries agree on the result of |
Can you see if It's what happen to me. So I guess the issue has something to do with this line: https://github.com/anicdh/bip32-dart/blob/master/lib/src/bip32_base.dart#L103 Looking deeper. |
That pair yields different results for me |
When do I added |
Thanks everyone for report and helping |
seed:
xprv9s21ZrQH143K3Jpuz63XbuGs9CH9xG4sniVBBRVm6AJR57D9arxWz6FkXF3JSxSK7jUmVA11AdWa6ZsUtwGztE4QT5i8Y457RRPvMCc39rY
path:
m/1'/199007533'/627785449'/1521366139'/1'
result:
xprvA39a1i4ieYqGXFQSJ1HtoUVPqzUXU1JgUW4RMgzhv8HuPvkjWBKpMCxFGU4tJKfH83m6QmiWUe2w1zfQBxRkoAoSVtYE6ZbA9RDBjZiPU7M
expected:
xprvA39a1i4ieYqGUQ7G1KGnaGzGwm7v3emjms3QN4jZ3HPeubXjshA3XjD5XFaiNgWFvoyC2NV5jN4eFcsVhkrWkvwR4qjdPbue3kpt6Ur3JRf
expected value verified both using bitcoinjs/bip32 as well as bip32.org.
Looks like the derivation is skipping to the next index due to the check in bip_base.dart#109
Deriving
m/1'/199007533'/627785449'/1521366139'
produces the correct result so only the last segment causes the issue.Test code:
The text was updated successfully, but these errors were encountered: