BOMBARCHIVE
Explore

A living reference collection. Written in the wiki, preserved in Git.

The archiveBitcoin

BIP 376

BIP 376 (Spending Silent Payment outputs with PSBTs) is nymius's proposal for conveying the information needed to spend an output previously received through Silent Payments in a PSBT version 2. It supplies two per-input records: where to obtain the recipient's spend key, and the silent-payment tweak to add to that key. The resulting signature still uses Taproot's ordinary Schnorr key-path spend. BIP 376 is Draft as inspected on 2 November 2026. It is an application-level interchange proposal, not a Bitcoin consensus change or evidence of universal wallet support. Maintained BIP 376 · Original proposal and review

The most revealing correction came after publication. A September 2026 review found that the specification told PSBT finalizers to remove the input's PSBT_IN_WITNESS_UTXO data. That could deprive other, not-yet-finalized Taproot inputs of information necessary for their sighash calculations. The instruction was removed on 22 September 2026. This is a directly recorded specification fix; the reviewer's compatibility findings are attributed, not proof of an exploited released wallet. Finalization correction and rationale · Exact text change

Sending is not spending

A silent-payment address carries the receiver's scan and spend public keys. The sender combines that information with eligible transaction inputs to make a fresh output key. The receiver later scans the blockchain and recognizes the output using its private scan key. The output itself looks like a regular Pay-to-Taproot output; it does not announce which silent-payment address received it. BIP 352 construction, scanning and spending

These are three related but distinct activities:

  • Send: BIP 375 uses ECDH shares and DLEQ proofs to let PSBT participants construct and check a destination whose script depends on the sender's inputs.
  • Discover: BIP 352 scanning recognizes an output, and the receiving wallet learns the secret-derived tweak associated with it. BIP 392 separately describes key material for discovery and spending.
  • Spend: BIP 376 lets the wallet pass the stored tweak and spend-key identification to a signer, including a hardware signer that did not scan the blockchain itself.

The distinction matters because '''BIP 375's sending proof does not become an authorization to spend the recipient's coins'''. A signer must derive the private key corresponding to the already-existing UTXO. The authors explicitly kept this receiving-side problem in a separate BIP rather than extending the sending document. Motivation and rationale · BIP 375's original scope

Two input fields, not one

The maintained specification adds two per-input keys to PSBTv2. An early December 2025 draft contained only a tweak field, and assigned it 0x1f. Reviewers later noticed that a signer also needs an unambiguous way to identify the base spend key. The final arrangement moved the tweak to 0x20 and assigned 0x1f to the derivation information. The old number must not be copied out of a historical draft as the current tweak type. December 2025 proposal · February 2026 review · Current field table

  • PSBT_IN_SP_SPEND_BIP32_DERIVATION = 0x1f has a 33-byte compressed spend public key as keydata. Its value is a four-byte master-key fingerprint followed by zero or more 32-bit derivation indexes in little-endian order. It identifies how a signer using BIP 32 derivation can obtain the untweaked spend private key. The updater SHOULD add it when that derivation scheme is used; the specification also allows a zero fingerprint without path elements where revealing the information is undesirable.
  • PSBT_IN_SP_TWEAK = 0x20 has no extra keydata and stores a 32-byte scalar tweak. The updater MUST add it when the input spends a silent-payment output. It is not the private scanning key, not a Taproot script-tree root, and not another signature.

Both fields are for PSBT version 2, not PSBT version 0. BIP 376 builds on BIP 370 for the transaction envelope and BIP 371 for the eventual Taproot signing field. Older PSBT parsers may be designed to ignore unrecognized fields, but that ability alone does not make them competent silent-payment signers. Fields, roles and backward compatibility

The SHOULD on the derivation record is intentional. During March 2026 review, Andrew Toth objected to requiring a BIP 32 path for a signer that already knows its only relevant private key. The author initially argued that a zeroed path would express the case explicitly. The maintained text allows another method for finding the spend private key and retains SHOULD, not MUST, for the derivation record. This is a documented design choice about signer interoperability, not an assertion that BIP 32 is the only possible key-management system. March 2026 discussion · Current updater and signer roles

How the signer checks the tweak

