Struct snarkvm_polycommit::kzg10::Randomness [−][src]
Randomness
hides the polynomial inside a commitment. It is output by KZG10::commit
.
Fields
blinding_polynomial: Polynomial<E::Fr>
For KZG10, the commitment randomness is a random polynomial.
Implementations
impl<E: PairingEngine> Randomness<E>
[src]
pub fn is_hiding(&self) -> bool
[src]
Does self
provide any hiding properties to the corresponding commitment?
self.is_hiding() == true
only if the underlying polynomial is non-zero.
pub fn calculate_hiding_polynomial_degree(hiding_bound: usize) -> usize
[src]
What is the degree of the hiding polynomial for a given hiding bound?
Trait Implementations
impl<'a, E: PairingEngine> Add<&'a Randomness<E>> for Randomness<E>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(mut self: Self, other: &'a Self) -> Self
[src]
impl<'a, E: PairingEngine> Add<(<E as PairingEngine>::Fr, &'a Randomness<E>)> for Randomness<E>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(mut self: Self, other: (E::Fr, &'a Randomness<E>)) -> Self
[src]
impl<'a, E: PairingEngine> AddAssign<&'a Randomness<E>> for Randomness<E>
[src]
fn add_assign(&mut self, other: &'a Self)
[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]
impl<E: PairingEngine> CanonicalDeserialize for Randomness<E>
[src]
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>
[src]
fn deserialize_uncompressed<R: Read>(
reader: &mut R
) -> Result<Self, SerializationError>
[src]
reader: &mut R
) -> Result<Self, SerializationError>
impl<E: PairingEngine> CanonicalSerialize for Randomness<E>
[src]
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>
[src]
fn serialized_size(&self) -> usize
[src]
fn serialize_uncompressed<W: Write>(
&self,
writer: &mut W
) -> Result<(), SerializationError>
[src]
&self,
writer: &mut W
) -> Result<(), SerializationError>
fn uncompressed_size(&self) -> usize
[src]
impl<E: PairingEngine> Clone for Randomness<E>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<E: PairingEngine> Debug for Randomness<E>
[src]
impl<E: PairingEngine> Default for Randomness<E>
[src]
impl<E: PairingEngine> Eq for Randomness<E>
[src]
impl<E: PairingEngine> FromBytes for Randomness<E>
[src]
impl<E: PairingEngine> Hash for Randomness<E>
[src]
fn hash<__HE>(&self, __state: &mut __HE) where
__HE: Hasher,
[src]
__HE: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<E: PairingEngine> PCRandomness for Randomness<E>
[src]
impl<E: PairingEngine> PartialEq<Randomness<E>> for Randomness<E>
[src]
impl<E: PairingEngine> ToBytes for Randomness<E>
[src]
Auto Trait Implementations
impl<E> RefUnwindSafe for Randomness<E> where
<E as PairingEngine>::Fr: RefUnwindSafe,
[src]
<E as PairingEngine>::Fr: RefUnwindSafe,
impl<E> Send for Randomness<E>
[src]
impl<E> Sync for Randomness<E>
[src]
impl<E> Unpin for Randomness<E> where
<E as PairingEngine>::Fr: Unpin,
[src]
<E as PairingEngine>::Fr: Unpin,
impl<E> UnwindSafe for Randomness<E> where
<E as PairingEngine>::Fr: UnwindSafe,
[src]
<E as PairingEngine>::Fr: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,