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
lastCodeSeparatorindicates the index of the most recently executedOP_CODESEPARATORinstruction. In each of the signing serialization algorithms, theinstructionsare 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 wholeinstructionsarray is included in the signing serialization.