pub struct Pedersen<E, const NUM_BITS: u8> where
    E: Environment
{ /* 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

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 an affine group element.

Returns the Pedersen hash of the given input as a field element.

Returns the Pedersen hash of the given input as an affine group element.

Initializes a new instance of Pedersen with the given Pedersen variant.

Initializes a constant of the given primitive value. Read more

Returns the number of constants, public inputs, private inputs, and constraints.

Returns the number of constants, public inputs, private inputs, and constraints.

Returns the number of constants, public inputs, private inputs, and constraints.

Returns the number of constants, public inputs, private inputs, and constraints.

Returns the mode of the output.

Returns the mode of the output.

Returns the mode of the output.

Returns the mode of the output.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

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.