test: update BIP352 test vectors #36992

Open
devdavidejesus wants to merge 1 commit from update-bip352-vectors into master AGit
devdavidejesus commented 2026-11-26 22:31:44 +00:00 (Migrated from github.com)

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.

## 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.
DrahtBot commented 2026-11-26 22:31:56 +00:00 (Migrated from github.com)

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.

<!--e57a25ab6845829454e8d69fc972939a--> The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. <!--006a51241073e994b41acfe9ec718e94--> ### External sites * Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36992 * Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36992.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36992#author-ralph <!--021abf342d371248e50ceaed478a90ca--> ### Reviews See [the guideline](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md#code-review) and [AI policy](https://github.com/bitcoin/bitcoin/blob/master/doc/AI_POLICY.md) for information on the review process. A summary of reviews will appear here. <!--5faf32d7da4f0f540f40219e4f7537a3-->
First-time contributor

No findings were published from this review.

Review coverage was incomplete.


Reviewed: 2870a369b856 · Review report · Previous reports

permalink

<!-- forgejo-review-bot:bitcoin/bitcoin --> <!-- ralph-engine:current:806938d40e279b6d701b2e78128bb1a09b55193a0b697245a1dce6241d3081c1:3607c760b63c01fb7f1f349adfc3fd0614b148a7df02e42f2f0edc2d448925a1 --> <!-- ralph-base:dd96035e031edf56fcf66a09d443f257a346af1f --> <!-- ralph-head:2870a369b856584902f6803fb1889b53a9619f81 --> <!-- ralph-case:1be569478f3f07ec278cff49a3fbc2187be2bd698e3cb088b99861782f437c85 --> No findings were published from this review. Review coverage was incomplete. <!-- Review tier: routine --> --- Reviewed: [`2870a369b856`](<https://git.fish.foo/bitcoin/bitcoin/commit/2870a369b856584902f6803fb1889b53a9619f81>) · [Review report](<https://review.fish.foo/report/36992-2870a369b856584902f6803fb1889b53a9619f81-3228-1.html>) · [Previous reports](<https://review.fish.foo/traces/36992/>) [permalink](<https://review.fish.foo/report/36992-2870a369b856584902f6803fb1889b53a9619f81-3228-1.html>)
devdavidejesus commented 2026-11-26 23:33:06 +00:00 (Migrated from github.com)

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.

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 in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitcoin/bitcoin!36992
No description provided.