Timechain
Search Donate
Sponsors
Cake Wallet, private Bitcoin and Monero walletSideShift.ai, no-signup crypto exchangeOrangeRock, non-custodial bitcoin spot and perps tradingBraiins Hashpower, buy and sell Bitcoin hashrateLayer Two Labs, drivechains for Bitcoin
BIP 16

Pay to Script Hash

Deployed Activated soft fork Consensus (soft fork) Specification Assigned 2012-01-03

Pay to Script Hash. The sender pays to a hash; the receiver reveals the full script when spending. Won the 2012 P2SH war against BIP 17.

Plain-English summary by Bitcoin Takeover, based on the BIP text.
From the BIP’s abstract

This BIP describes a new "standard" transaction type for the Bitcoin scripting system, and defines additional validation rules that apply only to the new transactions.

Read BIP 16 on GitHubFind in explorer

Activated on mainnet

P2SH · Pay to Script Hash — 2012-04-01.

Let anyone pay to a short hash of a script (the “3…” addresses). Multisig and later wrapped SegWit became as easy to receive as a normal payment.

Miner coinbase vote (“/P2SH/”, 550 of ~1,000 blocks), then a flag day: timestamps ≥ 1333238400

In Bitcoin Core

The pay-to-script-hash evaluation rules have been implemented since v0.6.0, and took effect on April 1st 2012.

Drama

The P2SH War — Competing code, competing coinbase votes and competing thresholds for the same feature — an early template for every activation fight that followed. OP_EVAL (BIP 12) had already been replaced over complexity concerns.

Authors

Gavin Andresen
Gavin Andresen12 BIPs · Wiki · X

In the Bitcoin Takeover Wiki

0:000:00