Ethereum  PoC-8
The C++ Implementation of Ethereum
FixedHash.h File Reference
#include <array>
#include <cstdint>
#include <algorithm>
#include <random>
#include <boost/functional/hash.hpp>
#include "CommonData.h"

Go to the source code of this file.

Classes

struct  dev::StaticLog2< N >
 Compile-time calculation of Log2 of constant values. More...
 
struct  dev::StaticLog2< 1 >
 
class  dev::FixedHash< N >
 
struct  dev::FixedHash< N >::hash
 
class  dev::SecureFixedHash< T >
 
struct  std::hash< dev::h64 >
 Forward std::hash<dev::FixedHash> to dev::FixedHash::hash. More...
 
struct  std::hash< dev::h128 >
 
struct  std::hash< dev::h160 >
 
struct  std::hash< dev::h256 >
 
struct  std::hash< dev::h512 >
 

Namespaces

 dev
 
 std
 

Typedefs

using dev::h2048 = FixedHash< 256 >
 
using dev::h1024 = FixedHash< 128 >
 
using dev::h520 = FixedHash< 65 >
 
using dev::h512 = FixedHash< 64 >
 
using dev::h256 = FixedHash< 32 >
 
using dev::h160 = FixedHash< 20 >
 
using dev::h128 = FixedHash< 16 >
 
using dev::h64 = FixedHash< 8 >
 
using dev::h512s = std::vector< h512 >
 
using dev::h256s = std::vector< h256 >
 
using dev::h160s = std::vector< h160 >
 
using dev::h256Set = std::set< h256 >
 
using dev::h160Set = std::set< h160 >
 
using dev::h256Hash = std::unordered_set< h256 >
 
using dev::h160Hash = std::unordered_set< h160 >
 

Functions

template<unsigned N>
std::ostream & dev::operator<< (std::ostream &_out, FixedHash< N > const &_h)
 Stream I/O for the FixedHash class. More...
 
template<unsigned N>
std::istream & dev::operator>> (std::istream &_in, FixedHash< N > &o_h)
 
template<unsigned N>
std::ostream & dev::operator<< (std::ostream &_out, SecureFixedHash< N > const &_h)
 Stream I/O for the SecureFixedHash class. More...
 
h160 dev::right160 (h256 const &_t)
 Convert the given value into h160 (160-bit unsigned integer) using the right 20 bytes. More...
 
h128 dev::fromUUID (std::string const &_uuid)
 
std::string dev::toUUID (h128 const &_uuid)
 
std::string dev::toString (h256s const &_bs)
 

Detailed Description

Author
Gav Wood i@gav.nosp@m.wood.nosp@m..com
Date
2014

The FixedHash fixed-size "hash" container type.

Definition in file FixedHash.h.