Documentation
    Preparing search index...

    Function sign

    • ECDSA Sign a message with the given private key.

      Parameters

      • message: Uint8Array

        The message to sign, usually a hash.

      • privateKey: Uint8Array

        The ECDSA private key to use to sign the message.

      Returns Promise<Uint8Array<ArrayBufferLike>>

      The signature and the recovery id concatenated.