From b8adc8291ef116c1518be03808fc7d288e988717 Mon Sep 17 00:00:00 2001 From: bitcoincashautist <80100588+A60AB5450353F40E@users.noreply.github.com> Date: Tue, 12 Mar 2024 15:40:57 +0100 Subject: [PATCH] indicate token content is omitted if utxo doesn't have tokens --- 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 8815052..4b27c92 100644 --- a/protocol/blockchain/transaction/transaction-signing.md +++ b/protocol/blockchain/transaction/transaction-signing.md @@ -87,7 +87,7 @@ The following table specifies, in detail, the preimage format for a signature wi | sequence numbers hash | 32 bytes | hash[(BE)](/protocol/misc/endian/big) | A double SHA-256 hash of the set of sequence numbers of the inputs of the transaction. See [Sequence Numbers](#sequence-numbers-hash) for the hash preimage format.

If hash type is "ANYONECANPAY", "SINGLE", or "NONE" then this is all `0x00` bytes. | | previous output hash | 32 bytes | hash[(LE)](/protocol/misc/endian/little) | The transaction ID of the previous output being spent. | | previous output index | 4 bytes | unsigned integer[(LE)](/protocol/misc/endian/little) | The index of the output to be spent. | -| previous output token contents | variable | [token serialization](../transaction#token-output-format) | Previous output's token contents, including the PREFIX_TOKEN byte as the start. | +| \[previous output token contents\] | \[variable\] | [token serialization](../transaction#token-output-format) | Previous output's token contents, including the PREFIX_TOKEN byte as the start. If the previous output doesn't have tokens then this is omitted. | | 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. |