Fix keccak256 typo (#2525)

pull/2528/head
Luiz Hamilton Soares 4 years ago committed by GitHub
parent ee6348a7a0
commit 24660c3e48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/modules/ROOT/pages/utilities.adoc

@ -16,7 +16,7 @@ The data signer can be recovered with xref:api:cryptography.adoc#ECDSA-recover-b
using ECDSA for bytes32;
function _verify(bytes32 data, address account) pure returns (bool) {
return keccack256(data)
return keccak256(data)
.toEthSignedMessageHash()
.recover(signature) == account;
}

Loading…
Cancel
Save