An in-memory signer based on tweetnacl. We've included this for development.

Implements

Constructors

Properties

Methods

Constructors

Properties

key: SignKeyPair

Methods

  • Signs the given message

    Parameters

    • message: Uint8Array

      Bytes to sign

    Returns Promise<Uint8Array>

    Signed message

  • Generate a keypair from a random seed

    Parameters

    • note: string

      Set to 'this key is not important' to acknowledge the risks

    Returns NaclSigner

    Instance of NaclSigner

  • Instanciate from a given secret

    Parameters

    • secret: Uint8Array

      64 bytes ed25519 secret (h) that will be used to sign messages

    • note: string

      Set to 'this key is not important' to acknowledge the risks

    Returns NaclSigner

    Instance of NaclSigner

  • Instanciate from a given seed

    Parameters

    • seed: Uint8Array

      32 bytes ed25519 seed (k) that will deterministically generate a private key

    • note: string

      Set to 'this key is not important' to acknowledge the risks

    Returns NaclSigner

    Instance of NaclSigner