Struct proj_crypto::asymmetric::commitments::Commitment [] [src]

pub struct Commitment {
    pub x: Mpz,
    pub p: Mpz,
}

The commitment its self as one would share along a wire

Fields

The numerical representation of the commitment

We can't do any maths without p

Methods

impl Commitment
[src]

Creates a Commitment from raw parts

Trait Implementations

impl Clone for Commitment
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Add<Commitment> for Commitment
[src]

Naming of these operations refers to the data enclosed

The resulting type after applying the + operator

The method for the + operator

impl<'a> Add<&'a Commitment> for Commitment
[src]

The resulting type after applying the + operator

The method for the + operator

impl<'a> Add<Commitment> for &'a Commitment
[src]

The resulting type after applying the + operator

The method for the + operator

impl<'a, 'b> Add<&'a Commitment> for &'a Commitment
[src]

The resulting type after applying the + operator

The method for the + operator

impl Mul<Mpz> for Commitment
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a> Mul<&'a Mpz> for Commitment
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a> Mul<Mpz> for &'a Commitment
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a, 'b> Mul<&'a Mpz> for &'a Commitment
[src]

The resulting type after applying the * operator

The method for the * operator

impl PartialEq for Commitment
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Commitment
[src]