diff options
Diffstat (limited to 'node/node.hpp')
| -rw-r--r-- | node/node.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/node/node.hpp b/node/node.hpp index 9e256c7..6587556 100644 --- a/node/node.hpp +++ b/node/node.hpp @@ -6,6 +6,7 @@ #include "sender.hpp" #include "api.h" +#include "cmix.h" #include "cmix.pb.h" @@ -50,7 +51,7 @@ class Node }; boost::asio::io_service io_service; - std::shared_ptr<boost::asio::ssl::context> ctx; + std::shared_ptr<boost::asio::ssl::context> ssl_ctx; Server server; typedef std::list<SSLReceiver> Purgatory; @@ -66,9 +67,7 @@ class Node SSLReceiver prev_node; SSLSender next_node; - Api api; - KeyPair keypair; - void* network_key; + CMixContext cmix_ctx; std::vector<MixData> precomputation_data; @@ -83,6 +82,7 @@ class Node void handle_node_initialization(cmix_proto::Initialization const& init); void handle_node_secretkey(cmix_proto::SecretKey const& secret); void handle_node_prepre(cmix_proto::PrePre const& prepre); + void handle_node_premix(cmix_proto::PreMix const& premix); void handle_node_message(cmix_proto::CMixMessage message); void handle_client_keyexchange(ClientConnections::key_type handle, cmix_proto::KeyExchange ke); |
