A Curve25519 secret key.

Methods

  • Returns void

  • Encodes the secret key into a base64 string.

    Returns string

  • Converts the secret key into a raw byte vector.

    Returns Uint8Array

  • Creates a Curve25519SecretKey from a base64-encoded representation of the key.

    Parameters

    • string: string

    Returns Curve25519SecretKey

  • Creates a Curve25519SecretKey from a raw byte slice.

    Parameters

    • slice: Uint8Array

    Returns Curve25519SecretKey