Skip to content
Developer Handbook

Cash Improvement Proposals

Post-Quantum and Hybrid Signatures

On this page

CHIP-2026-06 · Proposal · Script

Proposes generic signature support for post-quantum and hybrid verification.

Original proposal

Specification

OWNERS: mainnet_pat, bitcoincashautist

DISCUSSION: https://bitcoincashresearch.org/t/chip-2026-06-post-quantum-and-hybrid-signatures/1864

VERSION: 0.1 (draft)

MILESTONES: Draft. Specification, Reference Implementation (Bitcoin Cash Node prototype), Testnet, Acceptance, Deployment.

Summary

This proposal lets the Bitcoin Cash check-signature opcodes verify signatures from more than one scheme, and uses that to add post-quantum (PQ) and hybrid signatures to the VM. A public key's first byte selects its scheme from a registry: secp256k1 today, with PQ schemes (Falcon-512, SPHINCS+) and others added over time. A compound key binds two schemes under one signer with AND semantics, so a hybrid spend such as secp256k1 + Falcon is valid only if every leg verifies.

No new opcode or output type is added. PQ and hybrid keys spend from ordinary p2pkh outputs committing to HASH160(public-key element), so they work with existing address tooling and keep Double-Spend Proof (DSP) coverage that a script-vault PQ scheme would have to re-earn with extra protocol work.

Which scheme(s) to enable is secondary to the dispatch mechanism. This document specifies the mechanism and treats scheme selection as an evaluation (see Evaluation of Schemes). However, we want to propose to start with SPHINCS+ (being hash-based) and the hybrid variant, while we await some clarity on lattice schemes.

  • Version: 0.1
  • Is consensus change: yes (gated behind a future upgrade activation)
  • Reference implementation: Bitcoin Cash Node prototype (src/script/sigschemes.*, src/fndsa/, src/slhdsa/)
  • Proposed activation: any time if the quantum threat is imminent, or to position the BCH chain well with the wider community; otherwise as usual, lock-in November 15 2026 and activation by hard fork May 15 2027.

Deployment

Deployment is proposed for a future network upgrade ("Upgrade 13" as a placeholder). Until it activates, behavior is byte-for-byte unchanged: the new public-key and signature encodings are non-standard and invalid exactly as they are today.

Activation follows the established BCH pattern. It is scheduled by median-time-past (MTP) to a wall-clock target (MTP avoids block-time variance and miner manipulation), then converted to a checkpointed height once the activation block is buried, as done for Upgrade 12. Target: tentatively 2027-05-15 12:00:00 UTC (chipnet six months earlier), overridable for testing with -upgrade13activationtime. Regtest activates from genesis.

This proposal depends on the May 2025 VM Limits upgrade: its 10,000-byte stack-element limit is what makes large PQ signatures (up to ~8 KB) representable on the stack at all. The earlier 520-byte limit could not carry them.

Motivation

Bitcoin Cash secures funds with ECDSA/Schnorr signatures over the secp256k1 curve. A large enough quantum computer running Shor's algorithm would break the elliptic-curve discrete-log problem and forge those signatures, recovering the private key from any exposed public key. No such machine exists today, and recent resource estimates put it years out (Google Quantum AI, Securing Elliptic Curve Cryptocurrencies against Quantum Vulnerabilities: Resource Estimates and Mitigations, 2026), but three properties of the threat justify acting early:

  1. Long-lived exposure. Any UTXO whose public key is already on-chain (reused addresses, P2PK outputs, keys revealed by a spend waiting in the mempool) is at risk the moment a capable quantum computer appears. "Harvest now, decrypt later" applies to coins, not just messages.
  2. Migration is slow. Moving wallets, hardware signers, exchanges, and contract systems to new signatures takes years, so the capability must exist and be tested before it is urgently needed.
  3. Build the framework once. Adding a scheme is and will remain a consensus change; each new scheme needs its own upgrade and a case for it. But putting the generic dispatch in place now makes each future addition a registry entry plus a verifier, not a bespoke fork touching sighash, templates, and addresses.

