SignatureVerifier
Git Source (opens in a new tab)
Functions
makeSignatureHash
Generates a hash for signing/verifying.
function makeSignatureHash(address target, uint64 expires, bytes memory request, bytes memory result)
internal
pure
returns (bytes32);
Parameters
Name | Type | Description |
---|---|---|
target | address | |
expires | uint64 | |
request | bytes | |
result | bytes |
verify
Verifies a signed message returned from a callback.
function verify(bytes calldata request, bytes calldata response) internal view returns (address, bytes memory);
Parameters
Name | Type | Description |
---|---|---|
request | bytes | |
response | bytes |
Returns
Name | Type | Description |
---|---|---|
<none> | address | signer: The address that signed this message. |
<none> | bytes | result: The result decoded from response . |