|
|
|
@ -136,7 +136,7 @@ script validation.
|
|
|
|
|
|
|
|
|
|
[[scriptSig_and_scriptPubKey]]
|
|
|
|
|
.Combining scriptSig and scriptPubKey to evaluate a transaction script
|
|
|
|
|
image::images/mbc2_0603.png["scriptSig_and_scriptPubKey"]
|
|
|
|
|
image::../images/mbc2_0603.png["scriptSig_and_scriptPubKey"]
|
|
|
|
|
|
|
|
|
|
===== The script execution stack
|
|
|
|
|
|
|
|
|
@ -222,7 +222,7 @@ execution is halted explicitly by an operator, such as +OP_VERIFY+,
|
|
|
|
|
|
|
|
|
|
[[simplemath_script]]
|
|
|
|
|
.Bitcoin's script validation doing simple math
|
|
|
|
|
image::images/mbc2_0604.png["TxScriptSimpleMathExample"]
|
|
|
|
|
image::../images/mbc2_0604.png["TxScriptSimpleMathExample"]
|
|
|
|
|
|
|
|
|
|
[role="pagebreak-before"]
|
|
|
|
|
The following is a slightly more complex script, which calculates ++2 +
|
|
|
|
@ -317,11 +317,10 @@ startref="Stransact06")))
|
|
|
|
|
|
|
|
|
|
[[P2PubKHash1]]
|
|
|
|
|
.Evaluating a script for a P2PKH transaction (part 1 of 2)
|
|
|
|
|
image::images/mbc2_0605.png["Tx_Script_P2PubKeyHash_1"]
|
|
|
|
|
image::../images/mbc2_0605.png["Tx_Script_P2PubKeyHash_1"]
|
|
|
|
|
|
|
|
|
|
[[P2PubKHash2]]
|
|
|
|
|
.Evaluating a script for a P2PKH transaction (part 2 of 2)
|
|
|
|
|
image::images/mbc2_0606.png["Tx_Script_P2PubKeyHash_2"]
|
|
|
|
|
|
|
|
|
|
[[ch07_intro]]
|
|
|
|
|
=== Introduction
|
|
|
|
@ -338,6 +337,7 @@ opens up a whole world of complex scripts. Then, we will examine new
|
|
|
|
|
script operators that add a time dimension to bitcoin, through
|
|
|
|
|
_timelocks_. Finally, we will look at _Segregated Witness_, an
|
|
|
|
|
architectural change to the structure of transactions.
|
|
|
|
|
image::../images/mbc2_0606.png["Tx_Script_P2PubKeyHash_2"]
|
|
|
|
|
|
|
|
|
|
[[multisig]]
|
|
|
|
|
=== Multisignature
|
|
|
|
|