Verifier
Inherits: IVerifier
Functions
hashOf
Fetch message hash.
function hashOf(uint256 chainId, address channel, uint256 msgIndex) public view virtual returns (bytes32);
Parameters
Name | Type | Description |
---|---|---|
chainId | uint256 | The source chain id. |
channel | address | The message channel. |
msgIndex | uint256 | The Message index. |
Returns
Name | Type | Description |
---|---|---|
<none> | bytes32 | Message hash in source chain. |
verifyMessageProof
Verify message proof
Message proof provided by relayer. Oracle should provide message root of source chain, and verify the merkle proof of the message hash.
function verifyMessageProof(Message calldata message, bytes calldata) external view returns (bool);
Parameters
Name | Type | Description |
---|---|---|
message | Message | The message info. |
<none> | bytes |
Returns
Name | Type | Description |
---|---|---|
<none> | bool | Result of the message verify. |