From eb4116f8b47b211f5748fa816138a2d2906a22c6 Mon Sep 17 00:00:00 2001 From: jachiang <26572234+jachiang@users.noreply.github.com> Date: Mon, 11 Sep 2017 21:07:16 +0200 Subject: [PATCH 1/3] ch06 sighash flag typo: one input (s) --- ch06.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ch06.asciidoc b/ch06.asciidoc index 30ee8c07..dd687964 100644 --- a/ch06.asciidoc +++ b/ch06.asciidoc @@ -610,8 +610,8 @@ In addition, there is a modifier flag +SIGHASH_ANYONECANPAY+, which can be combi [options="header"] |======================= |SIGHASH flag| Value | Description -| ALL\|ANYONECANPAY | 0x81 | Signature applies to one inputs and all outputs -| NONE\|ANYONECANPAY | 0x82 | Signature applies to one inputs, none of the outputs +| ALL\|ANYONECANPAY | 0x81 | Signature applies to one input and all outputs +| NONE\|ANYONECANPAY | 0x82 | Signature applies to one input, none of the outputs | SINGLE\|ANYONECANPAY | 0x83 | Signature applies to one input and the output with the same index number |======================= From 06378864c58efced07e4d8a7265d7100fa88708d Mon Sep 17 00:00:00 2001 From: jachiang <26572234+jachiang@users.noreply.github.com> Date: Mon, 11 Sep 2017 21:16:41 +0200 Subject: [PATCH 2/3] ch06 typo: first part of an input is tx reference and output index (vs sequence number, which is the 3rd part) --- ch06.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch06.asciidoc b/ch06.asciidoc index dd687964..66c27672 100644 --- a/ch06.asciidoc +++ b/ch06.asciidoc @@ -171,7 +171,7 @@ Here are some hints: To build a transaction, a wallet selects from the UTXO it controls, UTXO with enough value to make the requested payment. Sometimes one UTXO is enough, other times more than one is needed. For each UTXO that will be consumed to make this payment, the wallet creates one input pointing to the UTXO and unlocks it with an unlocking script. -Let's look at the components of an input in greater detail. The first part of an input is a pointer to an UTXO by reference to the transaction hash and sequence number where the UTXO is recorded in the blockchain. The second part is an unlocking script, which the wallet constructs in order to satisfy the spending conditions set in the UTXO. Most often, the unlocking script is a digital signature and public key proving ownership of the bitcoin. However, not all unlocking scripts contain signatures. The third part is a sequence number, which will be discussed later. +Let's look at the components of an input in greater detail. The first part of an input is a pointer to an UTXO by reference to the transaction hash and an output index, which identifies the specific UTXO from that transaction. The second part is an unlocking script, which the wallet constructs in order to satisfy the spending conditions set in the UTXO. Most often, the unlocking script is a digital signature and public key proving ownership of the bitcoin. However, not all unlocking scripts contain signatures. The third part is a sequence number, which will be discussed later. Consider our example in <>. The transaction inputs are an array (list) called +vin+: From 8f1075f42340715b37e835bad77d2937a10f5852 Mon Sep 17 00:00:00 2001 From: jachiang <26572234+jachiang@users.noreply.github.com> Date: Mon, 11 Sep 2017 21:24:53 +0200 Subject: [PATCH 3/3] ch06 correction: First part of input is transaction ID & output index (vs. sequence, which is the 3rd part) --- ch06.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch06.asciidoc b/ch06.asciidoc index 66c27672..4e4b56c8 100644 --- a/ch06.asciidoc +++ b/ch06.asciidoc @@ -171,7 +171,7 @@ Here are some hints: To build a transaction, a wallet selects from the UTXO it controls, UTXO with enough value to make the requested payment. Sometimes one UTXO is enough, other times more than one is needed. For each UTXO that will be consumed to make this payment, the wallet creates one input pointing to the UTXO and unlocks it with an unlocking script. -Let's look at the components of an input in greater detail. The first part of an input is a pointer to an UTXO by reference to the transaction hash and an output index, which identifies the specific UTXO from that transaction. The second part is an unlocking script, which the wallet constructs in order to satisfy the spending conditions set in the UTXO. Most often, the unlocking script is a digital signature and public key proving ownership of the bitcoin. However, not all unlocking scripts contain signatures. The third part is a sequence number, which will be discussed later. +Let's look at the components of an input in greater detail. The first part of an input is a pointer to an UTXO by reference to the transaction hash and an output index, which identifies the specific UTXO in that transaction. The second part is an unlocking script, which the wallet constructs in order to satisfy the spending conditions set in the UTXO. Most often, the unlocking script is a digital signature and public key proving ownership of the bitcoin. However, not all unlocking scripts contain signatures. The third part is a sequence number, which will be discussed later. Consider our example in <>. The transaction inputs are an array (list) called +vin+: