Update links to the eth_sign JSON-RPC method in MessageHashUtils (#5407)

pull/5409/head
Emre Tepe 1 month ago committed by GitHub
parent c3b3ae7e82
commit dd04dfe75d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      contracts/utils/cryptography/MessageHashUtils.sol

@ -19,7 +19,7 @@ library MessageHashUtils {
* *
* The digest is calculated by prefixing a bytes32 `messageHash` with * The digest is calculated by prefixing a bytes32 `messageHash` with
* `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the * `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the
* hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method. * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.
* *
* NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with
* keccak256, although any bytes32 value can be safely used because the final digest will * keccak256, although any bytes32 value can be safely used because the final digest will
@ -41,7 +41,7 @@ library MessageHashUtils {
* *
* The digest is calculated by prefixing an arbitrary `message` with * The digest is calculated by prefixing an arbitrary `message` with
* `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the * `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the
* hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method. * hash signed when using the https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sign[`eth_sign`] JSON-RPC method.
* *
* See {ECDSA-recover}. * See {ECDSA-recover}.
*/ */

Loading…
Cancel
Save