From a7cfb274d651e858ab06eff5b28a6f77e0178cf1 Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 16 Jul 2018 05:00:14 -0400 Subject: move header files to include/hotstuff --- src/type.h | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 src/type.h (limited to 'src/type.h') diff --git a/src/type.h b/src/type.h deleted file mode 100644 index 4665979..0000000 --- a/src/type.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef _HOTSTUFF_TYPE_H -#define _HOTSTUFF_TYPE_H - -#include "salticidae/stream.h" -#include "salticidae/type.h" -#include "salticidae/util.h" - -namespace hotstuff { - -using salticidae::uint256_t; -using salticidae::DataStream; -using salticidae::htole; -using salticidae::letoh; -using salticidae::get_hex; -using salticidae::from_hex; -using salticidae::bytearray_t; - -inline std::string get_hex10(const uint256_t &x) { - return get_hex(x).substr(0, 10); -} - -class HotStuffError: public salticidae::SalticidaeError { - public: - template - HotStuffError(Args... args): salticidae::SalticidaeError(args...) {} -}; - -class HotStuffInvalidEntity: public HotStuffError { - public: - template - HotStuffInvalidEntity(Args... args): HotStuffError(args...) {} -}; - -using salticidae::Serializable; - -class Cloneable { - public: - virtual ~Cloneable() = default; - virtual Cloneable *clone() = 0; -}; - -using ReplicaID = uint16_t; - -} - -#endif -- cgit v1.2.3-70-g09d2