Skip to main content

hashPersonalMessage

Callable

  • hashPersonalMessage(message: Buffer): Buffer

  • Returns the keccak-256 hash of message, prefixed with the header used by the eth_sign RPC call. The output of this function can be fed into ecsign to produce the same signature as the eth_sign call for a given message, or fed to ecrecover along with a signature to recover the public key used to produce the signature.


    Parameters

    • message: Buffer

    Returns Buffer