2026-03-30 14:15:15 +08:00

14 lines
482 B
Rust

//! Storage module for persisting ratchet state.
//!
//! This module provides session management for the double ratchet state,
//! built on top of the `RatchetStore` trait from the `storage` crate.
mod errors;
mod session;
mod types;
pub use errors::SessionError;
pub use session::RatchetSession;
pub use storage::{RatchetStateRecord, RatchetStore, SkippedKeyRecord, StorageConfig, StorageError};
pub use types::{restore_ratchet_state, to_ratchet_record, to_skipped_key_records};