mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-05-12 13:09:29 +00:00
tidy
This commit is contained in:
parent
246ab8dcf9
commit
def297f132
@ -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>;
|
||||
}
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user