Restoring the browser replica replays every persisted event once, in canonical causal order (causal depth, then event ID), through the same signature, authorization, and BeeKEM validation as network ingest. The store maintains each event's causal depth and message frontier and each group's replay order, heads, authorization state, and message references incrementally, so restore, message frontiers, and state queries are linear in the history they describe.
- ProtocolStore validates an event against the store, applies it to the BeeKEM verifier atomically, and commits without cloning the store.
- BeeKEM operations are verified once with the strict Ed25519 check, which implies upstream Signed::try_verify over the same key and bytes.
- conversationRevision exposes an opaque per-conversation revision that changes whenever that conversation's visible history changes.
- verifyEventSignatures strictly verifies persisted event encodings without touching storage, and openPersistentConversationReplica accepts an optional verifier so large histories verify signatures concurrently in workers. The restore verifies every event a verifier does not confirm.
- One IndexedDB connection serves each database, restore reads its history in one transaction, and connections close on versionchange.
- Signature, hashing, DRISL, bincode, BeeKEM, and AEAD crates compile at opt-level 3 in the size-optimized wasm-release profile.
See ADR 0053.