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

pub struct CommitmentContext {
    pub commitment_value: Mpz,
    pub parameters: DHParams,
    // some fields omitted
}

A structure containing all the data relating to a commitment. This contains secrets. Drop has been implemented for Mpz to clear the memory when it goes out of scope.

Fields

The value of the commitment its self

The diffie-hellman parameters used in the commitment. These can be disclosed publicly

Methods

impl CommitmentContext
[src]

Output the opening of this commitment

Generate the commitment from the opening (deterministic)

Generate a commitment onto some data (non-deterministic)

Return the corresponding Commitment object