Available on crate feature
unstable only.Expand description
Light-client helpers for verifying state against a trusted validator committee.
This module composes the pieces that the rest of the crate provides into a small end-to-end verifier:
EpochCachestores the currently-trusted validator committee and remembers each completed epoch as a closed checkpoint range.- The committee ratchet driver (in a follow-up commit) advances the cache forward by fetching and BLS-verifying each epoch’s last checkpoint summary.
- The high-level
LightClient(in a follow-up commit) ties together the alphaProofService(seecrate::proto::sui::rpc::v2alpha), the ratchet, and the OCS proof verifier insui_sdk_types::proofto authenticateObjectReferences against the network’s validator committee end-to-end.
The whole module is gated on the crate’s unstable feature.
Re-exports§
pub use events::AuthenticatedEvent;
Modules§
- events
- Authenticated event stream verification.
Structs§
- Epoch
Cache - A cache of validator committees indexed by epoch.
- Light
Client - A light client that authenticates state against a trusted validator committee.
- Ratchet
Config - Configuration for the committee ratchet driver.
Enums§
- Checkpoint
Object Proof - The authenticated outcome of
LightClient::prove_object_at_checkpoint. - Light
Client Error - Errors returned by the
crate::light_clientAPIs.
Functions§
- ratchet_
to_ checkpoint - Advance
cacheforward so that it coverstarget_seq, with the defaultRatchetConfigand no archive endpoint. - ratchet_
to_ checkpoint_ with_ config - Advance
cacheforward so that it coverstarget_seq.