Advanced Bitcoin Scripting — Part 1: Transactions & Multisig

This is the first part of a more technical talk where Andreas explores Bitcoin script, with examples from the 2nd edition of Mastering Bitcoin, focusing on the use of conditional statements, flow control, guard clauses and time locks. The examples will include advanced multi-signature scripts, hash time lock contracts and asymmetric revocable commitments. Then he answers questions about Bitcoin’s quirky bugs, where Bitcoin differs from Ethereum at a scripting level, how SegWit works, how consensus rules change, and whether Bitcoin is more than just a currency.

Watch Part 2 here: https://youtu.be/pQbeBduVQ4I

This talk took place at the San Francisco Bitcoin Developer (@SFBitcoinDev) meetup on April 3rd, 2017: https://www.meetup.com/SF-Bitcoin-Devs/events/238773843/

Review materials on the topics presented:
Chpt. 7: https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch07.asciidoc
Chpt. 12: https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch12.asciidoc

The fundamentals of Bitcoin script 2:17
Bitcoin’s operators 5:00
Creating transactions (P2PKH – Pay to Public Key Hash) 6:30
Public Key CheckSigs, security by obfuscating public keys 7:42
Redeeming the script 9:05
The RIPEMD160 hash operation 12:05
OP_EQUALVERIFY, OP_CHECKSIG, & the elliptic curve digital signature algorithm (ECDSA) 14:05
Summary 18:30
Illustrating scripts: Equal, EqualVerify, CheckSig, CheckVerify, CheckMultisig, CheckLockTimeVerify 19:45
Guard clauses 23:02
Script-based timelocks 24:53
Flow control statements, interactive artificial intelligence 26:50
If, Else, EndIf 28:35
Unlocking scripts, what conditional flows do in Bitcoin 33:55
1-of-2 multi-signature script 35:44
1-of-2 multi-signature script with guard clause 38:28
2-of-3 multi-signature script 41:30
2-of-3 multi-signature script with timelock guard clause 43:20
BIP-113, how time is referenced in Bitcoin 44:42
Backup clause & other nuances in multi-signature schemes 46:58
Game theory, complexity from simplicity 52:36
2-of-3 multi-signature script, unlocking 53:45

RELATED:
Bitcoin: Where the Laws of Mathematics Prevail – https://youtu.be/HaJ1hvon0E0
The rules of Bitcoin (part 1) – https://youtu.be/VnQu4uylfOs
The rules of Bitcoin (part 2) – https://youtu.be/vtIp0GP4w1E
Forkology: A Study of Forks for Newbies – https://youtu.be/rpeceXY1QBM
Irreversibility and consumer protection – https://youtu.be/R107YWu5XzU

Andreas M. Antonopoulos is a technologist and serial entrepreneur who has become one of the most well-known and well-respected figures in bitcoin.

Follow on Twitter: @aantonop https://twitter.com/aantonop
Website: https://antonopoulos.com/

He is the author of two books: “Mastering Bitcoin,” published by O’Reilly Media and considered the best technical guide to bitcoin; “The Internet of Money,” a book about why bitcoin matters.

THE INTERNET OF MONEY, v1: https://www.amazon.co.uk/Internet-Money-collection-Andreas-Antonopoulos/dp/1537000454/ref=asap_bc?ie=UTF8

MASTERING BITCOIN: https://www.amazon.co.uk/Mastering-Bitcoin-Unlocking-Digital-Cryptocurrencies/dp/1449374042

[NEW] MASTERING BITCOIN, 2nd Edition: https://www.amazon.com/Mastering-Bitcoin-Programming-Open-Blockchain/dp/1491954388

Subscribe to the channel to learn more about Bitcoin & open blockchains!

If you want early-access to talks and a chance to participate in a monthly LIVE Q&A with Andreas, become a patron: https://www.patreon.com/aantonop

Music: “Unbounded” by Orfan (https://www.facebook.com/Orfan/)
Outro Graphics: Phneep (https://www.phneep.com/)
Outro Art: Rock Barcellos (https://www.rockincomics.com.br/)

(Visited 240 times, 1 visits today)

You might be interested in

Playlists Have This Video

LEAVE YOUR COMMENT

Your email address will not be published. Required fields are marked *

eos
EOS (EOS) 0,767257 2,09%
aave
Aave (AAVE) 84,60 4,53%
the-graph
The Graph (GRT) 0,251621 8,21%
kusama
Kusama (KSM) 27,56 9,40%
waves
Waves (WAVES) 2,28 6,19%
dash
Dash (DASH) 28,05 4,04%
bitcoin
Bitcoin (BTC) 59.954,44 3,41%
ethereum
Ethereum (ETH) 2.926,85 2,73%
cardano
Cardano (ADA) 0,443749 5,15%
tether
Tether (USDT) 0,933799 0,09%
xrp
XRP (XRP) 0,491483 3,59%
solana
Solana (SOL) 137,63 5,06%
polkadot
Polkadot (DOT) 6,47 4,56%
usd-coin
USDC (USDC) 0,934350 0,02%
dogecoin
Dogecoin (DOGE) 0,141038 5,65%
uniswap
Uniswap (UNI) 7,19 3,45%
terra-luna
Terra Luna Classic (LUNC) 0,000098 6,11%
litecoin
Litecoin (LTC) 77,70 2,40%
chainlink
Chainlink (LINK) 13,55 4,55%
bitcoin-cash
Bitcoin Cash (BCH) 446,97 5,51%
algorand
Algorand (ALGO) 0,198076 9,12%
matic-network
Polygon (MATIC) 0,657320 3,36%
stellar
Stellar (XLM) 0,106807 2,68%
cosmos
Cosmos Hub (ATOM) 7,85 3,55%
filecoin
Filecoin (FIL) 5,64 5,62%
tron
TRON (TRX) 0,105677 0,17%
ethereum-classic
Ethereum Classic (ETC) 24,61 6,61%
dai
Dai (DAI) 0,933799 0,01%
tezos
Tezos (XTZ) 0,941825 4,09%
monero
Monero (XMR) 110,79 2,25%