[][src]Struct neptune::circuit::PoseidonCircuit

pub struct PoseidonCircuit<'a, E, Arity> where
    E: Engine,
    Arity: Unsigned + Add<B1> + Add<UInt<UTerm, B1>>,
    Add1<Arity>: ArrayLength<E::Fr>, 
{ /* fields omitted */ }

Circuit for Poseidon hash.

Methods

impl<'a, E, Arity> PoseidonCircuit<'a, E, Arity> where
    E: Engine,
    Arity: Unsigned + Add<B1> + Add<UInt<UTerm, B1>>,
    Add1<Arity>: ArrayLength<E::Fr>, 
[src]

PoseidonCircuit implementation.

pub fn new(
    elements: Vec<AllocatedNum<E>>,
    constants: &'a PoseidonConstants<E, Arity>
) -> Self
[src]

Create a new Poseidon hasher for preimage.

Trait Implementations

impl<'a, E: Clone, Arity: Clone> Clone for PoseidonCircuit<'a, E, Arity> where
    E: Engine,
    Arity: Unsigned + Add<B1> + Add<UInt<UTerm, B1>>,
    Add1<Arity>: ArrayLength<E::Fr>, 
[src]

Auto Trait Implementations

impl<'a, E, Arity> RefUnwindSafe for PoseidonCircuit<'a, E, Arity> where
    Arity: RefUnwindSafe,
    <E as ScalarEngine>::Fr: RefUnwindSafe

impl<'a, E, Arity> Send for PoseidonCircuit<'a, E, Arity> where
    Arity: Send + Sync,
    <E as ScalarEngine>::Fr: Send + Sync

impl<'a, E, Arity> Sync for PoseidonCircuit<'a, E, Arity> where
    Arity: Sync,
    <E as ScalarEngine>::Fr: Sync

impl<'a, E, Arity> Unpin for PoseidonCircuit<'a, E, Arity> where
    Arity: Unpin,
    <E as ScalarEngine>::Fr: Unpin

impl<'a, E, Arity> UnwindSafe for PoseidonCircuit<'a, E, Arity> where
    Arity: RefUnwindSafe + UnwindSafe,
    <E as ScalarEngine>::Fr: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,