Skip to main content

signMessageWithPrivateKey

Callable


  • Takes a hash of a message and a private key, signs the message using the SECP256k1 elliptic curve algorithm, and returns the signature components.


    Parameters

    • hash: string

      The hash of the message to be signed, represented as a hexadecimal string.

    • privateKey: Bytes

      The private key used to sign the message, represented as a byte array.

    Returns SignResult

    • The signature Object containing the message, messageHash, signature r, s, v