Skip to content

test: add BIP32 vectors 3 and 4 to the extendedkey self-test - #36185

Closed
fametrano wants to merge 1 commit into
bitcoin:masterfrom
fametrano:test-bip32-vectors
Closed

fametrano wants to merge 1 commit into
bitcoin:masterfrom
fametrano:test-bip32-vectors

Conversation

@fametrano

@fametrano fametrano commented Sep 7, 2026 •

Copy link
Copy Markdown

test_bip32_vectors covers BIP32 vectors 1 and 2 only. Vectors 3 and 4 test retention of leading zeros in a private key and hardened derivation over such a key — the cases implementations have historically got wrong.

Both run against the existing API; no new capability is needed.

Made with my usual tools: a computer, the Internet and an LLM. The mistakes, as usual, are all mine.

@DrahtBot DrahtBot added the Tests label Sep 7, 2026
@DrahtBot

DrahtBot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.

Type Reviewers
ACK rkrux

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

@fametrano

Copy link
Copy Markdown
Author

@rkrux @w0xlt @pseudoramdom @achow101 since you wrote or reviewed #35543: this adds BIP32 vectors 3 and 4 to its test_bip32_vectors. Would you take a look?

test_bip32_vectors covers vectors 1 and 2 only. Add vectors 3 and 4 from
BIP32, which exercise retention of leading zeros in a private key and
hardened derivation over such a key. Both run against the existing API.

@rkrux rkrux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unenthusiastic ACK 5b761e3

I reviewed this PR because I authored this file but usually marginal impact PRs such as this don't get much review.

@fametrano

Copy link
Copy Markdown
Author

Closing this: as rkrux says, its impact is marginal, so it is not worth more review time. Thanks for reviewing it. The change is in fametrano#16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants