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:
crate::defaults::MemoryDeMlsStorage— in-memory MLS keystore.crate::defaults::InMemoryPeerScoreStorage—HashMap-backed peer-score storage.crate::defaults::DefaultConsensusPlugin— in-memory consensus backend overhashgraph_like_consensustypes.crate::defaults::DefaultMlsService,crate::defaults::DefaultPeerScoring,crate::defaults::DefaultStewardList— type aliases for the default-bundle per-conversation plug-ins.crate::defaults::DefaultConversationPluginsFactory—ConversationPluginsFactorywired to the above (covers the identity-boundgenerate_key_packageentry as well).
Structs§
- Default
Consensus Plugin - In-memory consensus plug-in suitable for tests and simple deployments.
The
ConsensusPlugintrait itself is defined incrate::core. - Default
Conversation Plugins Factory - Default per-conversation plug-in bundle: in-memory MLS storage shared across per-conversation services; reference scoring + steward implementations.
- InMemory
Peer Score Storage HashMap-backedPeerScoreStoragefor tests and simple deployments. Production integrators supply a durable backend.- Memory
DeMls Storage - In-memory MLS keystore for development and testing.
Type Aliases§
- Default
MlsService - MLS service type for the default-bundle
User. Uses in-memory storage shared across every per-conversation service viaArc(theArc<S>: DeMlsStorageblanket impl makes this work). - Default
Peer Scoring - Peer-scoring plug-in type for the default-bundle
User: the referencePeerScoringServiceover in-memory storage. The per-event score deltas are supplied at construction (seedefault_score_deltas). - Default
Steward List - Steward-list plug-in type for the default-bundle
User: the referenceDeterministicStewardList.