Skip to main content

Module defaults

Module defaults 

Source
Expand description

Reference implementations of the library’s plug-in traits — in-memory MLS / peer-score storage, default consensus + per-conversation plug-in bundles, and a reference key-package provider. Production integrators swap one or more for their own implementations. Reference implementations of the library’s plug-in traits.

Gathered in one place so the trait surface (core, mls_crypto, app) is honestly the library’s protocol contract and these are the batteries that ship alongside it. Production integrators normally swap one or more for their own implementations — durable storage, a different identity / consensus signer, custom scoring — and pull in only the defaults they actually want.

Contents:

Structs§

DefaultConsensusPlugin
In-memory consensus plug-in suitable for tests and simple deployments. The ConsensusPlugin trait itself is defined in crate::core.
DefaultConversationPluginsFactory
Default per-conversation plug-in bundle: in-memory MLS storage shared across per-conversation services; reference scoring + steward implementations.
InMemoryPeerScoreStorage
HashMap-backed PeerScoreStorage for tests and simple deployments. Production integrators supply a durable backend.
MemoryDeMlsStorage
In-memory MLS keystore for development and testing.

Type Aliases§

DefaultMlsService
MLS service type for the default-bundle User. Uses in-memory storage shared across every per-conversation service via Arc (the Arc<S>: DeMlsStorage blanket impl makes this work).
DefaultPeerScoring
Peer-scoring plug-in type for the default-bundle User: the reference PeerScoringService over in-memory storage. The per-event score deltas are supplied at construction (see default_score_deltas).
DefaultStewardList
Steward-list plug-in type for the default-bundle User: the reference DeterministicStewardList.