Shared type definitions for the Barretenberg RPC API.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
bool operator==(const Response &) const =default
static constexpr const char MSGPACK_SCHEMA_NAME[]
MSGPACK_FIELDS(is_square_root, value)
Compute square root of a BN254 Fq (base field) element.
bool operator==(const Bn254FqSqrt &) const =default
static constexpr const char MSGPACK_SCHEMA_NAME[]
Response execute(BBApiRequest &request) &&
MSGPACK_FIELDS(is_square_root, value)
bool operator==(const Response &) const =default
static constexpr const char MSGPACK_SCHEMA_NAME[]
Compute square root of a BN254 Fr (scalar field) element.
static constexpr const char MSGPACK_SCHEMA_NAME[]
bool operator==(const Bn254FrSqrt &) const =default
Response execute(BBApiRequest &request) &&
static constexpr const char MSGPACK_SCHEMA_NAME[]
bool operator==(const Response &) const =default
bb::g1::affine_element point
Decompress a BN254 G1 point from compressed form.
static constexpr const char MSGPACK_SCHEMA_NAME[]
std::array< uint8_t, 32 > compressed
MSGPACK_FIELDS(compressed)
bool operator==(const Bn254G1FromCompressed &) const =default
Response execute(BBApiRequest &request) &&
static constexpr const char MSGPACK_SCHEMA_NAME[]
bool operator==(const Response &) const =default
MSGPACK_FIELDS(is_on_curve)
Check if a BN254 G1 point is on the curve.
Response execute(BBApiRequest &request) &&
bool operator==(const Bn254G1IsOnCurve &) const =default
static constexpr const char MSGPACK_SCHEMA_NAME[]
bb::g1::affine_element point
bb::g1::affine_element point
static constexpr const char MSGPACK_SCHEMA_NAME[]
bool operator==(const Response &) const =default
Multiply a BN254 G1 point by a scalar.
Response execute(BBApiRequest &request) &&
MSGPACK_FIELDS(point, scalar)
bb::g1::affine_element point
static constexpr const char MSGPACK_SCHEMA_NAME[]
bool operator==(const Bn254G1Mul &) const =default
bb::g2::affine_element point
bool operator==(const Response &) const =default
static constexpr const char MSGPACK_SCHEMA_NAME[]
Multiply a BN254 G2 point by a scalar.
static constexpr const char MSGPACK_SCHEMA_NAME[]
bool operator==(const Bn254G2Mul &) const =default
MSGPACK_FIELDS(point, scalar)
bb::g2::affine_element point
Response execute(BBApiRequest &request) &&
static constexpr const char MSGPACK_SCHEMA_NAME[]
bool operator==(const Response &) const =default
grumpkin::g1::affine_element point
grumpkin::g1::affine_element point_a
static constexpr const char MSGPACK_SCHEMA_NAME[]
Response execute(BBApiRequest &request) &&
MSGPACK_FIELDS(point_a, point_b)
bool operator==(const GrumpkinAdd &) const =default
grumpkin::g1::affine_element point_b
std::vector< grumpkin::g1::affine_element > points
bool operator==(const Response &) const =default
static constexpr const char MSGPACK_SCHEMA_NAME[]
Multiply multiple Grumpkin points by a single scalar.
std::vector< grumpkin::g1::affine_element > points
bool operator==(const GrumpkinBatchMul &) const =default
MSGPACK_FIELDS(points, scalar)
Response execute(BBApiRequest &request) &&
static constexpr const char MSGPACK_SCHEMA_NAME[]
static constexpr const char MSGPACK_SCHEMA_NAME[]
bool operator==(const Response &) const =default
Get a random Grumpkin field element (BN254 Fr)
static constexpr const char MSGPACK_SCHEMA_NAME[]
bool operator==(const GrumpkinGetRandomFr &) const =default
Response execute(BBApiRequest &request) &&
bool operator==(const Response &) const =default
static constexpr const char MSGPACK_SCHEMA_NAME[]
grumpkin::g1::affine_element point
Multiply a Grumpkin point by a scalar.
grumpkin::g1::affine_element point
Response execute(BBApiRequest &request) &&
MSGPACK_FIELDS(point, scalar)
bool operator==(const GrumpkinMul &) const =default
static constexpr const char MSGPACK_SCHEMA_NAME[]
bool operator==(const Response &) const =default
static constexpr const char MSGPACK_SCHEMA_NAME[]
Reduce a 512-bit value modulo Grumpkin scalar field (BN254 Fr)
std::array< uint8_t, 64 > input
Response execute(BBApiRequest &request) &&
static constexpr const char MSGPACK_SCHEMA_NAME[]
bool operator==(const GrumpkinReduce512 &) const =default
static constexpr const char MSGPACK_SCHEMA_NAME[]
bool operator==(const Response &) const =default
Get a random Secp256k1 field element.
Response execute(BBApiRequest &request) &&
static constexpr const char MSGPACK_SCHEMA_NAME[]
bool operator==(const Secp256k1GetRandomFr &) const =default
static constexpr const char MSGPACK_SCHEMA_NAME[]
secp256k1::g1::affine_element point
bool operator==(const Response &) const =default
Multiply a Secp256k1 point by a scalar.
static constexpr const char MSGPACK_SCHEMA_NAME[]
MSGPACK_FIELDS(point, scalar)
Response execute(BBApiRequest &request) &&
bool operator==(const Secp256k1Mul &) const =default
secp256k1::g1::affine_element point
bool operator==(const Response &) const =default
static constexpr const char MSGPACK_SCHEMA_NAME[]
Reduce a 512-bit value modulo Secp256k1 scalar field.
static constexpr const char MSGPACK_SCHEMA_NAME[]
bool operator==(const Secp256k1Reduce512 &) const =default
std::array< uint8_t, 64 > input
Response execute(BBApiRequest &request) &&