From b615522217afbcfe49585d172db6b219b795b109 Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Sat, 31 Aug 2013 13:56:59 -0400 Subject: [PATCH] add typedefs for forward compat --- include/fc/crypto/sha256.hpp | 2 ++ include/fc/crypto/sha512.hpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/fc/crypto/sha256.hpp b/include/fc/crypto/sha256.hpp index 85a9868..3343236 100644 --- a/include/fc/crypto/sha256.hpp +++ b/include/fc/crypto/sha256.hpp @@ -65,6 +65,8 @@ class sha256 uint64_t _hash[4]; }; + typedef sha256 uint256; + class variant; void to_variant( const sha256& bi, variant& v ); void from_variant( const variant& v, sha256& bi ); diff --git a/include/fc/crypto/sha512.hpp b/include/fc/crypto/sha512.hpp index f926846..fe24a1b 100644 --- a/include/fc/crypto/sha512.hpp +++ b/include/fc/crypto/sha512.hpp @@ -65,6 +65,8 @@ class sha512 uint64_t _hash[8]; }; + typedef fc::sha512 uint512; + class variant; void to_variant( const sha512& bi, variant& v ); void from_variant( const variant& v, sha512& bi );