From f8a881af592ae51d41e9eb2c9797285b69263b48 Mon Sep 17 00:00:00 2001 From: Simon Wicky Date: Mon, 6 Nov 2023 11:06:49 +0100 Subject: [PATCH] use stored ecash keypair for the api --- nym-api/src/network_monitor/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nym-api/src/network_monitor/mod.rs b/nym-api/src/network_monitor/mod.rs index 9817c6823b..6fa87127ae 100644 --- a/nym-api/src/network_monitor/mod.rs +++ b/nym-api/src/network_monitor/mod.rs @@ -93,11 +93,11 @@ impl<'a> NetworkMonitorBuilder<'a> { let identity_keypair = Arc::new(identity::KeyPair::new(&mut rng)); let encryption_keypair = Arc::new(encryption::KeyPair::new(&mut rng)); - let ecash_keypair = generate_keypair_user(&GroupParameters::new().unwrap()); - // let ecash_keypair = nym_pemstore::load_keypair(&KeyPairPath::new( - // self.config.storage_paths.ecash_private_key_path, - // self.config.storage_paths.ecash_public_key_path, - // )); //SW todo : load ecash key + let ecash_keypair = nym_pemstore::load_keypair(&nym_pemstore::KeyPairPath::new( + self.config.storage_paths.ecash_private_key_path.clone(), + self.config.storage_paths.ecash_public_key_path.clone(), + )) + .expect("cannot load ecash keypair"); //SW todo : what to do if it fails here? let ack_key = Arc::new(AckKey::new(&mut rng)); let ecash_parameters = EcashParameters::new().ecash_params().clone();