[−][src]Struct bulletproofs::generators::PedersenGens
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
: theristretto255
basepoint;B_blinding
: the result ofristretto255
SHA3-512 hash-to-group on inputB_bytes
.
Fields
B: RistrettoPoint
Base for the committed value
B_blinding: RistrettoPoint
Base for the blinding factor
Methods
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]
fn clone(&self) -> PedersenGens
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PedersenGens
[src]
impl Default for PedersenGens
[src]
Auto Trait Implementations
impl RefUnwindSafe for PedersenGens
impl Send for PedersenGens
impl Sync for PedersenGens
impl Unpin for PedersenGens
impl UnwindSafe for PedersenGens
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> From<T> for T
[src]
impl<T> FromBits<T> for T
fn from_bits(t: T) -> T
impl<T> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
U: FromBits<T>,
fn into_bits(self) -> U
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,