BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface software
digest.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <fc/io/raw.hpp>
3 #include <fc/reflect/reflect.hpp>
4 #include <fc/crypto/sha256.hpp>
5 
6 namespace fc {
7 
8  template<typename T>
9  fc::sha256 digest( const T& value )
10  {
12  fc::raw::pack( enc, value );
13  return enc.result();
14  }
15 }
void pack(Stream &s, const flat_set< T, A... > &value, uint32_t _max_depth)
Definition: flat.hpp:11
Defines types and macros used to provide reflection.
sha256 result()
Definition: sha256.cpp:59
fc::sha256 digest(const T &value)
Definition: digest.hpp:9
Definition: api.hpp:15