diff options
author | Pieter Wuille <pieter@wuille.net> | 2020-09-11 14:33:45 -0700 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2020-10-12 17:17:56 -0700 |
commit | 8bbed4b7acf4c76eaea8c0e10f3cbf6ba4e53809 (patch) | |
tree | 32afa457bf2ead02197781c43087b5f83f499d15 /src/pubkey.h | |
parent | 0664f5fe1f77f08d235aa3750b59428257b0b91d (diff) |
Implement Taproot validation (BIP 341)
This includes key path spending and script path spending, but not the
Tapscript execution implementation (leaf 0xc0 remains unemcumbered in
this commit).
Includes constants for various aspects of the consensus rules suggested
by Jeremy Rubin.
Diffstat (limited to 'src/pubkey.h')
-rw-r--r-- | src/pubkey.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pubkey.h b/src/pubkey.h index 1a818037d1..0f784b86e4 100644 --- a/src/pubkey.h +++ b/src/pubkey.h @@ -221,8 +221,10 @@ public: * sigbytes must be exactly 64 bytes. */ bool VerifySchnorr(const uint256& msg, Span<const unsigned char> sigbytes) const; + bool CheckPayToContract(const XOnlyPubKey& base, const uint256& hash, bool parity) const; const unsigned char& operator[](int pos) const { return *(m_keydata.begin() + pos); } + const unsigned char* data() const { return m_keydata.begin(); } size_t size() const { return m_keydata.size(); } }; |