This class provides key pair functionality for Ed25519 curve: generating key pairs, encoding key pairs, signing and verifying.

Hierarchy

Constructors

Properties

extendedSecretKey: string
publicKey: PublicKey
secretKey: string

Methods

  • Returns a string representation of the key pair in the format 'ed25519:[extendedSecretKey]'.

    Returns string

    The string representation of the key pair.

  • Verifies the signature of a message using the key pair's public key.

    Parameters

    • message: Uint8Array

      The message to be verified.

    • signature: Uint8Array

      The signature to be verified.

    Returns boolean

    true if the signature is valid, otherwise false.

Generated using TypeDoc