Represents an ED25519 private and public key.

Constructors

Accessors

Methods

Constructors

  • Creates a key pair from a private key.

    Parameters

    Returns KeyPair

Accessors

  • get privateKey(): PrivateKey
  • Gets the private key.

    Returns PrivateKey

    Private key.

  • get publicKey(): PublicKey
  • Gets the public key.

    Returns PublicKey

    Public key.

Methods

  • Signs a message with the private key.

    Parameters

    • message: Uint8Array

      Message to sign.

    Returns Signature

    Message signature.