Home › Lock types
Post-quantum lock types on Bitcoin
Every lock below works on Bitcoin today without a soft fork. None uses lattice schemes such as ML-DSA, Falcon or ML-KEM: Bitcoin Script cannot verify those. They all build a hash-based one-time signature out of what Script already has (hash opcodes, signature-size checks and ECDSA tricks).
PQB PQB · Fireblocks Labs (Oren Yomtov)
- On mainnet
- 28 locks on mainnet (pqbexplorer index)
- Lock format
- Bare 4,696-byte legacy script (no address): 109 HASH160 commitments plus HASH160 of an ECDSA key
- Signature
- HORS-style hash-based one-time signature with hash-to-DER anti-replay puzzles, ANDed with an ordinary ECDSA co-signature
- Relay
- Nonstandard: sent to a miner directly
- How it is recognised here
- Exact length 4,696 and skeleton sha256 f298beb8…24d99b (PQB v1 rule)
- Source
- github.com/fireblocks-labs/pqb
QSB QSB · StarkWare (Avihu Levy)
- On mainnet
- 6 locks on mainnet (pqbexplorer index)
- Lock format
- Bare legacy script: hard-coded DER signature pin, then rounds of 20-byte commitments with 9-byte dummy signatures (two tables of 150, per pqbexplorer.com)
- Signature
- Hash-based one-time signature via ECDSA signature-size puzzles (QSB)
- Relay
- Nonstandard: sent to a miner directly
- How it is recognised here
- Listed by pqbexplorer.com’s index; structure re-checked here (pin, OP_OVER/OP_CHECKSIGVERIFY header, ≥16-commitment round table)
- Source
- pqbexplorer.com
PQSB-SegWit PQSB-SegWit · Espresso Systems (“gets”, Ben Fisch, Benedikt Bünz)
- On mainnet
- 24 spends found (a P2WSH lock is visible only once spent)
- Lock format
- Ordinary P2WSH (bc1q…) output; the 1,985–2,629-byte witness script (201 ops) appears only when spent: 79–121 HASH160 commitments, 8–10 positions, 0–6 pins
- Signature
- Introspection signature: hash-based one-time signature whose ECDSA signatures must be unusually short (T of D bytes, e.g. 55 then 8 × 59)
- Relay
- Standard: relays through the normal mempool (P2WSH limits)
- How it is recognised here
- Masked-shape match against the official scanner’s layouts. The D constants are checked, and the level is kept off the page.
- Source
- github.com/EspressoSystems/PQSB
PQSB-Legacy PQSB-Legacy · Espresso Systems
- On mainnet
- 2 locks found, 2 spent
- Lock format
- Bare 9,987–10,000-byte legacy script (198–199 ops): a nonce component and three subset components over one list of 206–230 secrets
- Signature
- Introspection signature with the distance predicate (four components, FindAndDelete subset digests)
- Relay
- Nonstandard: sent to a miner directly
- How it is recognised here
- Masked-shape match against the official scanner’s Legacy layouts. The level is kept off the page.
- Source
- github.com/EspressoSystems/PQSB
Known PQSB layouts
From EspressoSystems/PQSB pqai-btc-everything/implementation-app/qsb2/scan.py families(), commit 944bc93, plus the paper’s 110-commitment row. A PQSB-like script matching none is listed as “unknown layout”.
| Layout | Type | What | Signature lengths |
|---|---|---|---|
p2wsh-pins | PQSB-SegWit | SegWit PQSB, P2WSH lock with pins 9 positions, 79 commitments, 4 pins | 58, 59, 59, 59, 59, 59, 59, 59, 59 57, 59, 59, 59, 59, 59, 59, 59, 59 56, 59, 59, 59, 59, 59, 59, 59, 59 55, 59, 59, 59, 59, 59, 59, 59, 59 55, 58, 59, 59, 59, 59, 59, 59, 59 |
p2wsh-pins-88 | PQSB-SegWit | SegWit PQSB, P2WSH lock with pins 8 positions, 88 commitments, 6 pins | 55, 59, 59, 59, 59, 59, 59, 59 55, 58, 59, 59, 59, 59, 59, 59 |
p2wsh-nopins-90 | PQSB-SegWit | SegWit PQSB, P2WSH lock without pins 10 positions, 90 commitments, no clamp | 58, 58, 59, 59, 59, 59, 59, 59, 59, 59 58, 58, 58, 59, 59, 59, 59, 59, 59, 59 58, 58, 58, 58, 59, 59, 59, 59, 59, 59 57, 58, 58, 58, 59, 59, 59, 59, 59, 59 |
p2wsh-nopins-121 | PQSB-SegWit | SegWit PQSB, P2WSH lock without pins 9 positions, 121 commitments, no clamp | 58, 58, 58, 59, 59, 59, 59, 59, 59 58, 58, 58, 58, 59, 59, 59, 59, 59 57, 58, 58, 58, 59, 59, 59, 59, 59 56, 58, 58, 58, 59, 59, 59, 59, 59 |
p2wsh-first | PQSB-SegWit | SegWit PQSB, first version 10 positions, 88 commitments, clamp on the last index | 58, 58, 58, 58, 59, 59, 59, 59, 59, 59 |
legacy-four-206 | PQSB-Legacy | Legacy PQSB, four components list of 206, openings 4, 4, 4, scalars 30, 37, 40, 43 | 57, 57, 57, 57 56, 57, 57, 57 56, 56, 57, 57 56, 56, 56, 57 56, 56, 56, 56 |
legacy-four-222 | PQSB-Legacy | Legacy PQSB, four components list of 222, openings 4, 4, 4, scalars 48, 26, 26, 27 | 55, 56, 56, 56 |
legacy-four-230 | PQSB-Legacy | Legacy PQSB, four components list of 230, openings 3, 4, 5, scalars 28, 29, 30, 28 | 56, 56, 55, 55 |
legacy-four-157-paper | PQSB-Legacy | Legacy PQSB, four components (a setting of the paper) list of 157, openings 4, 4, 4, scalars 18, 20, 21, 21 | 56, 56, 56, 56 |
legacy-four-110-paper | PQSB-Legacy | Legacy PQSB, four components (a setting of the paper) list of 110, openings 4, 4, 4, scalars 13, 13, 14, 14 | 56, 56, 56, 56 |
legacy-four-220-paper | PQSB-Legacy | Legacy PQSB, four components (a setting of the paper) list of 220, openings 3, 4, 5, scalars 30, 30, 20, 50 | 56, 56, 56, 55 |
p2wsh-pins-110 | PQSB-SegWit | SegWit PQSB, P2WSH lock with pins 8 positions, 110 commitments, 4 pins (paper, row) | 54, 59, 59, 59, 59, 59, 59, 59 |
Sources
- Espresso Systems, Practical Quantum Safe Bitcoin paper, code and scanner: github.com/EspressoSystems/PQSB · interactive walkthrough quantum.espressosys.com
- Announcement: x.com/EspressoSys/status/2128882429679329341 · SegWit thread x.com/EspressoSys/status/2128904054504042501
- First PQSB-locked inscription (claimed): x.com/ZK_shark · explainer x.com/Jiurn
- PQB: github.com/fireblocks-labs/pqb · PQB and QSB locks index: pqbexplorer.com