Appearance
Solidity API
ECDSA
derived from https://github.com/OpenZeppelin/openzeppelin-contracts (MIT license)
ECDSA__InvalidS
solidity
error ECDSA__InvalidS()ECDSA__InvalidSignature
solidity
error ECDSA__InvalidSignature()ECDSA__InvalidSignatureLength
solidity
error ECDSA__InvalidSignatureLength()ECDSA__InvalidV
solidity
error ECDSA__InvalidV()recover
solidity
function recover(bytes32 hash, bytes signature) internal pure returns (address)recover signer of hashed message from signature
Parameters
| Name | Type | Description |
|---|---|---|
| hash | bytes32 | hashed data payload |
| signature | bytes | signed data payload |
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | address | recovered message signer |
recover
solidity
function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address)recover signer of hashed message from signature v, r, and s values
Parameters
| Name | Type | Description |
|---|---|---|
| hash | bytes32 | hashed data payload |
| v | uint8 | signature "v" value |
| r | bytes32 | signature "r" value |
| s | bytes32 | signature "s" value |
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | address | recovered message signer |
toEthSignedMessageHash
solidity
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32)generate an "Ethereum Signed Message" in the format returned by the eth_sign JSON-RPC method
Parameters
| Name | Type | Description |
|---|---|---|
| hash | bytes32 | hashed data payload |
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | bytes32 | signed message hash |