Add GroupV1

This commit is contained in:
Jazz Turner-Baggs
2026-04-28 08:13:12 -07:00
parent 39bf267564
commit af3ff3c6a2
23 changed files with 1840 additions and 82 deletions
+12 -2
View File
@@ -10,8 +10,8 @@ use std::collections::HashSet;
use crypto::{Identity, PrivateKey};
use rusqlite::{Transaction, params};
use storage::{
ConversationKind, ConversationMeta, ConversationStore, EphemeralKeyStore, IdentityStore,
RatchetStateRecord, RatchetStore, SkippedKeyRecord, StorageError,
ChatStore, ConversationKind, ConversationMeta, ConversationStore, EphemeralKeyStore,
IdentityStore, RatchetStateRecord, RatchetStore, SkippedKeyRecord, StorageError,
};
use zeroize::Zeroize;
@@ -532,6 +532,16 @@ fn blob_to_array<const N: usize>(
.map_err(|_| invalid_blob_length(field, N, actual))
}
// impl GroupMlsStorageV1 for ChatStorage {
// fn save_state(&self, convo_id: &str, state: &[u8]) {
// todo!()
// }
// fn load_state(&self, convo_id: &str) -> Vec<u8> {
// todo!()
// }
// }
#[cfg(test)]
mod tests {
use storage::{