1 #ifndef OC_ISSUER_BIG_INT_HPP
2 #define OC_ISSUER_BIG_INT_HPP
7 #include "tl/expected.hpp"
12 virtual ~
BigInt() =
default;
14 enum class eError : uint8_t { PARSE_ERROR };
15 static tl::expected<BigInt, eError> from_string(
const std::string &str);
17 static BigInt from_int(uint64_t value);
18 [[nodiscard]] std::string to_string()
const;
20 friend bool operator == (
const BigInt& rhs,
const BigInt& lhs);
22 std::array<uint8_t,256U> data;
Definition: big_int.hpp:9