Inherits Struct < Value < Object
A public key: a point of the curve other than the point at infinity.
Decodes a SEC 1 point (uncompressed 0x04 || X || Y, or compressed 0x02/0x03 || X). Raises InvalidPublicKey for anything that is not a point of P-256 or is the point at infinity.
InvalidPublicKey
Returns 0x02 || X or 0x03 || X.
Returns 0x04 || X || Y.
Returns whether signature is an ECDSA signature by this key of message hashed with SHA256.
Returns whether signature is an ECDSA signature by this key of a message whose hash is digest (any hash; FIPS 186-5 ยง6.4.2 takes its leftmost bits).