Skip to content

BIP-376: Silent Payment input signing behavior#2139

Open
lucia-w wants to merge 1 commit intobitcoin:masterfrom
lucia-w:bip-0376
Open

BIP-376: Silent Payment input signing behavior#2139
lucia-w wants to merge 1 commit intobitcoin:masterfrom
lucia-w:bip-0376

Conversation

@lucia-w
Copy link
Copy Markdown

@lucia-w lucia-w commented Apr 12, 2026

  • This PR adds a reference implementation and test vectors for Silent Payment input signing behavior.

@murchandamus murchandamus added Proposed BIP modification Pending acceptance This BIP modification requires sign-off by the champion of the BIP being modified labels Apr 12, 2026
@murchandamus
Copy link
Copy Markdown
Member

Thanks for your submission. cc'ing the author @nymius for review.

Copy link
Copy Markdown
Contributor

@nymius nymius left a comment

Choose a reason for hiding this comment

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

Approach NACK 8c38c9e

Thanks for working on this.
Although your changes are exercising the behavior of the signer role, my expectations for the test cases are inclined to what we already have in BIP 174 or is currently being worked on for BIP 375 (#2046)
There we have full serialized PSBT tests.
As this BIP is focused towards PSBTs, I think that's the way to proceed.

@@ -0,0 +1,223 @@
#!/usr/bin/env python3
"""BIP-0376 reference implementation and test vector runner.
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.

I recommend you to follow the approach taken in #2087 and #2046 , use secp256k1lab and the components from bitcoin_test that you need. That would focus the review process on BIP 376.

"tweak": "ac7b0d0420f0d4a567d9abcb8a52e02cfae21690fd8d2d5934370dcc5aaee221",
"output_pubkey": "528b75296fa646acecf3fcb7c7697f92f7645ea0e41e6ee8a66554739d2da028"
},
"error_substr": "spend key out of range"
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.

These are unnecessary and constraint the implementation, I would remove them.

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

Labels

Pending acceptance This BIP modification requires sign-off by the champion of the BIP being modified Proposed BIP modification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants