aboutsummaryrefslogtreecommitdiff
path: root/src/pubkey.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2021-02-01 18:53:24 -0800
committerPieter Wuille <pieter@wuille.net>2021-05-24 12:14:16 -0700
commit90fcac365e1616779b40a69736428435df75fdf2 (patch)
treecd748aee9785aa861c723cac5712ef3b1c796f4f /src/pubkey.h
parent5f6cc8daa83700d1c949d968a5cf0d935be337b7 (diff)
Add TaprootBuilder class
This class functions as a utility for building taproot outputs, from internal key and script leaves.
Diffstat (limited to 'src/pubkey.h')
-rw-r--r--src/pubkey.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pubkey.h b/src/pubkey.h
index b9d5f5d622..4de1807a7f 100644
--- a/src/pubkey.h
+++ b/src/pubkey.h
@@ -229,6 +229,11 @@ public:
XOnlyPubKey(const XOnlyPubKey&) = default;
XOnlyPubKey& operator=(const XOnlyPubKey&) = default;
+ /** Determine if this pubkey is fully valid. This is true for approximately 50% of all
+ * possible 32-byte arrays. If false, VerifySchnorr and CreatePayToContract will always
+ * fail. */
+ bool IsFullyValid() const;
+
/** Construct an x-only pubkey from exactly 32 bytes. */
explicit XOnlyPubKey(Span<const unsigned char> bytes);