Struct snarkvm_circuit_algorithms::pedersen::Pedersen
source · pub struct Pedersen<E: Environment, const NUM_BITS: u8> { /* private fields */ }
Expand description
Pedersen is a collision-resistant hash function that takes a variable-length input. The Pedersen hash function does not behave like a random oracle, see Poseidon for one.
Trait Implementations§
source§impl<E: Environment, const NUM_BITS: u8> CommitUncompressed for Pedersen<E, NUM_BITS>
impl<E: Environment, const NUM_BITS: u8> CommitUncompressed for Pedersen<E, NUM_BITS>
source§fn commit_uncompressed(
&self,
input: &[Self::Input],
randomizer: &Self::Randomizer
) -> Self::Output
fn commit_uncompressed(
&self,
input: &[Self::Input],
randomizer: &Self::Randomizer
) -> Self::Output
Returns the Pedersen commitment of the given input and randomizer as an affine group element.