pub struct VARUNA_FS_PARAMETERS { /* private fields */ }
Expand description
The Varuna sponge parameters.
Methods from Deref<Target = FiatShamirParameters<MainnetV0>>§
Sourcepub fn compress_elements<TargetField, I>(
&self,
src_limbs: Peekable<I>,
ty: OptimizationType,
) -> Vec<F>
pub fn compress_elements<TargetField, I>( &self, src_limbs: Peekable<I>, ty: OptimizationType, ) -> Vec<F>
Compress every two elements if possible. Provides a vector of (limb, num_of_additions), both of which are F.
Trait Implementations§
Source§impl Deref for VARUNA_FS_PARAMETERS
impl Deref for VARUNA_FS_PARAMETERS
Source§type Target = <PoseidonSponge<<<MainnetV0 as Environment>::PairingCurve as PairingEngine>::Fq, 2, 1> as AlgebraicSponge<<<MainnetV0 as Environment>::PairingCurve as PairingEngine>::Fq, 2>>::Parameters
type Target = <PoseidonSponge<<<MainnetV0 as Environment>::PairingCurve as PairingEngine>::Fq, 2, 1> as AlgebraicSponge<<<MainnetV0 as Environment>::PairingCurve as PairingEngine>::Fq, 2>>::Parameters
The resulting type after dereferencing.
Source§fn deref(&self) -> &FiatShamirParameters<MainnetV0>
fn deref(&self) -> &FiatShamirParameters<MainnetV0>
Dereferences the value.
impl LazyStatic for VARUNA_FS_PARAMETERS
Auto Trait Implementations§
impl Freeze for VARUNA_FS_PARAMETERS
impl RefUnwindSafe for VARUNA_FS_PARAMETERS
impl Send for VARUNA_FS_PARAMETERS
impl Sync for VARUNA_FS_PARAMETERS
impl Unpin for VARUNA_FS_PARAMETERS
impl UnwindSafe for VARUNA_FS_PARAMETERS
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more