Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
change "internal"  to "public" to make the function could call by user
  • Loading branch information
Yumingyuan authored Oct 23, 2023
1 parent 90895ca commit 6b3c3d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 37_Signature/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ tags:
* 以及`EIP191`:https://eips.ethereum.org/EIPS/eip-191`
* 添加"\x19Ethereum Signed Message:\n32"字段,防止签名的是可执行交易。
*/
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
function toEthSignedMessageHash(bytes32 hash) public pure returns (bytes32) {
// 哈希的长度为32
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
}
Expand Down

0 comments on commit 6b3c3d0

Please sign in to comment.