From cac38b39b6fe7c06b74acce2fa7e73cb05287a5f Mon Sep 17 00:00:00 2001 From: Nathan Hourt Date: Sun, 14 Apr 2019 15:45:03 -0500 Subject: [PATCH] Add missing serialization for sha1 --- include/fc/crypto/sha1.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 );