Acting early also lets users migrate voluntarily, at their own pace, before any deadline. Recovering coins after a quantum break ("q-day"), whose owners never moved them, is a harder and still-open problem (see the challenge-based transition protocol discussion); but any such recovery needs a quantum-safe destination to move funds into, and overloading the existing check-sig opcodes is the most convenient one. This proposal supplies that destination.

The protection is not limited to simple payments. The upgrade covers every check-sig opcode, so OP_CHECKDATASIG, the basis of oracle-driven DeFi on BCH, gains the same options; and CashTokens, authorized through the same check-sig path as the coins carrying them, inherit PQ and hybrid signing with no token-specific changes.

The same mechanism also has non-quantum uses: hybrid signatures for defense in depth, and a path to curves already deployed in consumer hardware, notably secp256r1 (NIST P-256), the curve behind WebAuthn/passkeys, Secure Enclave, Android Keystore, TPMs, and FIDO2. Adding P-256 through the same registry would let wallets sign with hardware-bound device keys users already carry.

This is cheap because the signature scheme is independent of the rest of the VM. The sighash algorithm and flags, the script templates, and the address format are reused unchanged; only the final check, does this signature match this public key over this 32-byte digest, is scheme-specific. In the prototype, secp256k1, Falcon-512, and SPHINCS+ share one dispatch point.

Benefits

Quantum resistance for stored value

Coins at a PQ or hybrid address cannot be stolen by an adversary who can only break secp256k1. As with any p2pkh output, the public key is revealed only at spend time and the UTXO commits to a 160-bit hash of it, so holders keep hash-preimage protection until spend and PQ protection at spend.

Hybrid signatures

A compound key requires all legs to verify (AND semantics, single signer):

  • Hedge a young scheme against a classical one. secp256k1 + Falcon is forgeable only by breaking both secp256k1 (well understood, ~15 years of cryptanalysis) and the newer lattice assumption, so users get PQ protection without betting solely on lattice maturity.
  • Hedge two PQ schemes against each other. Falcon + Dilithium, or lattice + SPHINCS+, survives a break of either family: the conservative choice for high-value, long-horizon storage.

A caveat from the wider PQC debate: recent analyses (Soatok's Hybrid Constructions: The Post-Quantum Safety Blanket and Symbolic Software's companion post, both 2026) argue that hybrids clearly help for KEMs, where a harvest-now-decrypt-later adversary can store today's ciphertexts and break them later, but help less for signatures, which (authenticating an email or a TLS handshake) are verified once and cannot be forged after the fact. On a blockchain the "message" is different: a public key, once exposed, keeps guarding live coins. Reusing an address (spending one UTXO reveals the key) leaves any other coins at that address open to a later break, so signatures here carry their own harvest-now, break-later exposure. More generally, a coin's locking commitment must stay unforgeable for as long as it sits unspent, often years, so a break of the sole scheme within that window forges a spend of still-locked funds. That is what a hybrid hedges. The cost the posts emphasize is added complexity, which we contain by keeping hybrids optional (a single-signer, p2pkh-compatible choice).

Double-Spend Proof support

DSPs are a 0-confirmation safety feature for merchants and wallets, generated today for p2pkh inputs (spends authorized by a single key). PQ and hybrid keys here are p2pkh signers, so they fit the existing DSP model with no new machinery; the one remaining task is teaching the DSP signature checker the registry dispatch, a localized change included here.

This is not exclusive to p2pkh. DSP needs only that a spend be authorized by exactly one identifiable key, so it could extend to a script-based PQ vault (which need not be p2sh-wrapped; a bare script works the same); an approach like Quantumroot could emit DSPs too. The difference is cost and timing: that path needs extra protocol work and delays adoption, while the p2pkh route gets DSP now, for free.

Reuse of existing infrastructure

PQ and hybrid keys use the standard p2pkh locking script and the standard CashAddr/legacy encodings; the address commits to HASH160 of the public-key element. A wallet that already builds p2pkh spends needs only to generate and store the new key type and call the scheme's signer.

Room to grow

