diff --git a/include/fc/crypto/sha1.hpp b/include/fc/crypto/sha1.hpp index 01c6ca8..ea0d69e 100644 --- a/include/fc/crypto/sha1.hpp +++ b/include/fc/crypto/sha1.hpp @@ -67,6 +67,20 @@ class sha1 uint32_t _hash[5]; }; +namespace raw { + + template + inline void pack( T& ds, const sha1& ep, uint32_t _max_depth ) { + ds << ep; + } + + template + inline void unpack( T& ds, sha1& ep, uint32_t _max_depth ) { + ds >> ep; + } + +} + class variant; void to_variant( const sha1& bi, variant& v, uint32_t max_depth ); void from_variant( const variant& v, sha1& bi, uint32_t max_depth );