Verifier

Git Source

Inherits: IVerifier

Functions

hashOf

Fetch message hash.

function hashOf(uint256 chainId, address channel, uint256 msgIndex) public view virtual returns (bytes32);

Parameters

NameTypeDescription
chainIduint256The source chain id.
channeladdressThe message channel.
msgIndexuint256The Message index.

Returns

NameTypeDescription
<none>bytes32Message 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

NameTypeDescription
messageMessageThe message info.
<none>bytes

Returns

NameTypeDescription
<none>boolResult of the message verify.