Struct snarkvm_wasm::Blake2sCommitment [−][src]
pub struct Blake2sCommitment;
Trait Implementations
impl Clone for Blake2sCommitment
[src]
impl Clone for Blake2sCommitment
[src]pub fn clone(&self) -> Blake2sCommitment
[src]
pub fn clone(&self) -> Blake2sCommitment
[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<F> CommitmentGadget<Blake2sCommitment, F> for Blake2sCommitmentGadget where
F: PrimeField,
[src]
impl<F> CommitmentGadget<Blake2sCommitment, F> for Blake2sCommitmentGadget where
F: PrimeField,
[src]type OutputGadget = Blake2sOutputGadget
type ParametersGadget = Blake2sParametersGadget
type RandomnessGadget = Blake2sRandomnessGadget
pub fn check_commitment_gadget<CS>(
cs: CS,
&<Blake2sCommitmentGadget as CommitmentGadget<Blake2sCommitment, F>>::ParametersGadget,
input: &[UInt8],
r: &<Blake2sCommitmentGadget as CommitmentGadget<Blake2sCommitment, F>>::RandomnessGadget
) -> Result<<Blake2sCommitmentGadget as CommitmentGadget<Blake2sCommitment, F>>::OutputGadget, SynthesisError> where
CS: ConstraintSystem<F>,
[src]
cs: CS,
&<Blake2sCommitmentGadget as CommitmentGadget<Blake2sCommitment, F>>::ParametersGadget,
input: &[UInt8],
r: &<Blake2sCommitmentGadget as CommitmentGadget<Blake2sCommitment, F>>::RandomnessGadget
) -> Result<<Blake2sCommitmentGadget as CommitmentGadget<Blake2sCommitment, F>>::OutputGadget, SynthesisError> where
CS: ConstraintSystem<F>,
impl CommitmentScheme for Blake2sCommitment
[src]
impl CommitmentScheme for Blake2sCommitment
[src]type Output = [u8; 32]
type Parameters = ()
type Randomness = [u8; 32]
pub fn setup<R>(&mut R) -> Blake2sCommitment where
R: Rng,
[src]
R: Rng,
pub fn commit(
&self,
input: &[u8],
randomness: &<Blake2sCommitment as CommitmentScheme>::Randomness
) -> Result<<Blake2sCommitment as CommitmentScheme>::Output, CommitmentError>
[src]
&self,
input: &[u8],
randomness: &<Blake2sCommitment as CommitmentScheme>::Randomness
) -> Result<<Blake2sCommitment as CommitmentScheme>::Output, CommitmentError>
pub fn parameters(&self) -> &<Blake2sCommitment as CommitmentScheme>::Parameters
[src]
impl Debug for Blake2sCommitment
[src]
impl Debug for Blake2sCommitment
[src]impl From<()> for Blake2sCommitment
[src]
impl From<()> for Blake2sCommitment
[src]pub fn from(()) -> Blake2sCommitment
[src]
pub fn from(()) -> Blake2sCommitment
[src]Performs the conversion.
impl Ord for Blake2sCommitment
[src]
impl Ord for Blake2sCommitment
[src]impl PartialEq<Blake2sCommitment> for Blake2sCommitment
[src]
impl PartialEq<Blake2sCommitment> for Blake2sCommitment
[src]impl PartialOrd<Blake2sCommitment> for Blake2sCommitment
[src]
impl PartialOrd<Blake2sCommitment> for Blake2sCommitment
[src]pub fn partial_cmp(&self, other: &Blake2sCommitment) -> Option<Ordering>
[src]
pub fn partial_cmp(&self, other: &Blake2sCommitment) -> 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 Eq for Blake2sCommitment
[src]
impl StructuralEq for Blake2sCommitment
[src]
impl StructuralPartialEq for Blake2sCommitment
[src]
Auto Trait Implementations
impl RefUnwindSafe for Blake2sCommitment
impl Send for Blake2sCommitment
impl Sync for Blake2sCommitment
impl Unpin for Blake2sCommitment
impl UnwindSafe for Blake2sCommitment
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>,