Module LightClient

Source
Expand description

Module containing a contract’s types and functions.

library LightClient {
    struct LightClientState { uint64 viewNum; uint64 blockHeight; BN254.ScalarField blockCommRoot; }
    struct StakeTableState { uint256 threshold; BN254.ScalarField blsKeyComm; BN254.ScalarField schnorrKeyComm; BN254.ScalarField amountComm; }
    struct StateHistoryCommitment { uint64 l1BlockHeight; uint64 l1BlockTimestamp; uint64 hotShotBlockHeight; BN254.ScalarField hotShotBlockCommRoot; }
}

Structs§

LightClientInstance
A LightClient instance.
LightClientState
StakeTableState
StateHistoryCommitment

Functions§

new
Creates a new wrapper around an on-chain LightClient contract instance.