[−][src]Struct neptune::circuit::PoseidonCircuit
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]
E: Engine,
Arity: Unsigned + Add<B1> + Add<UInt<UTerm, B1>>,
Add1<Arity>: ArrayLength<E::Fr>,
PoseidonCircuit implementation.
pub fn new(
elements: Vec<AllocatedNum<E>>,
constants: &'a PoseidonConstants<E, Arity>
) -> Self
[src]
elements: Vec<AllocatedNum<E>>,
constants: &'a PoseidonConstants<E, Arity>
) -> Self
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]
E: Engine,
Arity: Unsigned + Add<B1> + Add<UInt<UTerm, B1>>,
Add1<Arity>: ArrayLength<E::Fr>,
fn clone(&self) -> PoseidonCircuit<'a, E, Arity>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<'a, E, Arity> RefUnwindSafe for PoseidonCircuit<'a, E, Arity> where
Arity: RefUnwindSafe,
<E as ScalarEngine>::Fr: RefUnwindSafe,
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,
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,
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,
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,
Arity: RefUnwindSafe + UnwindSafe,
<E as ScalarEngine>::Fr: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,