In BIP 352, the wallet reconstructs the tweak during scanning. For the unlabeled case it is the tagged hash hash_BIP0352/SharedSecret(ser_P(ecdh_shared_secret) || ser_32(k)). An optional recipient label adds the corresponding hash_BIP0352/Label term. The relevant k is the recipient-output index in silent-payment derivation, not a generic PSBT input index. BIP 376 carries the resulting raw tweak, rather than asking an isolated signer to repeat a historical blockchain scan. Tweak definition and rationale · BIP 352 spending

The signer obtains the base spend private key b_spend, computes d = (b_spend + tweak) mod n, and compares the x-coordinate of d·G with the 32-byte output key P inside the input UTXO's 0x5120<P> Taproot scriptPubKey. It MUST fail if those x-coordinates do not match. If the point's y-coordinate is odd, it negates d before signing, following Schnorr's x-only convention. It then writes the signature into PSBT_IN_TAP_KEY_SIG. Signer role · BIP 340 x-only keys

That output-key check is a real trust boundary. The updater may supply a wrong tweak, accidentally or maliciously. The signer must not assume that a field labelled silent payment corresponds to the actual coin being spent. But a match to the output key is not a general proof that the transaction pays the user-intended recipients, that its change was identified correctly, or that an Ordinals sat was transferred as expected.

The finalizer requires a PSBT_IN_TAP_KEY_SIG for each input carrying the silent-payment tweak, then constructs a one-element PSBT_IN_FINAL_SCRIPTWITNESS for a Taproot key-path spend. It removes the two BIP 376 records and the intermediate Taproot key signature once that input is finalized. Crucially, it now retains PSBT_IN_WITNESS_UTXO. Finalizer requirements

Why an ordinary Taproot PSBT record is insufficient

The tempting shortcut was PSBT_IN_TAP_MERKLE_ROOT from BIP 371. Both that and a silent-payment tweak concern Taproot-looking output keys. But they do not encode the same claim: BIP 341 calculates a TapTweak tagged hash from its internal key and possible script-tree root; BIP 352 derives a different value from a sender/receiver shared secret and optional label. Dressing one up as the other would invite semantic confusion. Alternatives considered · Taproot rules

A universal PSBT_IN_TAP_RAW_TWEAK was also considered. It would be more general, but the field alone would not tell hardware signers which tweak construction was intended. A proprietary PSBT field could carry the bytes for one wallet but would require out-of-band conventions for interoperability. The final proposal chose explicitly named silent-payment fields instead. November 2025 design discussion · Rationale

Even the ordinary Taproot derivation field is not a drop-in substitute. The BIP 352 spend key is a 33-byte parity-bearing public point; a 32-byte x-only field would discard information relevant to the untweaked key and the final signing adjustment. The proposal therefore defines its own derivation map rather than quietly reinterpret an existing field. BIP 32 field rationale

The September 2026 finalization correction

The version accepted in April 2026 instructed finalizers to remove PSBT_IN_WITNESS_UTXO when setting the final witness. On 4 September 2026, a reviewer submitted PR #2276 arguing that this contradicted BIP 174's treatment of the UTXO record. Their review cited Bitcoin Core, Sparrow, rust-psbt and rust-miniscript finalizers as examples that retain the field. Those named implementation observations are the reviewer's findings; this archive has not independently tested each version. Review rationale

The more subtle problem involved partial finalization. A PSBT can contain multiple Taproot inputs finalized by different participants at different times. Taproot signature hashes can commit to spent-output information for all transaction inputs. If the first finalizer strips its input's UTXO data, a later signer may lack the information needed to compute its own sighash, even though the first input already has a final witness. The reviewer pointed specifically to Bitcoin Core's PrecomputePSBTData behavior. Reported failure mode · Taproot sighash requirements

The exact amendment is narrow: it deletes PSBT_IN_WITNESS_UTXO only from the list of fields to remove. It does not remove any requirement to check or sign the input. The fix was merged on 22 September 2026, retaining the UTXO record in the maintained text. This correction is meaningful even without a verified production incident. It shows why removing apparently redundant intermediate data from one input can obstruct another input's later authorization. Exact one-line diff · Merge and discussion

Documentary chronology

