Struct snarkvm_algorithms::crh::pedersen::PedersenCRH [−][src]
pub struct PedersenCRH<G: Group, S: PedersenSize> { pub parameters: PedersenCRHParameters<G, S>, }
Fields
parameters: PedersenCRHParameters<G, S>
Trait Implementations
impl<G: Group, S: PedersenSize> CRH for PedersenCRH<G, S>
[src]
impl<G: Group, S: PedersenSize> CRH for PedersenCRH<G, S>
[src]type Output = G
type Parameters = PedersenCRHParameters<G, S>
const INPUT_SIZE_BITS: usize
[src]
fn setup<R: Rng>(rng: &mut R) -> Self
[src]
fn hash(&self, input: &[u8]) -> Result<Self::Output, CRHError>
[src]
fn parameters(&self) -> &Self::Parameters
[src]
impl<G: Clone + Group, S: Clone + PedersenSize> Clone for PedersenCRH<G, S>
[src]
impl<G: Clone + Group, S: Clone + PedersenSize> Clone for PedersenCRH<G, S>
[src]fn clone(&self) -> PedersenCRH<G, S>
[src]
fn clone(&self) -> PedersenCRH<G, S>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<G: Debug + Group, S: Debug + PedersenSize> Debug for PedersenCRH<G, S>
[src]
impl<G: Debug + Group, S: Debug + PedersenSize> Debug for PedersenCRH<G, S>
[src]impl<G: Group, S: PedersenSize> From<PedersenCRHParameters<G, S>> for PedersenCRH<G, S>
[src]
impl<G: Group, S: PedersenSize> From<PedersenCRHParameters<G, S>> for PedersenCRH<G, S>
[src]fn from(parameters: PedersenCRHParameters<G, S>) -> Self
[src]
fn from(parameters: PedersenCRHParameters<G, S>) -> Self
[src]Performs the conversion.
impl<G: Ord + Group, S: Ord + PedersenSize> Ord for PedersenCRH<G, S>
[src]
impl<G: Ord + Group, S: Ord + PedersenSize> Ord for PedersenCRH<G, S>
[src]impl<G: PartialEq + Group, S: PartialEq + PedersenSize> PartialEq<PedersenCRH<G, S>> for PedersenCRH<G, S>
[src]
impl<G: PartialEq + Group, S: PartialEq + PedersenSize> PartialEq<PedersenCRH<G, S>> for PedersenCRH<G, S>
[src]fn eq(&self, other: &PedersenCRH<G, S>) -> bool
[src]
fn eq(&self, other: &PedersenCRH<G, S>) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &PedersenCRH<G, S>) -> bool
[src]
fn ne(&self, other: &PedersenCRH<G, S>) -> bool
[src]This method tests for !=
.
impl<G: PartialOrd + Group, S: PartialOrd + PedersenSize> PartialOrd<PedersenCRH<G, S>> for PedersenCRH<G, S>
[src]
impl<G: PartialOrd + Group, S: PartialOrd + PedersenSize> PartialOrd<PedersenCRH<G, S>> for PedersenCRH<G, S>
[src]fn partial_cmp(&self, other: &PedersenCRH<G, S>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &PedersenCRH<G, S>) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<F: Field, G: Group + ToConstraintField<F>, S: PedersenSize> ToConstraintField<F> for PedersenCRH<G, S>
[src]
impl<F: Field, G: Group + ToConstraintField<F>, S: PedersenSize> ToConstraintField<F> for PedersenCRH<G, S>
[src]fn to_field_elements(&self) -> Result<Vec<F>, ConstraintFieldError>
[src]
impl<G: Eq + Group, S: Eq + PedersenSize> Eq for PedersenCRH<G, S>
[src]
impl<G: Group, S: PedersenSize> StructuralEq for PedersenCRH<G, S>
[src]
impl<G: Group, S: PedersenSize> StructuralPartialEq for PedersenCRH<G, S>
[src]
Auto Trait Implementations
impl<G, S> RefUnwindSafe for PedersenCRH<G, S> where
G: RefUnwindSafe,
S: RefUnwindSafe,
G: RefUnwindSafe,
S: RefUnwindSafe,
impl<G, S> Send for PedersenCRH<G, S> where
S: Send,
S: Send,
impl<G, S> Sync for PedersenCRH<G, S> where
S: Sync,
S: Sync,
impl<G, S> Unpin for PedersenCRH<G, S> where
G: Unpin,
S: Unpin,
G: Unpin,
S: Unpin,
impl<G, S> UnwindSafe for PedersenCRH<G, S> where
G: UnwindSafe,
S: UnwindSafe,
G: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,