mirror of
https://github.com/bitcoinbook/bitcoinbook
synced 2025-01-22 21:51:10 +00:00
Merge pull request #864 from krupawan5618/patch-1
ch06 - Added ScriptSig serialization table for completeness
This commit is contained in:
commit
ef8a9158f7
@ -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")))
|
||||
|
||||
ScriptSig is a specific type of unlocking script that when serialized for transmission on the network, inputs are encoded into a byte stream as shown in <<scriptsig_in_structure>>. The serialization of the signature field is detailed in <<seralization_of_signatures_der>>. The signature field also includes a Signature Hash Type (SIGHASH), which is detailed in <<sighash_types>>.
|
||||
|
||||
[[scriptsig_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, unhashed
|
||||
|=======
|
||||
|
||||
[[tx_fees]]
|
||||
==== Transaction Fees
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user