Skip to main content

Module events

Module events 

Source
Available on crate feature unstable only.
Expand description

Authenticated event stream verification.

AuthenticatedEventsClient drives the v2alpha LedgerService.ListEvents RPC filtered by EventStreamHeadFilter, replays each received event into a local Merkle Mountain Range, and periodically reconciles that MMR against the on-chain EventStreamHead fetched via an OCS inclusion proof. Events are only yielded to the consumer after the reconciliation that covers them succeeds, so every emitted event is cryptographically authenticated end-to-end.

AuthenticatedEvent is the in-memory envelope used both as the decoded form of an EventItem and as the unit of work flowing through the verifier.

Structsยง

AuthenticatedEvent
A single authenticated event paired with the positional metadata a verifier needs to reconstruct its EventCommitment leaf.
AuthenticatedEventsClient
A streaming verifier for a single authenticated event stream.
AuthenticatedEventsConfig
Configuration for super::AuthenticatedEventsClient.