Skip to content

test: update BIP352 test vectors - #36992

Open
devdavidejesus wants to merge 1 commit into
bitcoin:masterfrom
devdavidejesus:update-bip352-vectors
Open

devdavidejesus wants to merge 1 commit into
bitcoin:masterfrom
devdavidejesus:update-bip352-vectors

Conversation

@devdavidejesus

Copy link
Copy Markdown

Summary

Update bip352_send_and_receive_vectors.json to match the test vectors in the bitcoin/bips repository at commit 04393c98.

This update includes:

  • The corrected input encodings from the BIP 352 vectors (04393c98), without changing any expected results.
  • The new Taproot annex test case (3c68d3f3), which covers an annex-removal error not caught by the previous vectors in Bitcoin Core's C++ tests.

No test code has been modified. Only the test vector file has been updated.

Testing

Tested on macOS 27.2.1, Apple M3.

  • C++: bip352_tests passed.
  • Python: test_framework.bip352 passed.

Both test suites were run before and after updating the vectors.

Update bip352_send_and_receive_vectors.json to match the test vectors
in the bitcoin/bips repository at commit 04393c98.

This update includes:
- The corrected input encodings from the BIP 352 vectors (04393c98),
  without changing any expected results.
- The new Taproot annex test case (3c68d3f3), which covers an
  annex-removal error not caught by the previous vectors in Bitcoin
  Core's C++ tests.

No test code has been modified. Only the test vector file has been
updated.
@DrahtBot DrahtBot added the Tests label Nov 26, 2026
@DrahtBot

DrahtBot commented Nov 26, 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.
A summary of reviews will appear here.

@devdavidejesus

Copy link
Copy Markdown
Author

The same outdated BIP-352 test vectors are also present in the libsecp256k1 subtree at src/secp256k1/src/modules/silentpayments/. Since this is a subtree, changes there belong in the upstream repository, so I opened bitcoin-core/secp256k1#2010 to update them.

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.

2 participants