Function generateSignature

  • Generate a signature for a transaction

    Method:

     s = sign(sha256(sha256(transactionHex)_keygen(sha256(sha256(transactionHex)_privateKey)).publicKey),
    sha256(sha256(transactionHex)_privateKey),
    privateKey)
    p = sha256(sha256(transactionHex)_keygen(sha256(transactionHex_privateKey)).publicKey)

    Parameters

    • messageHex: string

      The data in hexadecimal representation

    • privateKeyHex: string

      The private key for signing in hexadecimal representation

    Returns string

    The signature in hexadecimal format