aboutsummaryrefslogtreecommitdiff
path: root/node/node.hpp
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-12-14 15:51:43 +0100
committerDennis Brentjes <d.brentjes@gmail.com>2016-12-15 09:45:30 +0100
commitb42cb376c32ef4182d3e7f405f50dde2641e85b0 (patch)
treeb16ce5f2e6f8e6bd7cfb942fbca3d6a6e3f43bb2 /node/node.hpp
parentad74ce8412eea2c554b048e379b9ca145d9694c6 (diff)
downloadcmix-b42cb376c32ef4182d3e7f405f50dde2641e85b0.tar.gz
cmix-b42cb376c32ef4182d3e7f405f50dde2641e85b0.tar.bz2
cmix-b42cb376c32ef4182d3e7f405f50dde2641e85b0.zip
Reworks the protocol to be tag attack resistant.
Diffstat (limited to 'node/node.hpp')
-rw-r--r--node/node.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/node/node.hpp b/node/node.hpp
index 1aad503..d9e16d4 100644
--- a/node/node.hpp
+++ b/node/node.hpp
@@ -104,7 +104,7 @@ class Node
CMixContext cmix_ctx;
- std::map<std::string, unsigned int> index_map;
+ std::vector<std::string> participants;
bool shutting_down;
@@ -123,8 +123,10 @@ class Node
void handle_node_prepre(cmix_proto::PrePre const& prepre);
void handle_node_premix(cmix_proto::PreMix const& premix);
void handle_node_prepost(cmix_proto::PrePost const& prepost);
+ void handle_node_commitments(cmix_proto::Commitments const& commitments);
void handle_node_realpre(cmix_proto::RealPre const& realpre);
void handle_node_realmix(cmix_proto::RealMix const& realmix);
+ void handle_node_realpost(cmix_proto::RealPost const& realpost);
void handle_node_message(cmix_proto::CMixMessage message);
void handle_client_keyexchange(ClientConnections::key_type handle, cmix_proto::KeyExchange const& ke);