pub struct BabyBearPoseidonParameters;Expand description
Parameters for the Poseidon1 internal layer on BabyBear.
Trait Implementations§
Source§impl Clone for BabyBearPoseidonParameters
impl Clone for BabyBearPoseidonParameters
Source§fn clone(&self) -> BabyBearPoseidonParameters
fn clone(&self) -> BabyBearPoseidonParameters
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BabyBearPoseidonParameters
impl Debug for BabyBearPoseidonParameters
Source§impl Default for BabyBearPoseidonParameters
impl Default for BabyBearPoseidonParameters
Source§fn default() -> BabyBearPoseidonParameters
fn default() -> BabyBearPoseidonParameters
Returns the “default value” for a type. Read more
Source§impl PartialRoundBaseParameters<BabyBearParameters, 16> for BabyBearPoseidonParameters
impl PartialRoundBaseParameters<BabyBearParameters, 16> for BabyBearPoseidonParameters
Source§const USE_TEXTBOOK: bool = true
const USE_TEXTBOOK: bool = true
Whether to use the textbook (MDS-per-round) path for partial rounds. Read more
Source§fn mds_permute(state: &mut [BabyBear; 16])
fn mds_permute(state: &mut [BabyBear; 16])
Apply the MDS permutation. Only called when
USE_TEXTBOOK is true.Source§impl PartialRoundBaseParameters<BabyBearParameters, 24> for BabyBearPoseidonParameters
impl PartialRoundBaseParameters<BabyBearParameters, 24> for BabyBearPoseidonParameters
Source§const USE_TEXTBOOK: bool = false
const USE_TEXTBOOK: bool = false
Whether to use the textbook (MDS-per-round) path for partial rounds. Read more
Source§fn mds_permute(_state: &mut [MontyField31<MP>; WIDTH])
fn mds_permute(_state: &mut [MontyField31<MP>; WIDTH])
Apply the MDS permutation. Only called when
USE_TEXTBOOK is true.impl PartialRoundParameters<BabyBearParameters, 16> for BabyBearPoseidonParameters
impl PartialRoundParameters<BabyBearParameters, 24> for BabyBearPoseidonParameters
Auto Trait Implementations§
impl Freeze for BabyBearPoseidonParameters
impl RefUnwindSafe for BabyBearPoseidonParameters
impl Send for BabyBearPoseidonParameters
impl Sync for BabyBearPoseidonParameters
impl Unpin for BabyBearPoseidonParameters
impl UnsafeUnpin for BabyBearPoseidonParameters
impl UnwindSafe for BabyBearPoseidonParameters
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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