9#include "../generators/generator_data.hpp"
Performs pedersen hashes!
typename crypto::GeneratorContext< Curve > GeneratorContext
typename Curve::BaseField Fq
static std::vector< Fq > convert_buffer(const std::vector< uint8_t > &input)
Converts input uint8_t buffers into vector of field elements. Used to hash the Transcript in a SNARK-...
static Fq hash_buffer(const std::vector< uint8_t > &input, GeneratorContext context={})
Given an arbitrary length of bytes, convert them to fields and hash the result using the default gene...
typename Curve::ScalarField Fr
static constexpr AffineElement length_generator
typename Curve::Group Group
typename Curve::AffineElement AffineElement
typename Curve::Element Element
static Fq hash(const std::vector< Fq > &inputs, GeneratorContext context={})
Given a vector of fields, generate a pedersen hash using generators from context.
typename Group::element Element
typename grumpkin::g1 Group
typename Group::affine_element AffineElement
StrictMock< MockContext > context
constexpr std::span< const typename Group::affine_element > get_precomputed_generators()
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept