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; }
}

Structs§

LightClientInstance
A LightClient instance.
LightClientState
StakeTableState

Functions§

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