Protected
constructorPrivate
bytesPrivate
prefixPrivate
checkChecks the message signature with the public key.
The data signed by the signature.
The signature to verify.
A boolean indicating whether the signature is valid.
This function very a byte-encoded message. The message is first hashed and then verified. Do not pass a digest to this function as it will be hashed twice.
Static
fromStatic
fromInitializes a new public key object from a private key.
The private key to derive the public key from.
A new public key instance.
Static
fromStatic
Protected
init
A class representing a public key.
Remarks
The public key is an essential component of asymmetric cryptography. It is intrinsically linked to the private key.