Type alias CompilationContext<TransactionType>

CompilationContext<TransactionType>: {
    inputIndex: number;
    sourceOutputs: Output[];
    transaction: TransactionType;
}

A reduced version of AuthenticationProgramCommon in which some transaction input unlockingBytecode values may be undefined. This context is required by the compiler to generate signatures.

As of BCH 2022, sourceOutputs.lockingBytecode is not required for any signing serialization algorithms. However, this type requires each to be provided in anticipation of a future signing serialization algorithm that supports committing to UTXO bytecode values.

Type Parameters

Type declaration

Generated using TypeDoc