mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
Add comments on CPubKey::IsValid
This commit is contained in:
parent
8dbb7de67c
commit
6040de9a46
1 changed files with 9 additions and 0 deletions
|
@ -170,6 +170,15 @@ public:
|
|||
/*
|
||||
* Check syntactic correctness.
|
||||
*
|
||||
* When setting a pubkey (Set()) or deserializing fails (its header bytes
|
||||
* don't match the length of the data), the size is set to 0. Thus,
|
||||
* by checking size, one can observe whether Set() or deserialization has
|
||||
* failed.
|
||||
*
|
||||
* This does not check for more than that. In particular, it does not verify
|
||||
* that the coordinates correspond to a point on the curve (see IsFullyValid()
|
||||
* for that instead).
|
||||
*
|
||||
* Note that this is consensus critical as CheckECDSASignature() calls it!
|
||||
*/
|
||||
bool IsValid() const
|
||||
|
|
Loading…
Add table
Reference in a new issue