Skip to content

Commit

Permalink
fix XOnlyPubKey::IsFullyValid comment reference
Browse files Browse the repository at this point in the history
The method name `CreatePayToContract` doesn't exist, very likely it was
a (local) working title that was renamed to `CreateTapTweak` later.
Also mention `CheckTapTweak`.
  • Loading branch information
theStack committed Nov 9, 2021
1 parent 94db963 commit 037c9ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pubkey.h
Expand Up @@ -230,8 +230,8 @@ class XOnlyPubKey
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
Expand Down

0 comments on commit 037c9ee

Please sign in to comment.