Adding the next scheme (P-256, ML-DSA, a future standard) still takes its own upgrade and a case for it; the framework does not make schemes addable on a whim. What changes is the work: a registry entry plus a verifier, not a bespoke design touching sighash, templates, and addresses. The registry has room for roughly 200 designators (every byte outside the 0x21-0x4d push-data range).

Costs & Risk Mitigation

Transaction size and fees

PQ spends are large. Per-input spend reveal (public key + signature) versus today's ~98 bytes for Schnorr:

Scheme Pubkey Signature Spend reveal Standardization
secp256k1 Schnorr (today) 33 B 65 B ~98 B n/a
FN-DSA-512 (Falcon-512) 897 B 666 B (padded, constant) ~1,563 B NIST draft (FIPS 206)
Falcon-1024 1,793 B 1,280 B ~3,073 B NIST draft
ML-DSA-44 (Dilithium) 1,312 B 2,420 B ~3,732 B FIPS 204 (final)
SLH-DSA-128s (SPHINCS+) 32 B 7,856 B ~7,888 B FIPS 205 (final)
XMSS / LMS 32-64 B ~2,500 B ~2,560 B RFC 8391/8554 (stateful)

At 1 sat/byte a Falcon input costs ~16x a Schnorr input and an SLH-DSA input ~80x. This is paid only by those who opt in; it does not affect secp256k1 users, and it argues for input consolidation over dust-heavy PQ wallets. Both fit under the post-2025 limits (Falcon ~1.6 KB, SLH-DSA ~7.9 KB, against the 10,000-byte element/script caps), and fee markets already price bytes.

Validation cost and DoS

PQ verification is heavier than ECDSA. To stop a block of cheap-to-make, expensive-to-verify inputs, each scheme carries a sigcheck cost feeding the existing VM-limits accounting: the op-cost budget, the per-input scriptSig-length density rule, and the per-transaction and per-block caps. secp256k1 and Falcon cost 1; SLH-DSA-128s verifies ~13x heavier in the reference build and is billed k (e.g. 16); a hybrid costs the sum of its legs. These constants are consensus-affecting and were calibrated on one platform, so over-charging is the safe direction and the current posture.

Implementation and review surface

Each scheme adds a vendored verifier (consensus-critical C); Falcon and SPHINCS+ reference code is in the prototype, pinned at fixed commits. The verification paths are integer-only and deterministic. This matters for Falcon: its floating-point Gaussian sampler, the part with the worst hazards and a cross-platform determinism risk if it were on the consensus path, is confined to key generation and signing. The verifier (fndsa_verify) uses no floating point, only SHAKE-256 and arithmetic mod 12289. Nodes only verify; keygen and signing live in wallets.

Key management

For lattice schemes the private key derives deterministically from a seed, so Falcon keys fit existing seed/backup schemes; the expansion to a signing key happens in the wallet. The work is in user space:

  • Falcon signing needs constant-time Gaussian sampling; a flawed signer can leak the key, so wallets must use audited signers.
  • Backups grow: public keys and signatures are large.

Standardization status

Falcon (FN-DSA) is not yet final (FIPS 206 draft) and its encoding could change; ML-DSA (FIPS 204) and SLH-DSA (FIPS 205) are final. The registry decouples BCH from any one scheme's timeline: ship the final schemes first and add Falcon when FIPS 206 lands, or ship Falcon provisionally. The mechanism does not depend on the choice.

Ongoing Costs and Risks

  • Vendored cryptography. Each scheme is third-party C that must track upstream security fixes. The dispatch core is small and stable; the surface is the verifiers.
  • Dispatch fan-out. Each new scheme touches a few switch sites (parse, encoding-check, verify, cost). Beyond a third scheme these should fold into one descriptor table; noted as future work.
  • Signature-cache coverage. PQ verifications currently bypass the signature cache (keyed on a 65-byte CPubKey), so a PQ-keyed transaction is verified at both mempool admission and block connect. A follow-up generalizes the cache key to raw public-key bytes, covering all schemes at once.
  • Governance. Multiple cryptosystems enlarge the trusted-crypto set operators must accept. Mitigated by standardized schemes, reviewed reference code, and the opt-in nature (non-users carry none of it).

