Skip to content

Commit cca8224

Browse files
committed
doc: fix SigMsg length in taproot sighash
1 parent 7ca7983 commit cca8224

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/taproot-sighash.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ If the parameters take acceptable values, the message is the concatenation of th
6161
*** ''sha_single_output'' (32): the SHA256 of the corresponding output in <code>CTxOut</code> format.
6262
*** '''''NEW''''' ''sha_single_output_witness'' (32): the SHA256 of the serialization of the corresponding output witnesses (rangeproof and surjection proof) in <code>CTxOutWitness</code> format.
6363
64-
The total length of ''SigMsg()'' is ''443'' bytes for <code>ANYONECANPAY</code> sighashes, ''366'' bytes for non-<code>ANYONECANPAY</code> sighashes, and both numbers are reduced by 64 bytes for <code>SIGHASH_NONE</code> sighashes. Note that this does not include the size of sub-hashes such as ''sha_prevouts'', which may be cached across signatures of the same transaction.
64+
The total length of ''SigMsg()'' is ''257--442'' bytes for <code>ANYONECANPAY</code> sighashes, ''366'' bytes for non-<code>ANYONECANPAY</code> sighashes, and both numbers are reduced by 64 bytes for <code>SIGHASH_NONE</code> sighashes, and increased by 32 bytes if an annex is present. Note that this does not include the size of sub-hashes such as ''sha_prevouts'', which may be cached across signatures of the same transaction.
6565

0 commit comments

Comments
 (0)