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.
Initializes a new instance of Pedersen with the given setup message.
Returns the random base window.
Performs copy-assignment from
source
.
Read more
Returns the Pedersen commitment of the given input and randomizer as a field element.
Returns the Pedersen commitment of the given input and randomizer as a group element.
Returns the Pedersen hash of the given input as a field element.
Returns the Pedersen hash of the given input as a group element.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.