How Ordinal Inscriptions Work at a Technical Level
Ordinal theory assigns a serial number to each satoshi based on the order it was mined, following a specific numbering convention established by Casey Rodarmor's ord protocol. Inscriptions attach arbitrary content (images, text, JSON, HTML) to specific satoshis by embedding that content in the witness data of a Bitcoin transaction.
Technically, an inscription is created by spending a coin in a two-step process. First, a commit transaction creates a P2TR output that commits to a script containing the inscription data. Second, a reveal transaction spends that output, executing the script and embedding the inscription content in the witness field. The result is a satoshi carrying an inscription, stored in a P2TR (Taproot) output belonging to the creator's wallet.
All current major Ordinals wallets (Xverse, Leather, Unisat) use P2TR outputs for inscription storage by default. This means every inscription holder's Bitcoin sits in a Taproot address, with the specific quantum exposure characteristics of P2TR outputs.
Bitcoin Output Type Quantum Exposure: P2PK vs P2PKH vs P2WPKH vs P2TR
To understand why Ordinals creates a specific quantum exposure problem, it helps to compare all four major Bitcoin output types systematically. Their quantum risk profiles differ substantially because of how and when each type exposes the controlling public key.
| Output type | When public key appears on-chain | Key exposure at rest (unspent) | Signature scheme | Quantum risk at rest | Used by Ordinals? |
|---|---|---|---|---|---|
| P2PK (pay-to-public-key) | At creation — full public key is the output script | Immediate and permanent | ECDSA secp256k1 | Maximum — Shor's can attack immediately | No (legacy format) |
| P2PKH (pay-to-public-key-hash) | At first spend — key hidden behind RIPEMD-160(SHA-256) hash | Hidden behind 160-bit hash until first spend | ECDSA secp256k1 | Low for unspent outputs — hash inversion requires ~80-bit quantum effort | No (legacy format) |
| P2WPKH (native SegWit) | At first spend — key hidden behind HASH160 | Hidden behind 160-bit hash until first spend | ECDSA secp256k1 | Low for unspent outputs — same hash protection as P2PKH | No (non-Ordinals wallets) |
| P2TR key-path (Taproot) | At creation — tweaked public key Q committed directly in output | Immediate and permanent (full tweaked public key Q is the output) | Schnorr secp256k1 | High — equivalent to P2PK exposure from creation moment | Yes — all major Ordinals wallets use P2TR by default |
Why P2TR Taproot Specifically Increases Ordinals Quantum Exposure
The transition to Taproot was, on net, a security improvement for classical attackers. But it is a regression for quantum exposure compared to P2WPKH. Here is the precise mechanism.
A P2WPKH output contains OP_0 followed by a 20-byte hash of the public key. The public key itself is absent from the output. An attacker looking at an unspent P2WPKH UTXO sees only the hash. To mount a Shor's attack, they would first need to invert RIPEMD-160(SHA-256(pubkey)) — a task that costs approximately 2^80 quantum operations using Grover's algorithm on the hash preimage. This is not free, but it provides meaningful protection for unspent UTXOs.
A P2TR output contains OP_1 followed by the 32-byte x-coordinate of the tweaked public key Q = P + t*G, where P is the internal public key and t is a commitment to the Tapscript tree. The full public key — or at least the information needed to run Shor's algorithm — is directly encoded in the 32 bytes of the output. There is no hash protecting it. A quantum attacker can attempt to derive the private key from Q directly without any preprocessing.
This is the core of the Taproot quantum regression. P2TR is P2PK-equivalent for quantum attack purposes, not P2PKH-equivalent. Every sat in a P2TR output is fully quantum-exposed from the moment that output is created and confirmed on-chain.
How Tapscript Reveals Additional Key Material During Inscription
The inscription creation process adds a second layer of key exposure specific to Ordinals. The reveal transaction that actually inscribes content must execute the Tapscript path — meaning it must reveal the Tapscript in the witness data and spend the commit output.
When a Tapscript path spend occurs, the witness data includes: the script being executed (which contains the inscription content), a control block proving the script is committed to by the output's key, and a Schnorr signature authorizing the spend. The Schnorr signature reveals the public key used for signing. If the inscription wallet reuses addresses — which early Ordinals wallets often did — this Schnorr signature in the reveal transaction permanently confirms that the same key controls subsequent outputs at that address.
Tapscript key-path spending — the more common approach used by non-inscription Taproot transactions — also reveals the full tweaked key Q as part of signature verification. For inscription holders who use their inscription address as a general-purpose Taproot wallet, every transaction from that address adds another public key confirmation to the on-chain record.
The net result: an inscription held in a P2TR wallet that has previously sent transactions from the same address has both the output-embedded public key and multiple Schnorr signature confirmations of that same key on-chain. This is maximally quantum-exposed. An attacker does not need to guess which key controls the output — multiple independent transactions confirm it.
P2TR Outputs and Inscription Holder Quantum Exposure
P2TR outputs commit to a tweaked public key Q directly in the output script. This public key is visible on-chain from the moment the output is created. As covered in detail in the analysis of Taproot's quantum safety properties, key-path P2TR spends expose the public key permanently and immediately, unlike P2WPKH which hides the key behind a hash until the first spend.
For inscription holders, this means: every inscription sitting in a P2TR output is associated with a public key that is already on-chain. A quantum attacker with sufficient qubit capacity does not need to wait for the inscription owner to initiate a transfer. They can derive the private key from the on-chain public key, construct a transfer transaction sending the inscription to an attacker-controlled address, and broadcast it.
The inscription itself (the ordinal sat with attached content) would transfer to the attacker's wallet. The original holder would lose both the inscription and the BTC dust carrying it.
Why High-Value Inscriptions Are Attractive Quantum Targets
The Ordinals market has produced inscriptions with significant value. Inscription #0 (the Genesis inscription, a pixel art image of a skull) and other early low-number inscriptions have traded for several BTC each. Rare satoshi categories — satoshis with specific ordinal numbers: first sat of a block, first sat of a difficulty adjustment period — carry premiums of 0.1 to 5 BTC depending on rarity tier.
The total market capitalization of Ordinals inscriptions reached approximately $1.2 billion at its 2024 peak. As of mid-2026, the market has contracted significantly, but high-value individual inscriptions remain attractive targets with specific, identifiable on-chain locations.
Unlike regular BTC UTXOs where the value is fungible and an attacker might prioritize by balance, inscriptions have non-fungible value attached to specific satoshis. An attacker with a list of high-value inscriptions and their current P2TR output addresses could target specific UTXOs rather than scanning all P2TR outputs. The publicly available ord indexer data provides exactly this targeting information.
Rare sat categories are especially precise targets. A satoshi classified as "uncommon" (first sat of each block) is worth roughly 0.05 BTC above its face value. A satoshi classified as "rare" (first sat of a difficulty adjustment period) commands premiums of 1 to 5 BTC. A "mythic" sat (the genesis block's first sat) is unique and has no market clearing price. All of these are identifiable by ordinal number, and their current custodial addresses are publicly visible via any ord indexer.
The Address Reuse Problem in NFT Markets
Ordinals trading involves frequent transfers: listings on marketplaces, sales, secondary transfers. Each time an inscription moves, the sending address's public key is revealed on-chain in the input's witness data.
The address reuse problem for Bitcoin quantum risk applies directly here. If an inscription holder has previously sent BTC from the same P2TR address, their public key is now permanently on-chain via Schnorr signature confirmation. Any new UTXOs received at that address are quantum-vulnerable, not just at-rest-vulnerable.
Ordinals marketplace infrastructure has historically been worse about address reuse than standard Bitcoin wallets. Some early Ordinals wallets did not automatically generate new receive addresses for each transaction. Users who bought, sold, and re-purchased inscriptions through the same wallet address over multiple transactions have compound exposure: their public key is confirmed on-chain, and their current inscription holdings at that address are immediately attackable.
Best practice for inscription holders is to verify that their current holding address has never been used as a sending address. This is checkable on any Bitcoin block explorer by looking at the address's transaction history. If any outgoing transaction exists from the address, the public key is exposed and Shor's algorithm could be applied to that key.
Why NFT and Inscription Migration Is Effectively Impossible Today
For regular BTC held in quantum-vulnerable addresses, migration is straightforward in principle: send coins from the exposed P2TR address to a new address. Once BIP-360 or a similar post-quantum output type is available at the consensus layer, holders can migrate to P2QRH outputs.
For inscriptions, the migration problem is qualitatively harder. An inscription tracks a specific satoshi. When you move an inscription, you are constructing a Bitcoin transaction that:
- Takes the UTXO containing the inscription-bearing sat as an input
- Creates a new output that contains that same sat (using FIFO ordinal accounting)
- Signs the transaction with the current controlling key (exposing that key via Schnorr signature if not already exposed)
There is no mechanism to "upgrade" an inscription's address format without a spend transaction. And there is no mechanism on Bitcoin mainnet today to create a post-quantum-protected output. BIP-360 proposes P2QRH (pay-to-quantum-resistant-hash) outputs using ML-DSA, but as of mid-2026, BIP-360 has not been activated. No activation timeline has been committed to by Bitcoin Core maintainers.
Even after BIP-360 activates, migrating inscriptions will require moving each inscription individually from its current P2TR address to a new P2QRH address. Each migration transaction exposes the current secp256k1 public key in the witness data — the spend that protects the inscription going forward requires a brief (approximately 10-minute block confirmation window) period of full public key exposure. If quantum hardware reaches attack-capable scale before migration is complete, that 10-minute window becomes a real threat window.
High-value inscriptions held in addresses that have already exposed their keys through prior transactions have no migration path to safety without first finding a quantum-safe spending mechanism — which does not exist at the Bitcoin base layer today. This distinguishes inscription holders from holders of fungible BTC in fresh unspent P2WPKH outputs, who retain a quantum safety window until they spend.
The Specific UTXO Model for Ordinals and Attack Mechanics
Ordinals tracks specific satoshis using FIFO (first-in-first-out) accounting within each transaction. The first satoshi of the first input corresponds to the first satoshi of the first output. This means inscription holders must be careful when spending UTXOs in the same wallet: accidentally spending the UTXO containing a valuable inscription (rather than a different dust output) would transfer the inscription without the owner intending to.
For a quantum attacker, this UTXO structure provides useful targeting information. The attacker knows exactly which UTXO contains the high-value inscription (from the ord indexer), knows the public key controlling that UTXO (from the P2TR output), and can construct a transaction spending that specific UTXO to their own address.
The attack does not need to be subtle. A quantum attacker with a valid private key can sign a standard Bitcoin transaction transferring the inscription UTXO. There is no script condition to satisfy beyond a valid Schnorr signature. Bitcoin transactions are final. A valid signature spending the UTXO is all that is required.
What Inscription Holders Should Do Now
First, check whether your inscription holding address has any outgoing transaction history. If it does, your public key is on-chain and your holdings at that address are in a higher-risk category than standard P2TR outputs. Use any Bitcoin block explorer to review the transaction history of each address that holds valuable inscriptions.
Second, use wallet software that generates new addresses for each receive. Moving your inscription to a fresh P2TR address that has never sent a transaction does not eliminate the key-path quantum exposure (the public key is still in the output), but it eliminates the compounding effect of Schnorr signature confirmation from address reuse.
Third, watch BIP-360 progress and the P2QRH output type proposal. The ability to hold inscriptions in post-quantum-resistant outputs requires base-layer changes. When those changes are available, migrating early — before quantum hardware reaches threatening capability — is significantly safer than waiting until migration is urgent.
The overall quantum vulnerability of Bitcoin places Ordinals holders in the same risk category as all P2TR output holders: key-path exposure is real and the timeline depends on quantum hardware progress. Inscription holders face an additional layer of risk from the identifiability and non-fungible value of their specific UTXOs. That combination of factors — known target, known address, non-fungible value, migration difficulty — makes high-value inscription UTXOs among the most precisely targetable assets in a quantum attack scenario.
Frequently Asked Questions
Are Bitcoin Ordinals more quantum-vulnerable than regular Bitcoin?
Yes, in a specific way. All P2TR outputs expose their controlling public key from creation — both regular Bitcoin and Ordinals inscriptions held in P2TR addresses share this exposure. However, inscriptions are more vulnerable in practice because: (1) they are identifiable high-value targets through ord indexer data, (2) migration is structurally harder than moving fungible BTC, and (3) Tapscript reveals during the inscription reveal transaction add additional public key confirmations on-chain.
Does the Ordinals protocol expose public keys on-chain?
Yes, in two ways. First, the commit-and-reveal inscription process involves a reveal transaction that includes a Schnorr signature, permanently recording the public key. Second, P2TR outputs (used by all major Ordinals wallets) commit to the tweaked public key Q directly in the output — no hash protection. This is equivalent to P2PK exposure, not P2PKH exposure.
How would a quantum attack on Bitcoin Ordinals work?
An attacker would identify high-value inscription UTXOs via public ord indexer data, extract the P2TR public key Q from each output script, apply Shor's algorithm to derive the private key from Q, construct a standard Bitcoin transaction transferring the inscription UTXO to an attacker-controlled address, and broadcast it. The inscription transfers permanently with no recourse. The attack requires only that Shor's algorithm completes faster than the victim can respond — which under quantum hardware at full scale would take hours to days, not the 10-minute block window required to race a broadcast.
Can Ordinals inscriptions be migrated to quantum-safe addresses?
Not today. BIP-360 proposes P2QRH outputs using ML-DSA signatures, but it has not been activated on Bitcoin mainnet. Even after activation, migrating an inscription requires a spend transaction that briefly exposes the current secp256k1 key. Inscriptions whose controlling keys are already on-chain from prior transactions have no migration path that avoids further exposure. The migration window is safest before quantum hardware reaches attack-capable scale.
Why is Taproot worse than SegWit (P2WPKH) for quantum security?
P2WPKH hides the public key behind a 160-bit RIPEMD-160(SHA-256) hash in the output. An attacker must invert that hash — costing approximately 2^80 quantum operations — to recover the public key before running Shor's algorithm. P2TR commits the tweaked public key Q directly in the output as a 32-byte x-coordinate with no hash. No hash inversion is needed; the public key is directly available. P2TR is therefore equivalent to P2PK (full exposure) for quantum attack purposes, while P2WPKH is equivalent to P2PKH (hash-protected until first spend).
