Construct an instance of key pair given a secret key. It's generally assumed that these are encoded in base58.
Readonly
extendedReadonly
publicReadonly
secretSigns a message using the key pair's secret key.
The message to be signed.
The signature object containing the signature and the public key.
Returns a string representation of the key pair in the format 'ed25519:[extendedSecretKey]'.
The string representation of the key pair.
Verifies the signature of a message using the key pair's public key.
The message to be verified.
The signature to be verified.
true
if the signature is valid, otherwise false
.
Static
fromGenerate a new random keypair.
This class provides key pair functionality for Ed25519 curve: generating key pairs, encoding key pairs, signing and verifying.