mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-05-16 06:59:29 +00:00
remove warnings
This commit is contained in:
parent
96044053bf
commit
c7afc44f75
@ -1,4 +1,4 @@
|
|||||||
use crypto::{Ed25519SigningKey, Ed25519VerifyingKey};
|
use crypto::Ed25519SigningKey;
|
||||||
use openmls::prelude::SignatureScheme;
|
use openmls::prelude::SignatureScheme;
|
||||||
use openmls_traits::signatures::Signer;
|
use openmls_traits::signatures::Signer;
|
||||||
|
|
||||||
@ -9,7 +9,6 @@ use crate::types::AccountId;
|
|||||||
pub struct LogosAccount {
|
pub struct LogosAccount {
|
||||||
id: AccountId,
|
id: AccountId,
|
||||||
signing_key: Ed25519SigningKey,
|
signing_key: Ed25519SigningKey,
|
||||||
verifying_key: Ed25519VerifyingKey,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl LogosAccount {
|
impl LogosAccount {
|
||||||
@ -18,11 +17,9 @@ impl LogosAccount {
|
|||||||
/// TODO: (P1) Remove once implementation is ready.
|
/// TODO: (P1) Remove once implementation is ready.
|
||||||
pub fn new_test(explicit_id: impl Into<String>) -> Self {
|
pub fn new_test(explicit_id: impl Into<String>) -> Self {
|
||||||
let signing_key = Ed25519SigningKey::generate();
|
let signing_key = Ed25519SigningKey::generate();
|
||||||
let verifying_key = signing_key.verifying_key();
|
|
||||||
Self {
|
Self {
|
||||||
id: AccountId::new(explicit_id.into()),
|
id: AccountId::new(explicit_id.into()),
|
||||||
signing_key,
|
signing_key,
|
||||||
verifying_key,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -8,6 +8,7 @@ mod proto;
|
|||||||
mod types;
|
mod types;
|
||||||
mod utils;
|
mod utils;
|
||||||
|
|
||||||
|
pub use account::LogosAccount;
|
||||||
pub use context::{Context, ConversationIdOwned, Introduction};
|
pub use context::{Context, ConversationIdOwned, Introduction};
|
||||||
pub use errors::ChatError;
|
pub use errors::ChatError;
|
||||||
pub use sqlite::ChatStorage;
|
pub use sqlite::ChatStorage;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user