Skip to content

Commit

Permalink
remove local storage
Browse files Browse the repository at this point in the history
  • Loading branch information
seemenkina committed Jul 24, 2024
1 parent bdf0c46 commit e0cc284
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 72 deletions.
1 change: 0 additions & 1 deletion sc_key_store/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// pub mod local_ks;
pub mod sc_ks;

use mls_crypto::openmls_provider::MlsCryptoProvider;
Expand Down
65 changes: 0 additions & 65 deletions sc_key_store/src/local_ks.rs

This file was deleted.

6 changes: 0 additions & 6 deletions src/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ use tokio::sync::broadcast::Receiver;
use ds::ds::*;
use mls_crypto::openmls_provider::*;
use sc_key_store::{sc_ks::ScKeyStorage, *};
// use sc_key_store::local_ks::LocalCache;
// use waku_bindings::*;
//

Expand Down Expand Up @@ -51,8 +50,6 @@ pub struct User<T, P, N> {
pub groups: HashMap<String, Group>,
provider: MlsCryptoProvider,
sc_ks: ScKeyStorage<T, P, N>,
// we don't need local storage as long as we are working with openmls
// local_ks: LocalCache,
// pub(crate) contacts: HashMap<Vec<u8>, WakuPeers>,
}

Expand All @@ -70,12 +67,10 @@ where
) -> Result<Self, UserError> {
let crypto = MlsCryptoProvider::default();
let id = Identity::new(CIPHERSUITE, &crypto, user_wallet_address, NUMBER_OF_KP)?;
// let sign_pk = id.signature_pub_key();
let mut user = User {
groups: HashMap::new(),
identity: id,
provider: crypto,
// local_ks: LocalCache::empty_key_store(user_wallet_address, sign_pk.as_slice()),
sc_ks: ScKeyStorage::new(provider, sc_storage_address),
// contacts: HashMap::new(),
};
Expand Down Expand Up @@ -125,7 +120,6 @@ where
.borrow_mut()
.add_user(ukp.clone(), self.identity.signature_pub_key().as_slice())
.await?;
// self.local_ks.fill_empty_key_store(ukp)?;
Ok(())
}

Expand Down

0 comments on commit e0cc284

Please sign in to comment.