[][src]Struct tari_crypto::ristretto::pedersen::PedersenCommitmentFactory

pub struct PedersenCommitmentFactory { /* fields omitted */ }

Implementations

impl PedersenCommitmentFactory[src]

pub fn new(G: RistrettoPoint, H: RistrettoPoint) -> PedersenCommitmentFactory[src]

Create a new Ristretto Commitment factory with the given points as the bases. It's very cheap to create factories, since we only hold references to the static generator points.

Trait Implementations

impl Clone for PedersenCommitmentFactory[src]

impl Debug for PedersenCommitmentFactory[src]

impl Default for PedersenCommitmentFactory[src]

The default Ristretto Commitment factory uses the Base point for x25519 and its first Blake256 hash.

impl Eq for PedersenCommitmentFactory[src]

impl HomomorphicCommitmentFactory for PedersenCommitmentFactory[src]

type P = RistrettoPublicKey

impl PartialEq<PedersenCommitmentFactory> for PedersenCommitmentFactory[src]

impl StructuralEq for PedersenCommitmentFactory[src]

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

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

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

impl<T> FromBits<T> for T

impl<T> FromCast<T> for T

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

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