mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-02-10 00:43:09 +00:00
Fix broken references
This commit is contained in:
parent
7c580b5896
commit
4a3a9b5933
@ -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};
|
||||
|
||||
@ -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)]
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user