Function verifySignature

  • Verify a signature for given message

    • Method:
    * h1 = sha256(sha256(transactionHex)_keygen(sha256(transactionHex_privateKey)).publicKey)
    ==
    sha256(sha256(transactionHex)_verify(v, h1, publickey)) = h2

    Parameters

    • signature: string

      The signature to be verified

    • messageHex: string

      The message data in hexadecimal representation

    • publicKeyHex: string

      The public key

    Returns boolean

    true, if signature is valid, otherwise false