Define BIP-119 CheckDefaultCheckTemplateVerifyHash

This commit is contained in:
Orfeas Litos 2021-11-02 22:34:42 +01:00
parent 708ce10bbc
commit 1cab3e87f3
No known key found for this signature in database
GPG Key ID: 948100FDBA28707E

View File

@ -159,6 +159,12 @@ specification for the semantics of OP_CHECKTEMPLATEVERIFY.
}
break;
Where
bool CheckDefaultCheckTemplateVerifyHash(uint256 hash) {
return GetDefaultCheckTemplateVerifyHash(current_tx, current_input_index) == hash;
}
The hash is computed as follows:
uint256 GetDefaultCheckTemplateVerifyHash(const CTransaction& tx, uint32_t input_index) {