Fix docs function for ECDSA (#2819)
This commit is contained in:
committed by
GitHub
parent
6618f9f184
commit
832ff3b9f9
@ -15,7 +15,7 @@ The data signer can be recovered with xref:api:cryptography.adoc#ECDSA-recover-b
|
|||||||
----
|
----
|
||||||
using ECDSA for bytes32;
|
using ECDSA for bytes32;
|
||||||
|
|
||||||
function _verify(bytes32 data, address account) pure returns (bool) {
|
function _verify(bytes32 data, bytes memory signature, address account) internal pure returns (bool) {
|
||||||
return keccak256(data)
|
return keccak256(data)
|
||||||
.toEthSignedMessageHash()
|
.toEthSignedMessageHash()
|
||||||
.recover(signature) == account;
|
.recover(signature) == account;
|
||||||
|
|||||||
Reference in New Issue
Block a user