Skip to content
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

Test vectors for BIP32 derivation with leading zeros (to sync with BIP) #55

Closed
wants to merge 15 commits into from

Conversation

dgpv
Copy link

@dgpv dgpv commented Nov 4, 2020

The code in bitcointx correctly handles this, but just to be in-sync
with the text of the BIP, use the new test vectors submitted in
bitcoin/bips#1030 (when it is merged)

dgpv and others added 14 commits December 4, 2020 13:16
This built-in function is faster, and using it, we can avoid
copying as much data around, since each slice will be copying.
It also is easier to read.
@classmethod parameter is always a type, so the check was meaningless
This also removes the need for the stream to be seekable
f.tell() was used to get the stream position for better error message,
but this means the stream has to be seekable. Instead of this
constraint, just check if the stream has 'tell' attribute and provide
a lambda that return '<untracked>' for the error message instead of the
position
Previously the empty witness that was supplied to CTransaction.__init__
was not checked for compatibility with currently selected witness
class for mutable transaction, it just replaced with new CTxWitness() instance.
After this change, it is checked that the supplied instance was compatible
with new instance
@dgpv dgpv force-pushed the modified-bip32-test-vectors branch from 4084cc1 to b41a484 Compare December 4, 2020 08:16
The code in bitcointx correctly handles this, but just to be in-sync
with the text of the BIP, use the new test vectors submitted in
bitcoin/bips#1030 (when it is merged)
@dgpv
Copy link
Author

dgpv commented Jul 15, 2021

Done with 33ededb

@dgpv dgpv closed this Jul 15, 2021
@dgpv dgpv deleted the modified-bip32-test-vectors branch July 15, 2021 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants