From 1cab3e87f3b2f07e2ba9ff3d4d7ed904e78ec774 Mon Sep 17 00:00:00 2001
From: Orfeas Litos <orfeas.litos@hotmail.com>
Date: Tue, 2 Nov 2021 22:34:42 +0100
Subject: Define BIP-119 CheckDefaultCheckTemplateVerifyHash

---
 bip-0119.mediawiki | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'bip-0119.mediawiki')

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) {
-- 
cgit v1.2.3

