Struct snarkvm_console_algorithms::Poseidon
source · pub struct Poseidon<E: Environment, const RATE: usize> { /* private fields */ }
Implementations
sourceimpl<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
sourceimpl<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,
sourceimpl<E: Environment, const RATE: usize> Hash for Poseidon<E, RATE>
impl<E: Environment, const RATE: usize> Hash for Poseidon<E, RATE>
sourceimpl<E: Environment, const RATE: usize> HashMany for Poseidon<E, RATE>
impl<E: Environment, const RATE: usize> HashMany for Poseidon<E, RATE>
sourcefn hash_many(&self, input: &[Self::Input], num_outputs: u16) -> Vec<Self::Output>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn hash_many(&self, input: &[Self::Input], num_outputs: u16) -> Vec<Self::Output>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Returns the cryptographic hash for a list of field elements as input, and returns the specified number of field elements as output.
type Input = Field<E>
type Output = Field<E>
sourceimpl<E: Environment, const RATE: usize> HashToGroup for Poseidon<E, RATE>
impl<E: Environment, const RATE: usize> HashToGroup for Poseidon<E, RATE>
sourceimpl<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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more