Fix broken references

This commit is contained in:
Jazz Turner-Baggs 2026-01-30 14:56:44 -08:00
parent 7c580b5896
commit 4a3a9b5933
No known key found for this signature in database
3 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,7 @@
mod session;
mod sqlite;
mod types;
pub use session::{RatchetSession, SessionError};
pub use sqlite::{SqliteStorage, StorageConfig};
pub use types::{RatchetStateRecord, StorageError};

View File

@ -1,7 +1,7 @@
use rusqlite::{Connection, params};
use super::{RatchetStateRecord, SkippedKey, StorageError};
use crate::{hkdf::HkdfInfo, state::RatchetState};
use super::{RatchetStateRecord, StorageError};
use crate::{hkdf::HkdfInfo, state::RatchetState, state::SkippedKey};
/// Configuration for SQLite storage.
#[derive(Debug, Clone)]

View File

@ -42,7 +42,7 @@ impl<D: HkdfInfo> From<&RatchetState<D>> for RatchetStateRecord {
root_key: state.root_key,
sending_chain: state.sending_chain,
receiving_chain: state.receiving_chain,
dh_self_secret: state.dh_self.secret_bytes(),
dh_self_secret: *state.dh_self.secret_bytes(),
dh_remote: state.dh_remote.map(|pk| pk.to_bytes()),
msg_send: state.msg_send,
msg_recv: state.msg_recv,