Learn / Address types
Legacy, SegWit, Taproot: which are exposed?
Hash-based addresses hide the key until you spend. Taproot and early P2PK outputs show it from day one.
Three Bitcoin output types put a public key on the blockchain the moment they receive coins: pay-to-public-key (P2PK), bare multisig (P2MS) and Taproot (P2TR). The others, legacy P2PKH addresses starting with 1, P2SH addresses starting with 3 and native SegWit addresses starting with bc1q, lock coins to a hash and reveal the key only when the coins are spent. Reusing an address undoes that protection.
New to this? Read Can quantum computers break Bitcoin?, a plain-English guide to Bitcoin's keys, signatures and addresses, and to what quantum computers and AI can and can't do.
Addresses are shorthand for scripts
Every bitcoin output carries a small locking script, the scriptPubKey, that says what it takes to spend it. An address is just a compact, checksummed way to write down one of the common script shapes, so that a recipient can tell a sender how to pay them. The output type decides what the script contains: a public key, a hash of a key, a hash of a longer script, or a Taproot output key. Two early types, P2PK and P2MS, never had an address format of their own, which is why they show "—" in the table below.
The seven types at a glance
| Type | Key visible before spend? | Address prefix | Introduced | What it locks to |
|---|---|---|---|---|
| P2PK | Yes | — | 2009 | Public key |
| P2MS | Yes | — | 2009 (standard since 2012, BIP 11) | 1 to 16 public keys (bare multisig) |
| P2PKH | No | 1… | 2009 | Hash of a public key |
| P2SH | No | 3… | 2012 (BIP 16) | Hash of a script |
| P2WPKH | No | bc1q… | 2017 (BIP 141) | Hash of a public key (SegWit v0) |
| P2WSH | No | bc1q… (long) | 2017 (BIP 141) | Hash of a script (SegWit v0) |
| P2TR | Yes | bc1p… | 2021 (BIP 341) | Taproot output key (SegWit v1) |
Native SegWit addresses use the Bech32 format from BIP 173; Taproot addresses use Bech32m from BIP 350. A P2WSH address is longer than a P2WPKH one (62 characters instead of 42) because it carries a 32-byte hash instead of a 20-byte one.
P2PK and bare multisig: the key is the lock
A P2PK output is simply a public key followed by OP_CHECKSIG. It is the format the original software used for mining rewards, so many coins mined in 2009 and 2010, including the blocks attributed to Satoshi Nakamoto (see the Patoshi pattern), have never moved and still sit in P2PK outputs with their keys in plain view.
Bare multisig (P2MS) lists between one and sixteen public keys followed by OP_CHECKMULTISIG. The opcode was already in the original 2009 software; BIP 11, proposed in 2011, made m-of-n outputs with up to three keys standard from Bitcoin 0.6 in 2012. Bare multisig has since been largely replaced by multisig inside P2SH and P2WSH, and Chaincode Labs' 2025 report cites a figure of only about 57 BTC left in bare multisig outputs.
Taproot: a different reason, the same result
A Taproot output is a SegWit version 1 output with a 32-byte witness program, and that program is itself a public key: the output key, a "tweaked" key that combines an internal key with a commitment to any alternative spending scripts. Anyone holding the private key for the output key can spend through the key path without touching those scripts. So, as Chaincode Labs notes, a quantum computer that derived that private key could spend the coins directly. Chaincode Labs also notes that, unlike P2PK and P2MS, this could be addressed with a soft fork that disables key-path spending if needed.
In the figures Chaincode Labs cites, Taproot outputs made up about a third of all unspent outputs but held under 1% of the value. The dashboard tracks the P2TR total live in the supply by output type table.
Hash-based types: the key stays hidden until you spend
P2PKH and P2WPKH lock coins to the HASH160 of a public key. P2SH locks to the HASH160 of a script, and P2WSH to the SHA-256 of a script. The key, or the script with its keys, only appears when the coins are spent, inside the spending input. Until then, an attacker would have to break the hash function, and Grover's algorithm only weakens hashes rather than breaking them.
The spend itself reveals the key, and the key stays public from then on. For the coins being spent, an attacker would have only the short time before the transaction confirms. That narrow window is the "short-range" risk described in Why does an exposed public key matter?, and it applies to every output type.
Address reuse reveals the key
Note: a hash-based address only protects the key until the first spend. After that, the public key is on the blockchain for good, and any coins still at that address, or sent to it later, are as exposed as a P2PK output. Chaincode Labs points out that address reuse remains common, for example in some exchange and institutional cold storage.
Glassnode calls this operational exposure and estimates it at about 4.12 million BTC. This site does not count it: classifying it would need the spending history of every address. The headline number covers structural exposure only, as explained in the methodology.
How the dashboard uses these types
The dashboard sorts every unspent output into one of the seven types above, or "Other" for anything that does not match a standard shape. P2PK, P2TR and P2MS are marked Exposed and make up the headline number; the four hash-based types are marked Hashed.
Sources
- BIP 11, "M-of-N Standard Transactions". github.com/bitcoin/bips/blob/master/bip-0011.mediawiki
- Bitcoin 0.6.0 release notes, 30 March 2012 (multisignature transactions become standard). bitcoin.org/en/release/v0.6.0
- BIP 16, "Pay to Script Hash". github.com/bitcoin/bips/blob/master/bip-0016.mediawiki
- BIP 141, "Segregated Witness (Consensus layer)". github.com/bitcoin/bips/blob/master/bip-0141.mediawiki
- BIP 173, "Base32 address format for native v0-16 witness outputs". github.com/bitcoin/bips/blob/master/bip-0173.mediawiki
- BIP 341, "Taproot: SegWit version 1 spending rules". github.com/bitcoin/bips/blob/master/bip-0341.mediawiki
- BIP 350, "Bech32m format for v1+ witness addresses". github.com/bitcoin/bips/blob/master/bip-0350.mediawiki
- Original Bitcoin source code (2009),
script.h, definingOP_CHECKMULTISIG. github.com/trottier/original-bitcoin/blob/master/src/script.h - Anthony Milton and Clara Shikhelman, Chaincode Labs, "Bitcoin and Quantum Computing: Current Status and Future Directions", May 2025. chaincode.com/bitcoin-post-quantum.pdf
- Glassnode, "Measuring Bitcoin's Quantum-Exposed Supply", 20 May 2026. research.glassnode.com/measuring-bitcoins-quantum-exposed-supply