17–20 May 2024
The wider silent-payment PSBT discussion distinguishes **sending** from **spending**; participants discuss proprietary fields and passing a derived tweak to the signer. This predates BIP 376 and does not establish its final field layout. Early first-party discussion
13 November 2025
nymius revives the spending question publicly, weighing general raw tweaks against a silent-payment-specific field. Contemporary design record
5–15 December 2025
The BIP preamble dates a first gist draft to **5 December**; the public mailing-list post on **15 December** proposes a single 0x1f tweak field. The document date and recoverable public posting are different evidence types. Draft and revision history · Dated mailing-list message
16–19 January 2026
nymius links the draft again in the public discussion on **16 January** and opens the canonical BIPs pull request on **19 January**. Public update · Original PR
5–11 February 2026
BIP number assigned on **5 February**. Review identifies a missing way to source the base spend key; a separate BIP 32 derivation field is added, shifting the tweak field's number to 0x20. Review conversation and revision
13–31 March 2026
Review debates MUST versus SHOULD for the derivation field. The author marks the revised document ready for publication and continues refining role rules. Review record
10 April 2026
BIP 376 merges into bitcoin/bips after review. Acceptance into the BIPs repository is **not** evidence of an accompanying Bitcoin Core wallet release. Merged specification
4–22 September 2026
A correction filed on **4 September** removes the instruction to strip PSBT_IN_WITNESS_UTXO; merged **22 September**. The source commit's author date is not its merge date. Correction and merge · Source diff

Implementation evidence and limits

The December 2025 author described working on silent payments in BDK, whose transaction-building process used PSBTs. That is contemporary first-party motivation, not verification that any particular BDK release implemented BIP 376. The maintained BIP still marks its reference implementation and test vectors as TODO at this inspection. Specification publication, a contributor's development work, an independent signing implementation and proven inter-wallet compatibility are separate milestones. Author's context · Maintained TODO sections

The historical reason to carry a tweak is practical: once scanning discovers a UTXO, the wallet can store its tweak and later supply only that tweak and the spend-key information to an offline signer. The BIP's appendix gives a 413-byte gross illustrative transaction-data comparison for a small mixed-input example, against a 32-byte stored tweak. That number is the author's example, not a measured universal bandwidth saving or a complete PSBT-size benchmark. Rationale and appendix

For Ordinals, Bitmap and other sat-aware applications, a BIP 376-compliant signature authorizes spending an underlying Bitcoin UTXO. It does not determine which inscription-bearing sat becomes which transaction output, nor guarantee a Bitmap claimant retains a particular output. That placement is a separate transaction-construction and index-verification problem. This is an architectural interpretation of the respective protocol boundaries, not a capability claim made by the BIP authors.

What remains unresolved

Open question
Identify a dated production wallet or hardware-signer release that both recognizes BIP 376 fields and verifies the output-key match. Distinguish proof of merged source code from proof of shipped functionality.
Open question
Recover reference test vectors for labeled and unlabeled tweaks, multiple keys, malformed scalar encodings and partial finalization; the canonical BIP still lists TODO sections.
Open question
Test a multi-input Taproot PSBT across independently maintained finalizers before and after the September 2026 correction, without assuming all implementations followed the old wording.
Open question
Establish how wallet backups store recovered tweaks and their relation to scan ranges, labels, descriptors and BIP 392 portability.
Open question
Trace an actual Ordinals or Bitmap wallet's use of silent-payment UTXOs before claiming the signing interchange preserves sat-level intention.

Sources and evidence boundaries

The maintained BIP establishes current field types and role requirements. The original PR and its comments establish dated review and publication; the December 2025 mailing-list draft establishes the earlier one-field design. Contemporary Delving Bitcoin discussion shows alternatives before the BIP review. PR #2276 and the exact source diff directly prove the September specification correction; the named wallet observations within that PR remain attributed reviewer claims. The article's implications for Ordinals and Bitmap are interpretation and are not represented as claims by BIP 376's author.

From the archivist's desk

I expected the hardest part of this story to be the elliptic-curve arithmetic. The arithmetic is important, but the surprise was a line about deleting a field. One signer could consider its input finished, discard the UTXO description, and accidentally make a different signer's unfinished work harder or impossible. The September correction preserved something that looked unnecessary locally because it was still necessary globally. A transaction can have finished parts without being a finished transaction.