Zeth - Zerocash on Ethereum  0.8
Reference implementation of the Zeth protocol by Clearmatics
Public Member Functions | List of all members
libzeth::hash_ostream< HashT > Class Template Reference

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)
 

Detailed Description

template<typename HashT>
class libzeth::hash_ostream< HashT >

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.

Constructor & Destructor Documentation

◆ hash_ostream()

template<typename HashT >
libzeth::hash_ostream< HashT >::hash_ostream ( )

Member Function Documentation

◆ get_hash()

template<typename HashT >
void libzeth::hash_ostream< HashT >::get_hash ( typename HashT::OutBuffer  out_hash)

The documentation for this class was generated from the following file: