[][src]Struct bulletproofs::PedersenGens

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

Base for the committed value

Base for the blinding factor

Methods

impl PedersenGens
[src]

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

Trait Implementations

impl Clone for PedersenGens
[src]

Performs copy-assignment from source. Read more

impl Copy for PedersenGens
[src]

impl Default for PedersenGens
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Same for T

Should always be Self

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized
[src]

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