From 17ff33257edf965e6cfb391944910c8cee68c4f1 Mon Sep 17 00:00:00 2001 From: krupawan5618 Date: Mon, 8 Mar 2021 13:07:05 -0500 Subject: [PATCH] Added ScriptSig table for completeness The public key was lost in this chapter when dissecting the transaction in whole. For completeness, a table demonstrating a breakdown of the ScriptSig was necessary to cover this. --- ch06.asciidoc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ch06.asciidoc b/ch06.asciidoc index c5fc7d7d..cc4adf44 100644 --- a/ch06.asciidoc +++ b/ch06.asciidoc @@ -285,6 +285,19 @@ Hints: * The length of the +scriptSig+ is 139 bytes, or +8b+ in hex * The sequence number is set to +FFFFFFFF+, again easy to identify((("", startref="alicesix"))) +When scriptSigs are serialized for transmission on the network, their inputs are encoded into a byte stream as shown in <>. + +[[tx_in_structure]] +.ScriptSig input serialization +[options="header"] +|======= +|Size| Field | Description +| 1–9 bytes (VarInt) | Signature Size | Signature length in bytes, to follow +| Variable | Signature | A signature that is produced by the user’s wallet from his or her private key, which includes a SIGHASH +| 1–9 bytes (VarInt) | Public Key Size | Public key length in bytes, to follow +| Variable | Public Key | The public key, which is equivalent to a bitcoin address, without the Base58Check encoding +|======= + [[tx_fees]] ==== Transaction Fees