From 037c9ee79bae772ba951cdee6cb678a3264abe8b Mon Sep 17 00:00:00 2001 From: Sebastian Falbesoner Date: Sun, 31 Oct 2021 02:39:15 +0100 Subject: [PATCH] fix `XOnlyPubKey::IsFullyValid` comment reference The method name `CreatePayToContract` doesn't exist, very likely it was a (local) working title that was renamed to `CreateTapTweak` later. Also mention `CheckTapTweak`. --- src/pubkey.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pubkey.h b/src/pubkey.h index 861a2cf5006..f174ad8d850 100644 --- a/src/pubkey.h +++ b/src/pubkey.h @@ -230,8 +230,8 @@ public: 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. */ + * possible 32-byte arrays. If false, VerifySchnorr, CheckTapTweak and CreateTapTweak + * will always fail. */ bool IsFullyValid() const; /** Test whether this is the 0 key (the result of default construction). This implies