From 63d3a0eba3096efaaf1e83224f91ef19ee9b467e Mon Sep 17 00:00:00 2001 From: Jonathan Silverblood Date: Mon, 27 Dec 2021 14:47:44 +0200 Subject: [PATCH] Address size of the input sequence number According to https://github.com/bitcoincashorg/bitcoincash.org/blob/master/spec/replay-protected-sighash.md, the nSequence field should be 4-byte little endian. --- protocol/blockchain/transaction/transaction-signing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/blockchain/transaction/transaction-signing.md b/protocol/blockchain/transaction/transaction-signing.md index fb9792b..c310d06 100644 --- a/protocol/blockchain/transaction/transaction-signing.md +++ b/protocol/blockchain/transaction/transaction-signing.md @@ -81,7 +81,7 @@ The following table specifies, in detail, the preimage format for a signature wi | modified locking script length | variable | [variable length integer](/protocol/format/variable-length-integer) | The number of bytes for `modified_locking_script`. | | modified locking script | `modified_locking_script_length` bytes | bytes[(BE)](/protocol/misc/endian/big) | The subset of the locking script used for signing. See [Modified Locking Script](#modified-locking-script) | | previous output value | 8 bytes | unsigned integer[(LE)](/protocol/misc/endian/little) | The value of the transaction output being spent. | -| input sequence number | 8 bytes | unsigned integer[(LE)](/protocol/misc/endian/little) | The sequence number of the input this signature is for. | +| input sequence number | 4 bytes | unsigned integer[(LE)](/protocol/misc/endian/little) | The sequence number of the input this signature is for. | | transaction outputs hash | 32 bytes | hash[(BE)](/protocol/misc/endian/big) | A double SHA-256 hash of the outputs of the transaction. See [Transaction Outputs](#transaction-outputs-hash) for the hash preimage format. | | transaction lock time | 4 bytes | unsigned integer[(LE)](/protocol/misc/endian/little) | The lock time of the transaction. | | hash type | 4 bytes | [Hash Type](#hash-type)[(LE)](/protocol/misc/endian/little) | Flags indicating the rules for how this signature was generated. |