26 auto result =
sha256(input);
27 return from_buffer<bb::fr>(&result[0]);
32 return std::equal(lhs.begin(), lhs.end(), rhs.begin());
40 return std::equal(lhs.begin(), lhs.end(), rhs.begin());
45 std::ios_base::fmtflags f(
os.flags());
47 for (
auto byte :
arr) {
Sha256Hash sha256(const ByteContainer &input)
std::array< uint8_t, 32 > Sha256Hash
bool operator==(ecdsa_signature const &lhs, ecdsa_signature const &rhs)
std::array< uint32_t, 8 > sha256_block(const std::array< uint32_t, 8 > &h_init, const std::array< uint32_t, 16 > &input)
bb::fr sha256_to_field(std::vector< uint8_t > const &input)
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
bool operator==(std::vector< uint8_t > const &lhs, bb::crypto::Sha256Hash const &rhs)
std::ostream & operator<<(std::ostream &os, const T &obj)
Automatically derived stream operator for any object that defines .msgpack() (implicitly defined by M...