Struct snarkvm_console_algorithms::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.
Implementations§
source§impl<E: Environment, const NUM_BITS: u8> Pedersen<E, NUM_BITS>
impl<E: Environment, const NUM_BITS: u8> Pedersen<E, NUM_BITS>
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>
Auto Trait Implementations§
impl<E, const NUM_BITS: u8> RefUnwindSafe for Pedersen<E, NUM_BITS>where <E as Environment>::Projective: RefUnwindSafe,
impl<E, const NUM_BITS: u8> Send for Pedersen<E, NUM_BITS>
impl<E, const NUM_BITS: u8> Sync for Pedersen<E, NUM_BITS>
impl<E, const NUM_BITS: u8> Unpin for Pedersen<E, NUM_BITS>
impl<E, const NUM_BITS: u8> UnwindSafe for Pedersen<E, NUM_BITS>where <E as Environment>::Projective: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more