pub struct KoalaBearPoseidonParameters;Expand description
Parameters for the Poseidon1 internal layer on KoalaBear.
Trait Implementations§
Source§impl Clone for KoalaBearPoseidonParameters
impl Clone for KoalaBearPoseidonParameters
Source§fn clone(&self) -> KoalaBearPoseidonParameters
fn clone(&self) -> KoalaBearPoseidonParameters
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 KoalaBearPoseidonParameters
impl Debug for KoalaBearPoseidonParameters
Source§impl Default for KoalaBearPoseidonParameters
impl Default for KoalaBearPoseidonParameters
Source§fn default() -> KoalaBearPoseidonParameters
fn default() -> KoalaBearPoseidonParameters
Returns the “default value” for a type. Read more
Source§impl PartialRoundBaseParameters<KoalaBearParameters, 16> for KoalaBearPoseidonParameters
impl PartialRoundBaseParameters<KoalaBearParameters, 16> for KoalaBearPoseidonParameters
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 [KoalaBear; 16])
fn mds_permute(state: &mut [KoalaBear; 16])
Apply the MDS permutation. Only called when
USE_TEXTBOOK is true.Source§impl PartialRoundBaseParameters<KoalaBearParameters, 24> for KoalaBearPoseidonParameters
impl PartialRoundBaseParameters<KoalaBearParameters, 24> for KoalaBearPoseidonParameters
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<KoalaBearParameters, 16> for KoalaBearPoseidonParameters
impl PartialRoundParameters<KoalaBearParameters, 24> for KoalaBearPoseidonParameters
Auto Trait Implementations§
impl Freeze for KoalaBearPoseidonParameters
impl RefUnwindSafe for KoalaBearPoseidonParameters
impl Send for KoalaBearPoseidonParameters
impl Sync for KoalaBearPoseidonParameters
impl Unpin for KoalaBearPoseidonParameters
impl UnsafeUnpin for KoalaBearPoseidonParameters
impl UnwindSafe for KoalaBearPoseidonParameters
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