pub struct FixedLengthRescueCommitment<F: RescueParameter, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize>(/* private fields */);
Expand description
Rescue-based Commitment instance for fixed-length input
§Note
the current ugly existence of INPUT_LEN_PLUS_ONE
is due to unstable
feature of using const generic in expression (namely can’t use INPUT_LEN + 1
in code).
Trait Implementations§
Source§impl<F: Clone + RescueParameter, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize> Clone for FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
impl<F: Clone + RescueParameter, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize> Clone for FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
Source§fn clone(&self) -> FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
fn clone(&self) -> FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
Returns a copy 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<F: RescueParameter, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize> CommitmentScheme for FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
impl<F: RescueParameter, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize> CommitmentScheme for FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
Source§type Input = [F; INPUT_LEN]
type Input = [F; INPUT_LEN]
Input to the commitment
Source§type Randomness = F
type Randomness = F
The type of the hiding/blinding factor
Source§type Error = RescueError
type Error = RescueError
Error type
Source§impl<F: Debug + RescueParameter, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize> Debug for FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
impl<F: Debug + RescueParameter, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize> Debug for FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
Source§impl<F: Default + RescueParameter, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize> Default for FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
impl<F: Default + RescueParameter, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize> Default for FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
Source§fn default() -> FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
fn default() -> FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
Returns the “default value” for a type. Read more
Source§impl<F: PartialEq + RescueParameter, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize> PartialEq for FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
impl<F: PartialEq + RescueParameter, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize> PartialEq for FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
Source§fn eq(
&self,
other: &FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>,
) -> bool
fn eq( &self, other: &FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>, ) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<F: Eq + RescueParameter, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize> Eq for FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
impl<F: RescueParameter, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize> StructuralPartialEq for FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
Auto Trait Implementations§
impl<F, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize> Freeze for FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
impl<F, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize> RefUnwindSafe for FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>where
F: RefUnwindSafe,
impl<F, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize> Send for FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
impl<F, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize> Sync for FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>
impl<F, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize> Unpin for FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>where
F: Unpin,
impl<F, const INPUT_LEN: usize, const INPUT_LEN_PLUS_ONE: usize> UnwindSafe for FixedLengthRescueCommitment<F, INPUT_LEN, INPUT_LEN_PLUS_ONE>where
F: UnwindSafe,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. 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