Why Can Spending One Blockchain Payment Expose the Key Behind Another?

Why Can Spending One Blockchain Payment Expose the Key Behind Another?
, ,

Wallets & Identity / Under the Surface

Imagine receiving two payments into a blockchain wallet using the same receiving address. Both payments are securely held, and only the wallet owner possesses the private key needed to spend them.

Now suppose the owner spends the first payment but leaves the second untouched. In a conventional Bitcoin payment arrangement, spending the first reveals the public key that also protects the remaining funds.

Under today’s cryptographic assumptions, this does not ordinarily present an immediate security problem. However, a sufficiently powerful future quantum computer could potentially derive the private key from that exposed public key.

On December 3, Brandon Cryderman (GenericCPU) submitted BRC-264, titled Quantum-Resistant Wallet Hygiene, to the BSV Blockchain standards repository. The proposal examines how existing wallet architecture and carefully managed spending practices can reduce this form of quantum exposure without introducing new cryptographic algorithms or changing the blockchain’s consensus rules.

What Is Actually Revealed When a Payment Is Spent?

A conventional Bitcoin payment uses a locking mechanism known as Pay-to-Public-Key-Hash (P2PKH).

Instead of recording the recipient’s public key directly in the transaction output, it records a cryptographic hash of that key. The public key itself does not need to appear on the blockchain until the recipient spends the funds.

When the funds are spent, the wallet provides both a digital signature and the public key. The network can then establish that the public key corresponds to the previously recorded hash and that the signature is valid.

This is an important distinction when considering future quantum threats.

A sufficiently capable quantum computer running Shor’s algorithm could theoretically recover an elliptic-curve private key from its corresponding public key. Recovering a suitable key when only its cryptographic hash is available presents a different and more computationally demanding problem.

However, if multiple payments share the same public-key hash, spending any one of them reveals the public key associated with all the others.

The remaining unspent funds could consequently become a long-term target for a future quantum attack.

One Payment, One Spending Key

One of the central practices formalized by BRC-264 is the use of a fresh spending key for every incoming payment and every change output.

Consider the same example, but this time the wallet generates a different receiving key for each payment.

Spending the first payment reveals only the public key associated with that payment. The second payment remains protected by its own public-key hash, assuming its corresponding public key has not been disclosed elsewhere.

The same principle applies to change.

If a wallet spends a transaction output worth 1,000 satoshis to make a payment of 300 satoshis, the remaining amount, after transaction fees, should return to a newly generated spending key rather than the key associated with the original funds.

For an ordinary user, this need not introduce any additional complexity. A wallet can generate and manage these keys automatically.

A persistent, human-readable payment handle can also remain unchanged while the underlying spending keys differ for every payment.

Existing BSV Blockchain standards, including BRC-29 and BRC-42, already provide mechanisms for deriving payment-specific keys.

BRC-264 seeks to bring these and other established practices together into a consistent, auditable wallet-security framework.

What Happens When Payments Already Share a Key?

Avoiding key reuse in future transactions does not resolve situations where multiple existing unspent transaction outputs already share the same spending key.

BRC-264 proposes treating those outputs as a single spending group.

If the wallet selects one of them for a payment, it must include the other spendable outputs associated with that same public-key hash in the transaction. Any remaining funds can then be returned to a fresh spending key.

This avoids leaving funds unnecessarily exposed after their shared public key has been revealed.

The proposal also treats the broadcasting of a signed transaction as a key-exposure event, regardless of whether the transaction is subsequently confirmed.

A transaction might be rejected or dropped before entering a block, but its public key may already have been observed by network participants or transaction-processing services.

Under the proposed rules, the wallet must therefore retire that key from future receiving and change generation, even if the attempted payment was unsuccessful.

When Someone Else Already Knows the Public Key

Avoiding public-key exposure on the blockchain is only part of the security question.

In payment protocols such as BRC-29, the sender derives a payment-specific public key belonging to the recipient. The sender does not obtain the recipient’s private key, but may already know the public key before the recipient spends the funds.

Under conventional cryptographic assumptions, this is part of the normal payment process.

From the perspective of future quantum security, however, funds whose public keys are known to another party have a different exposure profile from funds whose public keys have never been disclosed outside the wallet.

For high-value balances and long-term storage, BRC-264 recommends moving such funds to fresh keys derived exclusively from secrets held within the recipient’s wallet.

The original sender’s knowledge of the earlier public key would then no longer provide a direct target associated with the recipient’s unspent funds.

This distinction is particularly relevant to savings wallets, digital vaults, and institutional custody arrangements.

Could Wallets Display Their Own Security Exposure?

BRC-264 introduces four classifications for transaction outputs according to the exposure of their spending public keys:

  • Tier 0 — Self-derived, hash-protected: The public key has not been disclosed outside the wallet.
  • Tier 1 — Counterparty-known, hash-protected: The public key remains concealed on-chain but is known to a payment counterparty.
  • Tier 2 — Previously exposed: The output is protected by a public-key hash, but its corresponding public key has already been disclosed.
  • Tier 3 — Directly exposed: The spending public key is included directly in the locking script.

The proposal suggests that wallets could make these classifications available through their interfaces and audit tools.

In a future implementation, users might be able to see not only how much money their wallet holds, but also how those funds are distributed across different levels of cryptographic exposure.

Wallets could also identify funds requiring attention and, where appropriate, move them to newly generated keys.

