TeachMeBitcoin

Provably Unspendable

From TeachMeBitcoin, the free encyclopedia Reading time: 2 min

Provably Unspendable

The greatest technical contribution of OP_RETURN was not the data it carried, but the way it protected the Node Operators. By making data outputs "Provably Unspendable," Bitcoin ensured that data bloat doesn't crash the network.

1. The UTXO Set Problem

Before OP_RETURN, people who wanted to store data would use Fake Multisig scripts or send 1 satoshi to a random address.

2. How OP_RETURN Fixes It

When a node sees OP_RETURN, it knows that no possible signature or script can ever unlock those funds.

3. The Script Logic

The opcode OP_RETURN (hex 0x6a) instructs the Bitcoin Virtual Machine to stop processing the script and return a "False" result.

4. Burning Bitcoin

Any value sent to an OP_RETURN output is unrecoverable.

Output Type Stored in RAM? Persistent? Spendable?
P2PKH Yes Yes Yes
P2SH Yes Yes Yes
OP_RETURN No (Pruned) No (Index) No (Burned)

In the next section, we will look at real-world Use Cases for OP_RETURN.

☕ Help support TeachMeBitcoin

TeachMeBitcoin is an ad-free, open-source educational repository curated by a passionate team of Bitcoin researchers and educators for public benefit. If you found our articles helpful, please consider supporting our hosting and ongoing content updates with a clean donation:

Ethereum: 0x578417C51783663D8A6A811B3544E1f779D39A85
Bitcoin: bc1q77k9e95rn669kpzyjr8ke9w95zhk7pa5s63qzz
Solana: 4ycT2ayqeMucixj3wS8Ay8Tq9NRDYRPKYbj3UGESyQ4J
Address copied to clipboard!