Struct ark_poly_commit::kzg10::Randomness[][src]

pub struct Randomness<F: PrimeField, P: UVPolynomial<F>> {
    pub blinding_polynomial: P,
    // some fields omitted
}

Randomness hides the polynomial inside a commitment. It is output by KZG10::commit.

Fields

blinding_polynomial: P

For KZG10, the commitment randomness is a random polynomial.

Implementations

impl<F: PrimeField, P: UVPolynomial<F>> Randomness<F, P>[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, F: PrimeField, P: UVPolynomial<F>> Add<&'a Randomness<F, P>> for Randomness<F, P>[src]

type Output = Self

The resulting type after applying the + operator.

impl<'a, F: PrimeField, P: UVPolynomial<F>> Add<(F, &'a Randomness<F, P>)> for Randomness<F, P>[src]

type Output = Self

The resulting type after applying the + operator.

impl<'a, F: PrimeField, P: UVPolynomial<F>> AddAssign<&'a Randomness<F, P>> for Randomness<F, P>[src]

impl<'a, F: PrimeField, P: UVPolynomial<F>> AddAssign<(F, &'a Randomness<F, P>)> for Randomness<F, P>[src]

impl<F: PrimeField, P: UVPolynomial<F>> CanonicalDeserialize for Randomness<F, P>[src]

impl<F: PrimeField, P: UVPolynomial<F>> CanonicalSerialize for Randomness<F, P>[src]

impl<F: PrimeField, P: UVPolynomial<F>> Clone for Randomness<F, P>[src]

impl<F: PrimeField, P: UVPolynomial<F>> Debug for Randomness<F, P>[src]

impl<F: PrimeField, P: UVPolynomial<F>> Eq for Randomness<F, P>[src]

impl<F: PrimeField, P: UVPolynomial<F>> Hash for Randomness<F, P>[src]

impl<F: PrimeField, P: UVPolynomial<F>> PCRandomness for Randomness<F, P>[src]

impl<F: PrimeField, P: UVPolynomial<F>> PartialEq<Randomness<F, P>> for Randomness<F, P>[src]

Auto Trait Implementations

impl<F, P> RefUnwindSafe for Randomness<F, P> where
    F: RefUnwindSafe,
    P: RefUnwindSafe

impl<F, P> Send for Randomness<F, P> where
    P: Send

impl<F, P> Sync for Randomness<F, P> where
    P: Sync

impl<F, P> Unpin for Randomness<F, P> where
    F: Unpin,
    P: Unpin

impl<F, P> UnwindSafe for Randomness<F, P> where
    F: UnwindSafe,
    P: UnwindSafe

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<T> CallHasher for T where
    T: Hash + ?Sized

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

impl<T> Instrument 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>,