Technical Specification

This section is normative. The key words MUST, MUST NOT, and MAY are used in the RFC 2119 sense. All behavior defined here is gated on a single new script verification flag, SCRIPT_ENABLE_SIG_SCHEMES, set once the upgrade activates. When the flag is clear, every rule below is inert and validation is byte-for-byte identical to current consensus (the public-key and signature encodings introduced here are rejected exactly as they are today). The sighash algorithm, sighash-type flags (SIGHASH_ALL/NONE/SINGLE, ANYONECANPAY, SIGHASH_FORKID, SIGHASH_UTXOS), script templates, transaction format, and address encodings are unchanged.

1. Public-key element

A public-key element is the byte string pushed where a public key is consumed (by OP_CHECKSIG/VERIFY, OP_CHECKDATASIG/VERIFY, or OP_CHECKMULTISIG/ VERIFY). It is either atomic (one scheme) or compound (a two-scheme hybrid).

1.1 Atomic keys and the scheme registry

An atomic public-key element's first byte is its registry type byte:

First byte Scheme On-chain element Element length
0x02, 0x03 secp256k1 (compressed) byte then X 33 B
0x04 secp256k1 (uncompressed) 0x04 then X then Y 65 B
0x06, 0x07 reserved (legacy secp256k1 hybrid encodings) n/a n/a
0x08 FN-DSA-512 (Falcon-512) 0x08 then native_pubkey 898 B
0x09 SLH-DSA-SHA2-128s (SPHINCS+) 0x09 then native_pubkey 33 B
0x0a-0x20, 0x4e-0xff unassigned; allocated in adoption order n/a n/a

Rules:

  • Each scheme defines its own element encoding. Every scheme defined here is fixed-length (an element of the wrong length is invalid), but the grammar does not require that: a future scheme may be variable-length, validated by its own structural rules. An atomic element is self-delimiting (it is the whole key), so no internal length prefix is needed, and dispatch is always by the type byte, never by element size.
  • The registry byte is BCH notation, assigned in scheme-adoption order and independent of any scheme's own native encoding. For a non-secp256k1 scheme the native public key is carried verbatim after the type byte (e.g. an FN-DSA on-chain key is 0x08 followed by the intact 897-byte native key, whose own first byte is the FN-DSA logn header 0x09; an SLH-DSA on-chain key is 0x09 followed by the 32-byte native key, which has no inner header).
  • secp256k1 keys (0x02/0x03/0x04) are validated exactly as today.
  • Registry invariant: a type byte MUST NOT fall in the range 0x21-0x4d. That range is exactly the set of minimal push-data length-prefixes a framed (length-prefixed) component can begin with: direct pushes 0x21-0x4b, OP_PUSHDATA1 (0x4c), OP_PUSHDATA2 (0x4d); OP_PUSHDATA4 (0x4e) is forbidden as framing. Keeping type bytes out of that band lets a bare component (leading type byte) be told from a framed one (leading pushdata opcode). Two bands remain assignable, 0x00-0x20 and 0x4e-0xff (~211 designators), so the registry is not capacity-constrained in practice.
1.2 Compound (hybrid) keys

A compound public-key element binds exactly two atomic public keys. Each is encoded by whether its scheme's key is fixed- or variable-length:

  • a fixed-length key (all schemes defined here) is bare, located by the fixed length of its leading type byte (1.1);
  • a variable-length key (none defined yet) is length-prefixed with minimal pushdata (OP_PUSHDATA4 forbidden).

So a compound of two fixed-length keys is simply keyA || keyB. Both components MUST be valid atomic keys, MUST consume the element exactly (no leftover bytes), and MUST NOT themselves be compound. A fixed-length key MUST be bare and a variable-length one MUST be framed, so the encoding is canonical. The reserved type-byte band 0x21-0x4d (1.1) keeps a bare component (leading type byte) distinct from a framed one (leading pushdata opcode).

1.3 Atomic vs. compound disambiguation

