Struct snarkvm_polycommit::marlin_pc::Randomness [−][src]
pub struct Randomness<E: PairingEngine> { /* fields omitted */ }
Expand description
Randomness
hides the polynomial inside a commitment. It is output by KZG10::commit
.
Trait Implementations
impl<'a, E: PairingEngine> Add<&'a Randomness<E>> for Randomness<E>
[src]
impl<'a, E: PairingEngine> Add<&'a Randomness<E>> for Randomness<E>
[src]impl<'a, E: PairingEngine> Add<(<E as PairingEngine>::Fr, &'a Randomness<E>)> for Randomness<E>
[src]
impl<'a, E: PairingEngine> Add<(<E as PairingEngine>::Fr, &'a Randomness<E>)> for Randomness<E>
[src]impl<'a, E: PairingEngine> AddAssign<&'a Randomness<E>> for Randomness<E>
[src]
impl<'a, E: PairingEngine> AddAssign<&'a Randomness<E>> for Randomness<E>
[src]fn add_assign(&mut self, other: &'a Self)
[src]
fn add_assign(&mut self, other: &'a Self)
[src]Performs the +=
operation. Read more
impl<'a, E: PairingEngine> AddAssign<(<E as PairingEngine>::Fr, &'a Randomness<E>)> for Randomness<E>
[src]
impl<'a, E: PairingEngine> AddAssign<(<E as PairingEngine>::Fr, &'a Randomness<E>)> for Randomness<E>
[src]fn add_assign(&mut self, (f, other): (E::Fr, &'a Randomness<E>))
[src]
fn add_assign(&mut self, (f, other): (E::Fr, &'a Randomness<E>))
[src]Performs the +=
operation. Read more
impl<E: PairingEngine> CanonicalDeserialize for Randomness<E>
[src]
impl<E: PairingEngine> CanonicalDeserialize for Randomness<E>
[src]fn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>
[src]
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>
[src]Reads Self
from reader
.
fn deserialize_uncompressed<R: Read>(
reader: &mut R
) -> Result<Self, SerializationError>
[src]
fn deserialize_uncompressed<R: Read>(
reader: &mut R
) -> Result<Self, SerializationError>
[src]Reads Self
from reader
without compression.
impl<E: PairingEngine> CanonicalSerialize for Randomness<E>
[src]
impl<E: PairingEngine> CanonicalSerialize for Randomness<E>
[src]fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>
[src]
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>
[src]Serializes self
into writer
.
fn serialized_size(&self) -> usize
[src]
fn serialize_uncompressed<W: Write>(
&self,
writer: &mut W
) -> Result<(), SerializationError>
[src]
fn serialize_uncompressed<W: Write>(
&self,
writer: &mut W
) -> Result<(), SerializationError>
[src]Serializes self
into writer
without compression.
fn uncompressed_size(&self) -> usize
[src]
impl<E: PairingEngine> Clone for Randomness<E>
[src]
impl<E: PairingEngine> Clone for Randomness<E>
[src]impl<E: PairingEngine> Debug for Randomness<E>
[src]
impl<E: PairingEngine> Debug for Randomness<E>
[src]impl<E: PairingEngine> Default for Randomness<E>
[src]
impl<E: PairingEngine> Default for Randomness<E>
[src]impl<E: PairingEngine> FromBytes for Randomness<E>
[src]
impl<E: PairingEngine> FromBytes for Randomness<E>
[src]impl<E: PairingEngine> Hash for Randomness<E>
[src]
impl<E: PairingEngine> Hash for Randomness<E>
[src]impl<E: PairingEngine> PCRandomness for Randomness<E>
[src]
impl<E: PairingEngine> PCRandomness for Randomness<E>
[src]fn rand<R: RngCore>(
hiding_bound: usize,
has_degree_bound: bool,
rng: &mut R
) -> Self
[src]
fn rand<R: RngCore>(
hiding_bound: usize,
has_degree_bound: bool,
rng: &mut R
) -> Self
[src]Samples randomness for commitments;
num_queries
specifies the number of queries that the commitment will be opened at.
has_degree_bound
indicates that the corresponding commitment has an enforced
strict degree bound. Read more
impl<E: PairingEngine> PartialEq<Randomness<E>> for Randomness<E>
[src]
impl<E: PairingEngine> PartialEq<Randomness<E>> for Randomness<E>
[src]impl<E: PairingEngine> ToBytes for Randomness<E>
[src]
impl<E: PairingEngine> ToBytes for Randomness<E>
[src]impl<E: PairingEngine> Eq for Randomness<E>
[src]
Auto Trait Implementations
impl<E> RefUnwindSafe for Randomness<E> where
<E as PairingEngine>::Fr: RefUnwindSafe,
<E as PairingEngine>::Fr: RefUnwindSafe,
impl<E> Send for Randomness<E>
impl<E> Sync for Randomness<E>
impl<E> Unpin for Randomness<E> where
<E as PairingEngine>::Fr: Unpin,
<E as PairingEngine>::Fr: Unpin,
impl<E> UnwindSafe for Randomness<E> where
<E as PairingEngine>::Fr: UnwindSafe,
<E as PairingEngine>::Fr: 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>,