Struct snarkvm_polycommit::kzg10::Randomness[][src]

pub struct Randomness<E: PairingEngine> {
    pub blinding_polynomial: Polynomial<E::Fr>,
}

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.

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.

impl<'a, E: PairingEngine> AddAssign<&'a Randomness<E>> for Randomness<E>[src]

impl<'a, E: PairingEngine> AddAssign<(<E as PairingEngine>::Fr, &'a Randomness<E>)> for Randomness<E>[src]

impl<E: PairingEngine> CanonicalDeserialize for Randomness<E>[src]

impl<E: PairingEngine> CanonicalSerialize for Randomness<E>[src]

impl<E: PairingEngine> Clone for Randomness<E>[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]

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]

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]

impl<E> UnwindSafe for Randomness<E> where
    <E as PairingEngine>::Fr: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,