Zeth - Zerocash on Ethereum
0.8
Reference implementation of the Zeth protocol by Clearmatics
|
Simple ostream which hashes any incoming data and discards it. More...
#include <hash_stream.hpp>
Public Member Functions | |
hash_ostream () | |
void | get_hash (typename HashT::OutBuffer out_hash) |
Simple ostream which hashes any incoming data and discards it.
HashT is a class with interface
class hash { public: typedef OutBuffer; hash(); void update(const void *, size_t); void final(OutBuffer out_hash); };
OutBuffer should be some array type such as size_t[N], so that it can be stack-allocated, and passed as a pointer to the get_hash methods below.
Definition at line 30 of file hash_stream.hpp.
libzeth::hash_ostream< HashT >::hash_ostream | ( | ) |
void libzeth::hash_ostream< HashT >::get_hash | ( | typename HashT::OutBuffer | out_hash | ) |