28template <
typename Builder>
34 const auto base_points =
context.generators->get(inputs.size(),
context.offset,
context.domain_separator);
40 for (
const auto [point, scalar] :
zip_view(base_points, inputs)) {
43 points.emplace_back(point);
49 auto builder_ptr = result.y.get_context();
50 if (builder_ptr !=
nullptr) {
51 builder_ptr->update_used_witnesses(result.y.witness_index);
Performs pedersen hashes!
::bb::stdlib::cycle_scalar< Builder > cycle_scalar
static cycle_group batch_mul(const std::vector< cycle_group > &base_points, const std::vector< BigScalarField > &scalars, GeneratorContext context={})
Represents a member of the Grumpkin curve scalar field (i.e. BN254 base field).
static cycle_scalar create_from_bn254_scalar(const field_t &_in)
Construct a cycle scalar (grumpkin scalar field element) from a bn254 scalar field element.
stdlib class that evaluates in-circuit pedersen hashes, consistent with behavior in crypto::pedersen_...
static field_ct hash(const std::vector< field_ct > &in, GeneratorContext context={})
Computes a pedersen hash of the provided inputs.
typename cycle_group< Builder >::Curve EmbeddedCurve
StrictMock< MockContext > context
stdlib::field_t< Builder > field_ct
Entry point for Barretenberg command-line interface.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept