8#include "../../hash/pedersen/pedersen.hpp"
25template <
typename Builder>
29 const auto base_points =
context.generators->get(inputs.size(),
context.offset,
context.domain_separator);
33 for (
const auto [scalar, point] :
zip_view(inputs, base_points)) {
36 points.emplace_back(point);
cycle_group represents a group Element of the proving system's embedded curve, i.e....
static cycle_group batch_mul(const std::vector< cycle_group > &base_points, const std::vector< BigScalarField > &scalars, GeneratorContext context={})
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.
In-circuit Pedersen commitment implementation.
static cycle_group commit(const std::vector< field_t > &inputs, GeneratorContext context={})
Compute a Pedersen commitment to the provided inputs.
StrictMock< MockContext > context
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept