[][src]Struct bulletproofs::range_proof::messages::ProofShare

pub struct ProofShare {
    pub(super) t_x: Scalar,
    pub(super) t_x_blinding: Scalar,
    pub(super) e_blinding: Scalar,
    pub(super) l_vec: Vec<Scalar>,
    pub(super) r_vec: Vec<Scalar>,
}

A party's proof share, ready for aggregation into the final RangeProof.

Fields

t_x: Scalart_x_blinding: Scalare_blinding: Scalarl_vec: Vec<Scalar>r_vec: Vec<Scalar>

Methods

impl ProofShare[src]

pub(super) fn check_size(
    &self,
    expected_n: usize,
    bp_gens: &BulletproofGens,
    j: usize
) -> Result<(), ()>
[src]

Checks consistency of all sizes in the proof share and returns the size of the l/r vector.

pub(super) fn audit_share(
    &self,
    bp_gens: &BulletproofGens,
    pc_gens: &PedersenGens,
    j: usize,
    bit_commitment: &BitCommitment,
    bit_challenge: &BitChallenge,
    poly_commitment: &PolyCommitment,
    poly_challenge: &PolyChallenge
) -> Result<(), ()>
[src]

Audit an individual proof share to determine whether it is malformed.

Trait Implementations

impl Clone for ProofShare[src]

impl Debug for ProofShare[src]

impl<'de> Deserialize<'de> for ProofShare[src]

impl Serialize for ProofShare[src]

Auto Trait Implementations

impl RefUnwindSafe for ProofShare

impl Send for ProofShare

impl Sync for ProofShare

impl Unpin for ProofShare

impl UnwindSafe for ProofShare

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, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

impl<T> FromBits<T> for T

impl<T> FromCast<T> for T

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

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

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 = !

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.