diff options
author | Orfeas Litos <orfeas.litos@hotmail.com> | 2021-11-02 22:34:42 +0100 |
---|---|---|
committer | Orfeas Litos <orfeas.litos@hotmail.com> | 2021-11-02 22:36:05 +0100 |
commit | 1cab3e87f3b2f07e2ba9ff3d4d7ed904e78ec774 (patch) | |
tree | 33879edd05a8059b3f7a9399031291e4cfe7447b | |
parent | 708ce10bbc3c3be6d4293b50f56a1cae23c8b358 (diff) | |
download | bips-1cab3e87f3b2f07e2ba9ff3d4d7ed904e78ec774.tar.xz |
Define BIP-119 CheckDefaultCheckTemplateVerifyHash
-rw-r--r-- | bip-0119.mediawiki | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bip-0119.mediawiki b/bip-0119.mediawiki index 658764d..b407fab 100644 --- a/bip-0119.mediawiki +++ b/bip-0119.mediawiki @@ -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) { |