Documents for @litert/signatures
    Preparing search index...

    Function sign

    • Sign the data with the given key.

      Parameters

      • key: string | Buffer<ArrayBufferLike> | KeyObject

        The key to sign the data with, can be a string, Buffer, or KeyObject.

      • data: string | Buffer<ArrayBufferLike>

        The data to be signed, can be a string or Buffer.

      • Optionalopts: IEddsaOptions

        Optional options for signing, such as key passphrase.

      Returns Buffer

      The signature of the data as a Buffer.