These classifications represent the security model proposed by BRC-264 rather than independently certified levels of quantum resistance.

Wallet Security Beyond Cryptography

Several other provisions in BRC-264 address circumstances that ordinary users may rarely consider.

Restoring a wallet from an old backup, for example, must not cause the wallet to inadvertently generate a previously used spending key. The same concern applies when a wallet operates across multiple devices.

The proposal requires persistent key-management records and appropriate synchronization or key-generation safeguards to prevent accidental reuse.

It also considers unsolicited payments.

Someone could send a small amount of money to an address that the wallet previously used and subsequently retired. The wallet would then hold new funds associated with an already exposed public key.

BRC-264 proposes handling these funds separately from ordinary payments. Where economically practical, they can be moved to a fresh key without combining them with unrelated funds. Very small outputs may instead be isolated from normal spending.

This also helps address a privacy concern known as a dust-linking attack, in which small unsolicited payments are used to encourage a wallet to reveal relationships between otherwise unrelated transaction outputs.

These examples demonstrate why the proposal concerns the complete lifecycle of wallet keys rather than simply how digital signatures are generated.

Does This Make a Wallet Quantum-Resistant?

BRC-264 principally addresses what it describes as quantum resistance for funds at rest: funds that remain unspent while their corresponding public keys are concealed.

The proposal does not replace the existing Elliptic Curve Digital Signature Algorithm (ECDSA) used by conventional Bitcoin payments.

When a transaction is broadcast, its spending public key becomes visible. A sufficiently capable future quantum computer might theoretically exploit that exposure before the transaction is securely settled.

The proposal argues that rapid transaction propagation and adherence to the First-Seen Rule can substantially narrow this opportunity.

Under that policy, miners reject later conflicting transactions after accepting an earlier valid transaction spending the same funds. However, this protection depends on network propagation and miner behavior. First-seen acceptance is not itself irreversible settlement, and it does not eliminate every possible conflicting-spend scenario.

Cryptographic hashes also have their own theoretical exposure to quantum algorithms, although the nature and computational demands of those attacks differ from attacks against elliptic-curve signatures.

BRC-264 should therefore be understood as a proposal for reducing particular forms of quantum exposure under stated security assumptions, rather than making existing digital signatures universally resistant to quantum computing.

From Existing Practices to a Testable Standard

The proposal’s author emphasizes that many of its core practices already exist in well-engineered BSV Blockchain wallets.

Its contribution is to formalize those practices, define their security assumptions, address less obvious circumstances, and establish tests through which wallet implementations could demonstrate conformance.

The proposed tests include verifying that receiving keys are not reused, change returns to fresh keys, outputs sharing a key are spent together, and failed transaction broadcasts do not cause exposed keys to be returned to ordinary use.

The specification also describes how these requirements could be incorporated into existing BRC-100 wallet implementations without changing the wallet-to-application communication protocol.

BRC-264 remains an open proposal. The submission does not establish that existing wallets satisfy all of its requirements or that the proposed conformance tests have been independently completed.

BSV TIMES Read

Discussions about quantum computing and blockchain security often focus on replacing existing cryptographic algorithms with new ones.

BRC-264 brings attention to a complementary consideration: how much of a wallet’s security depends on the way its existing cryptographic tools are used.

Two wallets operating on the same blockchain, using the same signature algorithm and transaction rules, could expose their users’ funds to different levels of future cryptographic risk simply because they manage their spending keys differently.

This gives wallet developers an opportunity to reduce unnecessary exposure using infrastructure and standards that already exist, while research into post-quantum signature schemes continues.

For ordinary users, the most desirable outcome would be for these protections to become an inherent part of wallet operation. Receiving payments, spending funds, restoring a wallet, and storing money for the long term should not require users to understand or manually manage the lifecycle of cryptographic keys.

Preparing blockchain infrastructure for future cryptographic challenges is therefore not solely a matter of developing new algorithms. It also involves making existing wallet architecture more consistent, transparent, and resilient.

Developer Context

BRC-264 introduces a proposed conformance framework rather than a new consensus mechanism or signature algorithm.

Its principal technical provisions include:

  • A persistent spending-key lifecycle covering unused, assigned, funded, spending, exposed, and retired states.
  • Separation of identity keys from spending keys.
  • Single-use receiving and change keys.
  • All-or-nothing spending of outputs sharing a public-key hash, consistent with BRC-221.
  • Deterministic ECDSA signing under RFC 6979.
  • Separate handling of unsolicited funds received by retired keys.
  • Rotation of counterparty-known keys to self-derived keys for long-term holdings.
  • Integration with existing BRC-100 wallet functions, including createAction, internalizeAction, getPublicKey, and listOutputs.

The proposal includes nine verification scenarios intended to establish wallet conformance.

Source Links

BRC-264 — Quantum-Resistant Wallet Hygiene, Pull Request #394

BRC-264 — Complete Proposed Specification

BRC-29 — Simple Authenticated BSV P2PKH Payment Protocol

BRC-42 — BSV Key Derivation Scheme

BRC-100 — Standard Wallet-to-Application Interface

BSV Blockchain — Official BRC Specifications Index

NIST — Post-Quantum Cryptography

BSV TIMES – Under the Surface

Under the Surface looks at projects, standards, experiments, and community activity that may not rise to the level of a headline but are still worth noticing. Some are new, some are continuing work, and some are quieter developments that help show what is taking shape across the BSV community.

Posted on December 4, 2026 (UTC)

Leave a Reply