Struct snarkvm_console_algorithms::Poseidon
source · pub struct Poseidon<E: Environment, const RATE: usize> { /* private fields */ }
Implementations§
source§impl<E: Environment, const RATE: usize> Poseidon<E, RATE>
impl<E: Environment, const RATE: usize> Poseidon<E, RATE>
sourcepub fn parameters(&self) -> &Arc<PoseidonParameters<E::Field, RATE, CAPACITY>>
pub fn parameters(&self) -> &Arc<PoseidonParameters<E::Field, RATE, CAPACITY>>
Returns the Poseidon parameters for hashing.
Trait Implementations§
source§impl<E: Clone + Environment, const RATE: usize> Clone for Poseidon<E, RATE>where
E::Field: Clone,
impl<E: Clone + Environment, const RATE: usize> Clone for Poseidon<E, RATE>where E::Field: Clone,
source§impl<E: Environment, const RATE: usize> HashToGroup for Poseidon<E, RATE>
impl<E: Environment, const RATE: usize> HashToGroup for Poseidon<E, RATE>
source§impl<E: Environment, const RATE: usize> HashToScalar for Poseidon<E, RATE>
impl<E: Environment, const RATE: usize> HashToScalar for Poseidon<E, RATE>
Auto Trait Implementations§
impl<E, const RATE: usize> RefUnwindSafe for Poseidon<E, RATE>where <E as Environment>::Field: RefUnwindSafe,
impl<E, const RATE: usize> Send for Poseidon<E, RATE>
impl<E, const RATE: usize> Sync for Poseidon<E, RATE>
impl<E, const RATE: usize> Unpin for Poseidon<E, RATE>where <E as Environment>::Field: Unpin,
impl<E, const RATE: usize> UnwindSafe for Poseidon<E, RATE>where <E as Environment>::Field: UnwindSafe + 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