summaryrefslogtreecommitdiff
path: root/bip-0119.mediawiki
diff options
context:
space:
mode:
Diffstat (limited to 'bip-0119.mediawiki')
-rw-r--r--bip-0119.mediawiki6
1 files changed, 6 insertions, 0 deletions
diff --git a/bip-0119.mediawiki b/bip-0119.mediawiki
index 0de7eb0..e887caf 100644
--- a/bip-0119.mediawiki
+++ b/bip-0119.mediawiki
@@ -167,6 +167,12 @@ specification for the semantics of OP_CHECKTEMPLATEVERIFY.
}
break;
+Where
+
+ bool CheckDefaultCheckTemplateVerifyHash(const std::vector<unsigned char>& hash) {
+ return GetDefaultCheckTemplateVerifyHash(current_tx, current_input_index) == uint256(hash);
+ }
+
The hash is computed as follows:
uint256 GetDefaultCheckTemplateVerifyHash(const CTransaction& tx, uint32_t input_index) {