THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Bitcoin Silent Payments Keys and Labels: Scan Keys, Spend Keys, and Address Management

permalink THAMER
#bip352#bitcoin#labels#privacy#scan-key#spend-key

BIP352 separates payment detection from spending authorization. This distinction is useful for understanding both the privacy model and the operational risks of a Silent Payments wallet.

Scan and spend keys have different jobs

The scan private key is used to identify payments addressed to the wallet. The spend private key is needed to authorize spending of the derived outputs. Both roles matter for recovery, and the precise key handling depends on the wallet implementation.

The corresponding public keys are combined into a Silent Payments address. Payers can derive unique Taproot output keys without learning the recipient's private keys. The resulting outputs are ordinary-looking on-chain outputs, not a separate Bitcoin asset or ledger.

What a scan-key leak reveals

A scan-key compromise is a privacy incident. With enough transaction information, an observer holding the scan secret may be able to identify receipts associated with the recipient. It does not automatically grant spending authority when the spend secret remains protected.

Conversely, possession of spending material alone does not necessarily provide an efficient way to find every incoming payment. Wallet design must protect both secrets and make their different security consequences clear.

Labels and multiple payment contexts

BIP352 defines labels to let a recipient organize payment destinations while preserving the reusable-address design. Labels alter the derived destination information in a specified way; they are not comments embedded in the blockchain.

A wallet might assign separate labeled identifiers to different merchants, accounts or customers. The benefit is local bookkeeping and differentiated payment contexts. It does not guarantee that all associated transactions are unlinkable: shared input ownership, timing and other metadata may still connect activity.

Labels also affect recovery. A wallet that fails to restore the relevant label state or cannot reproduce its derivation may have trouble identifying receipts intended for those labeled destinations. A robust backup policy should document this explicitly.

Watch-only and delegated scanning

An operator may want to detect incoming payments without keeping the spend private key on an internet-connected machine. Separation of scan and spend roles helps reason about that architecture. However, giving a remote machine the scan secret exposes receipt privacy to that machine. A watch-only arrangement must be evaluated for both theft risk and information leakage.

Do not confuse a scan public key with a scan private key. Public address data is intended for sharing; private scanning data is not.

Implementation and interoperability cautions

BIP352 derivation rules are exact. A wallet cannot invent its own label offsets, transaction-input aggregation, or output-index interpretation and expect other wallets to interoperate. Compatibility testing should include repeated payments, multiple eligible inputs, labels, different output counts and full recovery scans.

Primary references

BIP352 — Silent Payments: https://github.com/bitcoin/bips/blob/master/bip-0352.mediawiki
BIP340 — Schnorr Signatures: https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki
BIP341 — Taproot: https://github.com/bitcoin/bips/blob/master/bip-0341.mediawiki

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects