867 B
867 B
Solidity API
ECDSA
Gas optimized ECDSA wrapper.
InvalidSignature
error InvalidSignature()
The signature is invalid.
recoverCalldata
function recoverCalldata(bytes32 hash, bytes signature) internal view returns (address result)
_Recovers the signer's address from a message digest hash
,
and the signature
.
This function does NOT accept EIP-2098 short form signatures.
Use recover(bytes32 hash, bytes32 r, bytes32 vs)
for EIP-2098
short form signatures instead._
toEthSignedMessageHash
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 result)
Returns an Ethereum Signed Message, created from a hash
.
This produces a hash corresponding to the one signed with the
eth_sign
JSON-RPC method as part of EIP-191.