51 void msgpack_schema(
auto& packer)
const { packer.pack_alias(
"Address",
"bin32"); }
58 read(it, address_field);
119 std::string
const& msg =
"address_t::assert_is_in_set")
const
122 for (
const auto& e : set) {
123 field_set.push_back(e.address_);
static constexpr affine_element affine_one
static address_t conditional_assign(const bool_t< Builder > &predicate, const address_t &lhs, const address_t &rhs)
field_t< Builder > address_
friend std::ostream & operator<<(std::ostream &os, address_t< Builder > const &v)
field_t< Builder > to_field() const
address_t< Builder > & operator=(const address_t< Builder > &other)
address_t(field_t< Builder > const &address)
void assert_equal(const address_t &rhs, std::string const &msg="address_t::assert_equal") const
address_t(witness_t< Builder > const &witness)
address_t(int const &address)
address_t(uint256_t const &address)
void assert_is_in_set(const std::vector< address_t > &set, std::string const &msg="address_t::assert_is_in_set") const
address_t(address_t< Builder > const &other)
bool_t< Builder > operator==(const address_t &other) const
bool_t< Builder > operator!=(const address_t &other) const
static address_t< Builder > derive_from_private_key(field_t< Builder > const &private_key)
void msgpack_schema(auto &packer) const
void msgpack_pack(auto &packer) const
address(int const &address)
address(uint256_t const &address)
friend std::ostream & operator<<(std::ostream &os, address const &v)
address(address const &other)
constexpr bool operator==(address const &other) const
address(fr const &address)
void msgpack_unpack(auto const &o)
Implements boolean logic in-circuit.
cycle_group represents a group Element of the proving system's embedded curve i.e....
static cycle_scalar create_from_bn254_scalar(const field_t &_in, bool skip_primality_test=false)
Use when we want to multiply a group element by a string of bits of known size. N....
void assert_is_in_set(const std::vector< field_t > &set, std::string const &msg="field_t::assert_not_in_set") const
Constrain *this \in set by enforcing that P(X) = \prod_{s \in set} (X - s) is 0 at X = *this.
void assert_equal(const field_t &rhs, std::string const &msg="field_t::assert_equal") const
Copy constraint: constrain that *this field is equal to rhs element.
static field_t conditional_assign(const bool_t< Builder > &predicate, const field_t &lhs, const field_t &rhs)
If predicate == true then return lhs, else return rhs.
bb::fr get_value() const
Given a := *this, compute its value given by a.v * a.mul + a.add.
StrictMock< MockContext > context
void read(B &it, field2< base_field, Params > &value)
field< Bn254FrParams > fr
void write(B &buf, field2< base_field, Params > const &value)
void read(auto &it, msgpack_concepts::HasMsgPack auto &obj)
Automatically derived read for any object that defines .msgpack() (implicitly defined by MSGPACK_FIEL...
void write(auto &buf, const msgpack_concepts::HasMsgPack auto &obj)
Automatically derived write for any object that defines .msgpack() (implicitly defined by MSGPACK_FIE...
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
void msgpack_pack(auto &packer) const
void msgpack_unpack(auto o)