Struct bulletproofs::PedersenGens[][src]

pub struct PedersenGens {
    pub B: RistrettoPoint,
    pub B_blinding: RistrettoPoint,
}

Represents a pair of base points for Pedersen commitments.

The Bulletproofs implementation and API is designed to support pluggable bases for Pedersen commitments, so that the choice of bases is not hard-coded.

The default generators are:

  • B: the ristretto255 basepoint;
  • B_blinding: the result of ristretto255 SHA3-512 hash-to-group on input B_bytes.

Fields

B: RistrettoPoint

Base for the committed value

B_blinding: RistrettoPoint

Base for the blinding factor

Implementations

impl PedersenGens[src]

pub fn commit(&self, value: Scalar, blinding: Scalar) -> RistrettoPoint[src]

Creates a Pedersen commitment using the value scalar and a blinding factor.

Trait Implementations

impl Clone for PedersenGens[src]

impl Copy for PedersenGens[src]

impl Default for PedersenGens[src]

Auto Trait Implementations

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> Clear for T where
    T: InitializableFromZeroed + ?Sized
[src]

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

impl<T> InitializableFromZeroed for T where
    T: Default
[src]

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

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>,