barretenberg
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
proof_system::plonk::stdlib::pedersen_hash< Builder > Class Template Reference

stdlib class that evaluates in-circuit pedersen hashes, consistent with behavior in crypto::pedersen_hash More...

#include <pedersen.hpp>

Static Public Member Functions

static field_t hash (const std::vector< field_t > &in, GeneratorContext context={})
 
static field_t hash_skip_field_validation (const std::vector< field_t > &in, GeneratorContext context={})
 
static field_t hash_buffer (const stdlib::byte_array< Builder > &input, GeneratorContext context={})
 

Detailed Description

template<typename Builder>
class proof_system::plonk::stdlib::pedersen_hash< Builder >

stdlib class that evaluates in-circuit pedersen hashes, consistent with behavior in crypto::pedersen_hash

Template Parameters
Builder

Member Function Documentation

◆ hash_buffer()

template<typename Builder >
field_t< C > proof_system::plonk::stdlib::pedersen_hash< C >::hash_buffer ( const stdlib::byte_array< Builder > &  input,
GeneratorContext  context = {} 
)
static

Hash a byte_array.

TODO(@zac-williamson #2796) Once Poseidon is implemented, replace this method with a more canonical hash algorithm (that is less efficient)


The documentation for this class was generated from the following files: