|
|
@ -62,7 +62,7 @@ public: |
|
|
|
explicit FixedHash(byte const* _bs, ConstructFromPointerType) { memcpy(m_data.data(), _bs, N); } |
|
|
|
|
|
|
|
/// Explicitly construct, copying from a string.
|
|
|
|
explicit FixedHash(std::string const& _s, ConstructFromStringType _t = FromHex): FixedHash(_t == FromHex ? fromHex(_s) : asBytes(_s)) {} |
|
|
|
explicit FixedHash(std::string const& _s, ConstructFromStringType _t = FromHex): FixedHash(_t == FromHex ? fromHex(_s) : eth::asBytes(_s)) {} |
|
|
|
|
|
|
|
/// Convert to arithmetic type.
|
|
|
|
operator Arith() const { return fromBigEndian<Arith>(m_data); } |
|
|
|