diff options
author | Luke Dashjr <luke_github1@dashjr.org> | 2021-12-15 21:36:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-15 21:36:04 +0000 |
commit | 19043342760aed62d42229cc7b6351a42a94a968 (patch) | |
tree | 3ed66466ac22abdc60a2be2d26891b3c989364fe /bip-0119.mediawiki | |
parent | d36ee99961db43ac859cf034568a7c7f8bb4d4ce (diff) | |
parent | 3ff4a4ce9d52fa762fbb9b6f9da74b0b3689a11e (diff) |
Merge pull request #1226 from OrfeasLitos/define-check-119
Define BIP-119 CheckDefaultCheckTemplateVerifyHash
Diffstat (limited to 'bip-0119.mediawiki')
-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 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) { |