The lastCodeSeparator indicates the index of the most recently executed
OP_CODESEPARATOR instruction. In each of the signing serialization
algorithms, the instructions are sliced at lastCodeSeparator, and the
subarray is re-encoded. The resulting bytecode is called the
coveredBytecode (A.K.A. scriptCode), and is part of the data hashed to
create the signing serialization digest.
By default, this is -1, which indicates that the whole instructions
array is included in the signing serialization.
The
lastCodeSeparator
indicates the index of the most recently executedOP_CODESEPARATOR
instruction. In each of the signing serialization algorithms, theinstructions
are sliced atlastCodeSeparator
, and the subarray is re-encoded. The resulting bytecode is called thecoveredBytecode
(A.K.A.scriptCode
), and is part of the data hashed to create the signing serialization digest.By default, this is
-1
, which indicates that the wholeinstructions
array is included in the signing serialization.