Bitcoin, Explained — The Technical Side of Bitcoin

Bitcoin, Explained 74: P2SH

In this episode of Bitcoin, Explained, Aaron and Sjors explain pay-to-script-hash (P2SH), which allows bitcoin to be sent to and from the hash of a script. Besides (the current implementation of) P2SH itself, Aaron and S...

2023-03-17

Episode notes

In this episode of Bitcoin, Explained, Aaron and Sjors explain pay-to-script-hash (P2SH), which allows bitcoin to be sent to and from the hash of a script. Besides (the current implementation of) P2SH itself, Aaron and Sjors also discuss some alternatives that were proposed around the time that P2SH was adopted in 2012.


For further reading on the history of P2SH, also see “The Battle for P2SH: The Untold History of Bitcoin’s First War“


Chapters


00:00:00 Introduction and listener boost

00:04:22 How pay-to-script-hash works

00:10:53 OP_EVAL: the first proposal

00:16:11 Why OP_EVAL raised recursion risks

00:23:43 P2SH script templates and soft forks

00:28:16 CheckHashVerify: the alternative proposal

00:33:58 Choosing P2SH: miner signaling and developer review

00:38:28 Deployment mishaps and upgrading Bitcoin


Episode Sponsor: https://voltage.cloud/


Sjors New Book: https://www.amazon.com/Bitcoin-Technical-innovations-Sjors-Provoost/dp/9090360425