StaticfromRestore a SchnorrPublicKey from a fixed-size array of bytes.
StaticfromRestore a SchnorrPublicKey from a reference to an array of bytes. Validates the length.
StaticfromCreate a SchnorrPublicKey from raw bytes (legacy alias).
StaticfromGet a reference to the fixed-size array of bytes.
Get the raw public key bytes (copy).
Get hex string representation.
Get hex string representation (alias for hex()).
Get base64 representation.
Verify a Schnorr signature (BIP-340).
The 64-byte signature to verify
The message that was signed
true if the signature is valid
Get string representation.
A base interface for all elliptic curve keys.
This interface defines common functionality for all elliptic curve keys, including both private and public keys. It provides methods for key construction from binary data and hexadecimal strings, as well as conversion to hexadecimal format.
All EC key types have a fixed size depending on their specific type: