aboutsummaryrefslogtreecommitdiff
path: root/node/node.hpp
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-11-28 15:48:59 +0100
committerDennis Brentjes <d.brentjes@gmail.com>2016-11-28 15:48:59 +0100
commita4a912873058e50060561c21e965b4fec1d9b08b (patch)
tree564432cf3f760483a9acfa64f109f5f42be469c1 /node/node.hpp
parentb8d2fe28870d1f54aad1fd9fce04e57caa85ba0b (diff)
downloadcmix-a4a912873058e50060561c21e965b4fec1d9b08b.tar.gz
cmix-a4a912873058e50060561c21e965b4fec1d9b08b.tar.bz2
cmix-a4a912873058e50060561c21e965b4fec1d9b08b.zip
Cleans up and documents the whole cmix protocol.
Diffstat (limited to 'node/node.hpp')
-rw-r--r--node/node.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/node/node.hpp b/node/node.hpp
index 5365c9f..a058916 100644
--- a/node/node.hpp
+++ b/node/node.hpp
@@ -22,6 +22,12 @@
*/
#ifndef NDEBUG
+/*!
+ * \brief to_string Debug function that turns a groupelement to a string.
+ * \param el element to convert.
+ * \param ctx The context to use.
+ * \return The string containing the binary data of the array representation of the groupelement
+ */
inline std::string to_string(GroupElement el, CMixContext const& ctx) {
std::string ret;
ret.resize(get_group_element_array_size(&ctx));