We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dbb7de commit 6040de9Copy full SHA for 6040de9
src/pubkey.h
@@ -170,6 +170,15 @@ class CPubKey
170
/*
171
* Check syntactic correctness.
172
*
173
+ * When setting a pubkey (Set()) or deserializing fails (its header bytes
174
+ * don't match the length of the data), the size is set to 0. Thus,
175
+ * by checking size, one can observe whether Set() or deserialization has
176
+ * failed.
177
+ *
178
+ * This does not check for more than that. In particular, it does not verify
179
+ * that the coordinates correspond to a point on the curve (see IsFullyValid()
180
+ * for that instead).
181
182
* Note that this is consensus critical as CheckECDSASignature() calls it!
183
*/
184
bool IsValid() const
0 commit comments