Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ICredibleRegistry

Git Source

Title: ICredibleRegistry

Author: Phylax Systems

Read interface for the on-chain Credible Registry that tracks which blocks were marked credible by authorized credible block builders.

Mirrors the read surface of phylaxsystems/credible-registry so consumers such as {CredibleBlockGuard} are drop-in compatible with the deployed registry. The registry records block credibility by block number; it does not expose timestamps.

Functions

isCredibleBlock

Returns whether the given block number was marked credible by a whitelisted builder.

function isCredibleBlock(uint256 blockNumber) external view returns (bool);

Parameters

NameTypeDescription
blockNumberuint256The block number to query.

Returns

NameTypeDescription
<none>boolTrue if blockNumber was marked credible, false otherwise.

lastCredibleBlock

Returns the most recent block number that was marked credible.

Returns 0 if no block has ever been marked credible.

function lastCredibleBlock() external view returns (uint256);

Returns

NameTypeDescription
<none>uint256The highest block number marked credible so far.