@anzaui/engine - v0.6.0
    Preparing search index...

    Function sign

    • Sign data with an Ed25519 private key.

      Parameters

      • key: Ed25519Key

        The private key (see Ed25519Key).

      • data: string | Uint8Array<ArrayBufferLike>

        The message; strings are UTF-8 encoded.

      Returns string

      128 lowercase hex characters.

      AnzaError CRYPTO for a malformed key.