Read the first component (bare, by its leading type byte's fixed length; or length-prefixed if its first byte is a pushdata opcode 0x21-0x4d). If it consumes the whole element, the element is atomic (one key); if bytes remain, read a second component, and if it consumes the rest exactly the element is compound (otherwise invalid). The split point is thus determined by the components themselves, with no marker byte.

Single-scheme (non-hybrid) unlockers are bare: the public-key element is the atomic key itself and the signature element is the bare signature, identical in shape to a present-day spend. The two-key form is the hybrid.

2. Signature element

The signature element MUST mirror the structure of its paired public-key element.

2.1 Atomic signatures
  • secp256k1: unchanged from current consensus, a Schnorr (64-byte) or strict-DER ECDSA signature, with the trailing sighash-type byte in OP_CHECKSIG/OP_CHECKMULTISIG contexts and none in OP_CHECKDATASIG. In the bit-field OP_CHECKMULTISIG mode, secp256k1 signatures remain Schnorr-only.
  • Registry scheme: the scheme's native signature encoding, with the trailing sighash-type byte in transaction-signature contexts and none in OP_CHECKDATASIG. The signature is the whole element (less that trailing byte), so its length is self-delimiting: fixed for the schemes here (FN-DSA-512: 666 bytes; SLH-DSA-SHA2-128s: 7,856 bytes), but a future scheme may be variable-length and is validated by its own rules rather than a constant. An encoding invalid for the scheme is rejected (SIG_SCHEME).
2.2 Compound signatures

A compound signature binds two legs, in the order of the paired key components, each encoded like its scheme (mirroring 1.2):

  • a fixed-signature scheme (FN-DSA-512, SLH-DSA) leg is bare, read by its fixed length;
  • a variable-signature scheme leg is length-prefixed with minimal pushdata. This is exactly secp256k1, whose signature is a variable-length DER ECDSA or a 64-byte Schnorr signature, so a secp leg is framed in either case.

No leg carries a sighash-type byte of its own.

  • In OP_CHECKSIG/OP_CHECKMULTISIG contexts the element ends with a single trailing sighash-type byte covering both legs, e.g. push(secpSig) || fndsaSig || ht.
  • In OP_CHECKDATASIG there is no sighash-type byte.

3. Verification semantics

  • Dispatch is by public-key type. The verifier reads the public-key element, determines atomic-scheme or compound, and for each component verifies the paired signature component under that component's scheme. For secp256k1 a 64-byte signature is verified as Schnorr, otherwise as ECDSA (unchanged).
  • AND-composition, single signer. A compound check succeeds iff every (component-signature, component-key) pair verifies. This is not multisig: there is one signer and a fixed component order; there is no threshold and no OR-mode.
  • One sighash. In transaction-signature contexts the transaction sighash is computed once, from the compound element's single trailing sighash-type byte, using the existing sighash algorithm and scriptCode; every component signature is verified against that same 32-byte digest. In OP_CHECKDATASIG the message digest is SHA-256(message) as today, and every component verifies against it.
  • Opcode scope. These rules apply to OP_CHECKSIG/OP_CHECKSIGVERIFY, OP_CHECKDATASIG/OP_CHECKDATASIGVERIFY, and the bit-field OP_CHECKMULTISIG/OP_CHECKMULTISIGVERIFY mode (a compound or registry key MAY occupy a single multisig public-key slot). The legacy null-dummy OP_CHECKMULTISIG mode is unchanged and remains ECDSA-only.
  • NULLFAIL is unchanged: an empty signature element is a clean false; a present-but-non-verifying signature is a SIG_NULLFAIL error.

4. Public-key encoding validity

CheckPubKeyEncoding (the SCRIPT_VERIFY_STRICTENC validity check) accepts, in addition to today's secp256k1 encodings: any atomic registry key of correct type byte and exact length (1.1), and any compound element of exactly two atomic-valid components (1.2). All other elements are rejected (PUBKEYTYPE), exactly as today when the flag is clear.

5. Sig-check accounting

Each verified component is counted as a per-scheme weighted number of sig-checks, cost(scheme):

  • secp256k1 and FN-DSA-512: cost = 1.
  • SLH-DSA-SHA2-128s: cost = k, a calibrated integer reflecting its heavier verification (~13x a secp256k1 verify in the reference build; k = 16 there, with margin). k is consensus-affecting and MUST be re-validated on representative hardware (and re-derived if a verifier is later accelerated) before activation is scheduled; over-charging is the safe direction.

An atomic key contributes cost(scheme); a compound key contributes cost(A) + cost(B). This count feeds the existing VM-Limits machinery unchanged: the per-input op-cost budget (cost * SIG_CHECK_COST_FACTOR), the per-input scriptSig-length sig-check density rule, and the per-transaction and per-block sig-check caps.

6. Addresses and commitment

No new address type or output type is introduced. A PQ or hybrid key is spent from a standard p2pkh output:

OP_DUP OP_HASH160 <HASH160(public-key element)> OP_EQUALVERIFY OP_CHECKSIG

where the public-key element committed to is the exact bytes pushed at spend time (the 0x08-prefixed atomic key, or the two keys concatenated). CashAddr and legacy base58 encodings are unchanged; the address is an ordinary p2pkh address over that 160-bit hash. For self-generated keys, hashing to 160 bits does not weaken security: only second-preimage resistance is relied upon (the committer chooses its own key), so the ~2^128 Grover bound, not the ~2^80 collision bound, applies.

An atomic FN-DSA spend is scriptSig: push(666-byte sig || ht) push(898-byte 0x08-key), about 1,571 B, against the 25-byte p2pkh output. Below is a hybrid secp256k1 + FN-DSA-512 scriptSig, byte-annotated (blobs elided; full vectors are in the reference test). The fixed-length components are bare; the secp256k1 signature leg is length-prefixed (variable scheme); only the signature element carries a trailing sighash byte (0x41 = SIGHASH_ALL|FORKID):

fd 8506                                 scriptSig length = 1669 bytes
|
+- 4d dc02         push -> COMPOUND SIGNATURE element (732 bytes)
|    40 <64B schnorr>            leg A: push( secp Schnorr )      65 B
|    <666B falcon>               leg B: FN-DSA-512 (bare)        666 B
|    41                          outer sighash byte (0x41)
|
+- 4d a303         push -> COMPOUND PUBKEY element (931 bytes)
     <33B secp key 02/03||X>     key A: secp256k1 (bare)          33 B
     <0x08 || 897B falcon>       key B: FN-DSA-512 (bare)        898 B

7. New error conditions

  • SIG_COMPOUND: malformed compound element. Not exactly two atomic components, leftover bytes, a pubkey component that is not a valid atomic key, or a compound signature whose length does not match the paired schemes' leg lengths.
  • SIG_SCHEME: signature encoding invalid for the paired key's scheme (e.g. wrong fixed length).
  • SIG_HASHTYPE (reused): the compound element's trailing sighash-type byte is itself invalid (the same check applied to any signature's hashtype byte).

