This commit is contained in:
Jazz Turner-Baggs 2026-04-23 23:28:47 -07:00
parent 246ab8dcf9
commit def297f132
No known key found for this signature in database
2 changed files with 2 additions and 7 deletions

View File

@ -2,12 +2,13 @@ use std::cell::{Ref, RefCell};
use std::rc::Rc;
use blake2::{Blake2b, Digest, digest::consts::U6};
use chat_proto::logoschat::encryption::{EncryptedPayload, Plaintext, encrypted_payload};
use crypto::Ed25519VerifyingKey;
use openmls::prelude::tls_codec::Deserialize;
use openmls::prelude::*;
use openmls_libcrux_crypto::Provider as LibcruxProvider;
use openmls_traits::signatures::Signer as OpenMlsSigner;
use storage::{ChatStore, ConversationKind};
use crate::{
DeliveryService, RegistrationService,
@ -15,13 +16,10 @@ use crate::{
ctx::ClientCtx,
types::{AddressedEncryptedPayload, ContentData},
};
use chat_proto::logoschat::encryption::{EncryptedPayload, Plaintext, encrypted_payload};
use storage::{ChatStore, ConversationKind};
pub trait IdentityProvider: OpenMlsSigner {
fn friendly_name(&self) -> String;
fn public_key(&self) -> Ed25519VerifyingKey;
// fn installation_key() -> u8;
}
pub trait MlsInitializer {
@ -30,7 +28,6 @@ pub trait MlsInitializer {
ctx: &mut ClientCtx<DS, RS, CS>,
account_id: &str,
welcome: &MlsMessageOut,
// ratchet_tree: RatchetTree, // Embedded
) -> Result<(), ChatError>;
}

View File

@ -24,9 +24,7 @@ use crate::ctx::ClientCtx;
use crate::utils::{blake2b_hex, hash_size};
static ACCOUNT_COUNTER: AtomicUsize = AtomicUsize::new(0);
const ACCOUNT_NAMES: &[&str] = &["Saro", "Raya", "Pax"];
#[derive(Clone)]
pub struct LogosAccount {
id: String,