Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
Go to the documentation of this file.
5 #ifndef __ZETH_CORE_GROUP_ELEMENT_UTILS_HPP__
6 #define __ZETH_CORE_GROUP_ELEMENT_UTILS_HPP__
14 template<
typename GroupT>
18 template<
typename GroupT>
22 template<
typename GroupT>
26 template<
typename GroupT>
32 template<
typename GroupT>
37 template<
typename GroupT>
42 template<
typename GroupCollectionT>
44 const GroupCollectionT &points, std::ostream &out_s);
48 template<
typename GroupCollectionT>
55 #endif // __ZETH_CORE_GROUP_ELEMENT_UTILS_HPP__
void group_element_write_json(const GroupT &point, std::ostream &out_s)
Write a group element as a json string to a stream.
std::string group_element_to_json(const GroupT &point)
Convert a group element to a json string (array of hexadecimal strings).
void group_element_read_json(GroupT &point, std::istream &in_s)
Read a JSON string from a stream and convert it into a group element.
void group_elements_write_bytes(const GroupCollectionT &points, std::ostream &out_s)
void group_element_read_bytes(GroupT &point, std::istream &in_s)
GroupT group_element_from_json(const std::string &json)
Convert a JSON string into a group element.
void group_elements_read_bytes(GroupCollectionT &points, std::istream &in_s)
void group_element_write_bytes(const GroupT &point, std::ostream &out_s)