WIP: feat: Support sending silent payments

bitcoin-core/gui-qml: PR #1141

This is a draft pull request, so Ralph reviewed only its concept. Code review runs on the first push after it is marked ready for review.

Earlier concerns neither republished nor resolved: 4 minor findings · 6 suggestions. See the Run archive for their assessments.

Design and approach

Supporting silent-payment sending through the usual wallet flow is worth pursuing: it serves reusable public payment identifiers without requiring this GUI to add receiving support. Upstream work deliberately separates sending and receiving, so send-only support has independent value.

The decisive product question is whether the bounded proposed workflow is sufficient initially: local keys only, fixed-amount fees deferred until preparation, no silent-payment notes or PSBT export, and incomplete payment-link fallback selection. History also depends on recipient metadata that Core clears from replaced originals. Continue on that explicitly limited basis, keeping the Core dependency merge as a delivery prerequisite. Requiring hardware signing or durable original identifiers across replacement and backup restoration would call for broader backend-first work. This draft assessment does not establish code correctness or successful build, UI, or test execution.

Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.

Background

Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.

Documented decisions

Silent payments trade receiver scanning work for a reusable public payment identifier whose individual payments do not reuse the published on-chain destination. Private donations were an explicit early use case. The design avoids a separate notification transaction or additional transaction data.

This explains why supporting a silent-payment address is more than accepting a longer ordinary address: the published identifier and the transaction's actual outputs differ. It also explains why the GUI's sending support need not introduce a receiving or scanning workflow.

Source 1 · Source 2

The published silent-payment address should be recognizably different from an ordinary Taproot address, while its generated on-chain output should be indistinguishable from an ordinary Taproot output. Restricting generated outputs to Taproot also allows receivers to skip transactions without Taproot outputs.

This motivates separate payment-destination decoding and validation while retaining ordinary Taproot output sizing. It also explains why displaying the original silent-payment identifier requires information beyond decoding the transaction's output scripts.

Source 1 · Source 2

Silent-payment output construction depends on the selected inputs and access to eligible input private keys. Historical sending work therefore made coin selection silent-payment-aware and treated external-signer support as a separate integration task.

At the pinned head, Core checks key availability, rejects unsupported external eligible inputs and unknown witness versions, and can require an unlocked wallet before constructing outputs. This explains the GUI's local-key restriction and preparation-time password prompt. These are implementation and signing-integration boundaries, not evidence that external signing is inherently impossible.

Source 1 · Source 2

Fee replacement must retain the original silent-payment destinations and recompute outputs when inputs change. The upstream sending proposal explicitly persists recipients for RBF, prevents older software from replacing these transactions, and blocks workflows that cannot preserve safe future fee bumping, including PSBT creation.

The base feebumper reconstructed recipients from existing output scripts. The pinned head additionally reconstructs silent-payment destinations from stored metadata and rejects missing or inconsistent metadata, explaining that otherwise the recipient may not find a replacement after inputs change. This directly motivates the GUI's metadata forwarding, earlier unlock during Speed Up, and PSBT-export restriction.

Source 1

The BIP321 proposal places newer payment instructions in URI query parameters to support incremental deployment across wallets with different capabilities. Allowing an empty root address provides a migration endpoint when a recipient no longer wants to offer a legacy on-chain destination.

The base GUI parser required an ordinary address in the URI path. The head recognizes sp instructions and can accept an empty path when a usable silent-payment instruction exists. The historical rationale explains both mixed fallback links and silent-payment-only links without treating the query value as an ordinary output address.

Source 1

Backward-compatible fallback has a privacy cost when it encourages publishing a reusable ordinary address. In the BIP352 discussion, the author objected to a construction that exposed the spend public key as a normal Taproot fallback because it encouraged address reuse.

This supplies the privacy side of the tradeoff behind payment links containing both ordinary and silent-payment instructions. It explains why offering a fallback is not automatically equivalent to preserving the recipient's privacy goal. The historical objection concerned a specific spend-key fallback construction and does not by itself condemn every BIP321 fallback.

Source 1 · Source 2

Sending and receiving support were deliberately separable. One stated reason for shipping sending first was that broader sender adoption makes silent-payment receiving practical sooner; the implementation plan explicitly allowed either capability without the other.

The affected application adds sending through its existing wallet flow. Historical deployment reasoning supports understanding that as an independently useful capability, rather than assuming it must also add silent-payment address generation, scanning, or receiving.

Source 1 · Source 2

Ralph's inferences

The cryptographic need for input-dependent construction explains why preparation may require unlocking, but it does not itself require every fee preview to construct real silent-payment outputs. Output type and size can be represented before their final keys are derived.

Core's pinned PaymentDestination contract provides a placeholder Taproot destination for sizing. The GUI uses dummy outputs for Use maximum estimates, performs actual derivation during preparation, and defers fixed-amount silent-payment fee calculation until review preparation. That division is a GUI/backend tradeoff, not a universal protocol rule forbidding previews.

The current restriction on private notes is best understood as an address-book integration limitation, not an inherent silent-payment privacy requirement. Likewise, original-address history is a wallet-metadata feature rather than something recoverable simply by decoding public output scripts.

The GUI persists ordinary outgoing notes through an address book keyed by CTxDestination, explicitly defers silent-payment labels, and rejects nonempty notes for silent-payment recipients. History instead reads stored silent-payment recipient metadata. Historical references to optional receiver-side cryptographic labels concern a different feature and do not establish a rationale for disabling these GUI notes.

Source 1