Feature/mix ed25519 identity (#388)
* Introduced identity keypair to mixnode * Updated upgrade 0.9.0 mix upgrade instructions * Printing failed upgrade notice when it failed * Moved printing upgrade start notice to beginning of function
This commit is contained in:
committed by
GitHub
parent
c8bf454ccc
commit
2f7b3eec08
@@ -16,7 +16,7 @@ use crate::config::Config;
|
||||
use crate::node::listener::connection_handler::packet_processing::PacketProcessor;
|
||||
use crate::node::listener::connection_handler::ConnectionHandler;
|
||||
use crate::node::listener::Listener;
|
||||
use crypto::asymmetric::encryption;
|
||||
use crypto::asymmetric::{encryption, identity};
|
||||
use directory_client::DirectoryClient;
|
||||
use log::*;
|
||||
use mixnet_client::forwarder::{MixForwardingSender, PacketForwarder};
|
||||
@@ -30,13 +30,20 @@ mod presence;
|
||||
// the MixNode will live for whole duration of this program
|
||||
pub struct MixNode {
|
||||
config: Config,
|
||||
#[allow(dead_code)]
|
||||
identity_keypair: Arc<identity::KeyPair>,
|
||||
sphinx_keypair: Arc<encryption::KeyPair>,
|
||||
}
|
||||
|
||||
impl MixNode {
|
||||
pub fn new(config: Config, sphinx_keypair: encryption::KeyPair) -> Self {
|
||||
pub fn new(
|
||||
config: Config,
|
||||
identity_keypair: identity::KeyPair,
|
||||
sphinx_keypair: encryption::KeyPair,
|
||||
) -> Self {
|
||||
MixNode {
|
||||
config,
|
||||
identity_keypair: Arc::new(identity_keypair),
|
||||
sphinx_keypair: Arc::new(sphinx_keypair),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user