Skip to content

Commit

Permalink
doc: fix SigMsg length in taproot sighash
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Jul 1, 2021
1 parent 7ca7983 commit cca8224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/taproot-sighash.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ If the parameters take acceptable values, the message is the concatenation of th
*** ''sha_single_output'' (32): the SHA256 of the corresponding output in <code>CTxOut</code> format.
*** '''''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.
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.
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.

0 comments on commit cca8224

Please sign in to comment.