Implementations

A working prototype exists in Bitcoin Cash Node under https://gitlab.com/mainnet-pat/bitcoin-cash-node/-/tree/generic_sig: the registry/dispatch (src/script/sigschemes.{h,cpp}), the scheme arms in sigencoding.cpp and interpreter.cpp, vendored Falcon (src/fndsa/) and SPHINCS+ (src/slhdsa/) verifiers, activation plumbing, and helper signing tools. It validates atomic Falcon/SPHINCS+ spends and secp + PQ and PQ + PQ hybrid spends end-to-end on regtest, with unit and functional test coverage.

Test Cases

The prototype includes: registry/compound grammar tests; per-scheme atomic spends across all sighash types; pre-activation behavioral identity (the same transactions fail exactly as today with the flag clear); invalid-spend consensus behavior (NULLFAIL, EQUALVERIFY, malformed-compound); CHECKDATASIG and multisig-slot use; and live-node functional tests mining hybrid spends. A finalized CHIP would contribute these as cross-implementation vectors (in the style of the Libauth VMB test format).

Evaluation of Schemes

Scheme choice is secondary to the mechanism. The prototype implements the two extremes to show its range:

  • Falcon-512 (FN-DSA-512), the compact choice. Smallest spend reveal (~1.6 KB), fast verification, lattice-based (NTRU). The signer has implementation hazards, kept in wallets. Not yet a final standard (FIPS 206 draft), so provisional. It has had some formal analysis: a symbolic Maude model by Garcia, Escobar & Ogata (JLAMP 143, 2025) confirms integrity and non-repudiation (the "authentication" gap they note is a protocol-level freshness/binding concern that BCH's sighash supplies, not a scheme weakness).
  • SPHINCS+ (SLH-DSA-128s), the conservative choice. Hash-based, so security rests only on a hash function; FIPS 205 final. Largest spend reveal (~7.9 KB), which also exercises the 10,000-byte unlocking-bytecode limit end to end. Heavier to verify (priced by the sigcheck cost). Best for high-value cold storage. The same scheme backs Nervos CKB's deployed quantum-resistant lock, independent support for SPHINCS+ as the conservative on-chain choice.

Other candidates for later, via the same mechanism:

  • secp256r1 (NIST P-256): not post-quantum, but ubiquitous in consumer secure hardware (WebAuthn/passkeys, Secure Enclave, Android Keystore, TPM, FIDO2), so it would let wallets sign with device-bound keys users already hold.
  • ML-DSA-44 (Dilithium): FIPS 204 final; a middle-ground lattice option and a natural second leg for Falcon + Dilithium.

Rejected for first inclusion: XMSS/LMS (stateful; reusing a one-time index leaks the key, which does not mix with consumer wallets) and Falcon-1024 / higher SLH-DSA / ML-DSA levels (larger, addable later if wanted).

Evaluation of Alternatives

  • Do nothing. Leaves on-chain public keys exposed to a future quantum adversary and forgoes the hybrid and hardware-key uses. Given long migration times, waiting until it is urgent is itself a risk.
  • A new opcode per scheme. Special-cases each scheme into consensus and multiplies opcodes while needing the same verification logic. Size-then-type dispatch reuses OP_CHECKSIG and covers any number of schemes with no new opcodes.
  • Emulate PQ verification in pure Script (no consensus change). The only fork-free route, but infeasible for the leading schemes: Falcon and Dilithium hash with SHAKE-256 (SHA-3), and Script has no SHA-3/Keccak opcode (only OP_RIPEMD160, OP_SHA1, OP_SHA256, OP_HASH160, OP_HASH256), so they cannot be expressed at all. Even SHA-256-only SLH-DSA would need thousands of in-script hashes, far past the VM limits. A native verifier is required.
  • A new PQ opcode plus a new output/address type. Add OP_CHECKPQS and a new p2pkh-like template. This works, but costs a new opcode and a new address type (a CashAddr type bit) that every wallet, explorer, indexer, and exchange must adopt. DSP is not forfeited in principle (it needs only single-key authorization, which the template has, and could be extended to it), but that extension is extra work that must ship first. Overloading OP_CHECKSIG instead reuses the p2pkh template, so addresses, wallets, indexers, and DSP keep working unchanged.
  • Pick one PQ scheme and hard-code it. Ties BCH to one cryptosystem's standardization and cryptanalytic fate; the registry and hybrids let the ecosystem change and combine schemes.
  • A fully programmable-cryptography VM (e.g. Nervos CKB). A "generic CPU" runs verification in user-deployed lock scripts, so a new scheme (SPHINCS+ on CKB) needs no fork. Powerful, but a different VM than BCH's bounded Script, which cannot express these verifiers. For BCH the equivalent is this proposal's type-byte dispatch, keeping verification in consensus code while still making each scheme a small addition. CKB batches many inputs under one witness to cut size; BCH instead prices each input via the sigcheck cost and keeps the p2pkh model and DSP. Such size amortization is orthogonal to this proposal and could be added later (e.g. via the vault/covenant system, or via detached "cross-input" signatures that let several inputs share one signature, Jason Dreyzehner, 2027 Proposal: Transaction Version 5, CHIP-2025-01) without changing the dispatch defined here.

Security Considerations

  • Quantum threat model. This protects spend-time authorization. Coins whose public key is already exposed on-chain (reused addresses, P2PK, mempool-pending spends) stay exposed until moved to a PQ/hybrid address, so holders should migrate proactively.
  • Hybrid soundness. AND-composition makes an output as strong as its strongest surviving leg. There is no OR-mode, which would be as weak as the weakest leg.
  • Validation DoS. Bounded by the per-scheme sigcheck cost feeding the existing per-input/per-tx/per-block limits; correct calibration before activation is the key requirement (see Costs).
  • Consensus determinism. Verifiers are deterministic; SPHINCS+ is hash-only, and the vendored SHA-256 uses explicit big-endian byte operations, so it is bit-identical across platforms. Signing non-determinism (Falcon hedging, SPHINCS+ randomization) is off the consensus path.
  • Malleability. The compound grammar requires minimal pushdata, exact consumption, fixed leg order, and equal sighash-type bytes, closing third-party malleability of the encoding.
  • Wallet-side key extraction. The main practical risk is a non-constant-time PQ signer leaking key material: a wallet concern, out of consensus scope, but wallets must use audited signers.

Response to a compromised scheme

Any scheme may eventually be weakened or broken: a lattice advance against Falcon/Dilithium, a hash weakness in SPHINCS+, or a quantum break of secp256k1. The registry helps here too. With every scheme having a clear identity, the commit-delay-reveal-challenge recovery protocol generalizes to a from/to migration that moves funds out of any compromised scheme into any sound one. Handling differs for legacy secp256k1 and for the opt-in registry schemes.

  • Hybrids buy time. Breaking one leg does not compromise a secp + PQ or PQ + PQ output, so only atomic outputs at the broken scheme are urgent.
  • On a break, migration activates at once. A holder whose public key is not yet exposed is still hash-protected and sweeps at leisure. A holder whose key is exposed commits to the migrating spend immediately and ages that commitment; the protocol awards a contested coin to the oldest commitment, so an owner who commits before any attacker cannot lose, and the owner, able to act the moment the break is announced, has the head start.
  • secp256k1: keep the path open indefinitely. secp holds the chain's history and roughly 5 million coins, many dormant. Its recovery path should stay open as long as it deters a cracker at all, until quantum forgery becomes costless. While any cost remains, the protocol favours the original owner, so there is no cause to make secp outputs unspendable; the curve is carried as permanent tech debt.
  • Newer PQ schemes: migrate, then retire. After a deprecation notice and an open migration window, an upgrade may make a broken opt-in scheme unspendable. The point is not to deny crackers the coins ("not your keys, not your coins") but to clear tech debt: a fully-deprecated scheme everyone has had time and a destination to leave need not burden the verifier forever. The set is bounded and opt-in, so retiring it is cheap, and hybrids keep it rare.
  • Either way it is a consensus change. Disabling a scheme only removes validity, never adds it: the inverse of adding one.

Primary Stakeholders

  • Node developers (BCN, BCHN, Knuth, etc.): implement the dispatch and verifiers; review consensus-critical vendored crypto; calibrate sigcheck costs.
  • Wallet & library developers (Electron Cash, libraries such as Libauth/BCHN bindings, hardware-wallet vendors): key generation/derivation, audited signers, hybrid seed management, address display.
  • SPV servers / indexers (Fulcrum, etc.): handle larger transactions; no protocol change, but capacity considerations.
  • Miners & pool operators: larger PQ transactions and their fees; sigcheck-budget accounting.
  • Merchants & payment processors: beneficiaries of retained DSP/0-conf safety for PQ users.
  • Contract / dApp developers: hybrid keys and (if added) P-256 hardware keys as new building blocks.
  • Investors / holders: long-horizon custody assurance.

Statements

(To be collected from node implementations, wallets, and infrastructure operators during review.)

Changelog

  • 0.1: Initial draft. Signature-scheme registry; compound/hybrid keys; p2pkh reuse with DSP coverage; Falcon-512 and SPHINCS+ reference schemes; secp256r1 and ML-DSA as later candidates; prototype in Bitcoin Cash Node.

This document is placed in the public domain under the terms of CC0 1.0 Universal.