Pay to script hash

From Bitcoin Wiki
Revision as of 22:40, 12 July 2014 by Theymos (talk | contribs) (More newbie-friendly)
Jump to: navigation, search

Pay to script hash (P2SH) transactions were standardised in BIP 16. They allow transactions to be sent to a script hash (addresses starting with 3) instead of a public key hash (addresses starting with 1). To spend bitcoins sent via P2SH, the recipient must provide a script matching the script hash and data which makes the script evaluate to true.

Using P2SH, you can send bitcoins to an address that is secured in various unusual ways without knowing anything about the details of how the security is set up. You just send bitcoins to the ~34-character P2SH address. The recipient might need the signatures of several people to spend these bitcoins, or a password might be required, or the requirements could be completely unique.

Addresses

BIP 13 specifies the address format. Bitcoin P2SH addresses always start with 3.

History

342ftSRCvFHfCeFFBuz4xwbeqnDw6BGUey is a Bitcoin address notable for being the first P2SH-compatible address receiving bitcoins on the production network. Its payment was mined in block 160720.