IMerkleRootStorage
#
Interface for accessing State Connector Merkle roots. The Merkle roots are necessary to validate data retrieved from attestation providers.
Functions#
merkleRoot
#
function merkleRoot(
uint256 _roundId
) external view returns (
bytes32);
Retrieves the Merkle root for a specified round. Requests are valid only within the range of TOTAL_STORED_PROOFS.
Parameters | Type | Description |
---|---|---|
_roundId |
uint256 |
The ID of the round for which the Merkle root is being requested. It must be within the last 6720 rounds, which equals one week's worth of proofs, given the current 90-second BUFFER_WINDOW. |
Returns | Type | Description |
---|---|---|
[0] | bytes32 |
The Merkle root for the specified round. If the round ID is out of bounds, it reverts. |