PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | List of all members
libzerocoin::Commitment Class Reference

A commitment, complete with contents and opening randomness. More...

#include <Commitment.h>

Collaboration diagram for libzerocoin::Commitment:
[legend]

Public Member Functions

 Commitment (const IntegerGroupParams *p, const CBigNum &bnSerial, const CBigNum &bnRandomness)
 
 Commitment (const IntegerGroupParams *p, const CBigNum &value)
 
const CBigNumgetCommitmentValue () const
 
const CBigNumgetRandomness () const
 
const CBigNumgetContents () const
 

Private Member Functions

 SERIALIZE_METHODS (Commitment, obj)
 

Private Attributes

const IntegerGroupParamsparams
 
CBigNum commitmentValue
 
CBigNum randomness
 
const CBigNum contents
 

Detailed Description

A commitment, complete with contents and opening randomness.

These should remain secret. Publish only the commitment value.

Definition at line 33 of file Commitment.h.

Constructor & Destructor Documentation

◆ Commitment() [1/2]

libzerocoin::Commitment::Commitment ( const IntegerGroupParams p,
const CBigNum bnSerial,
const CBigNum bnRandomness 
)
inlineexplicit

Definition at line 35 of file Commitment.h.

Here is the call graph for this function:

◆ Commitment() [2/2]

libzerocoin::Commitment::Commitment ( const IntegerGroupParams p,
const CBigNum value 
)
inline

Definition at line 44 of file Commitment.h.

Member Function Documentation

◆ getCommitmentValue()

const CBigNum& libzerocoin::Commitment::getCommitmentValue ( ) const
inline

Definition at line 47 of file Commitment.h.

◆ getContents()

const CBigNum& libzerocoin::Commitment::getContents ( ) const
inline

Definition at line 49 of file Commitment.h.

◆ getRandomness()

const CBigNum& libzerocoin::Commitment::getRandomness ( ) const
inline

Definition at line 48 of file Commitment.h.

◆ SERIALIZE_METHODS()

libzerocoin::Commitment::SERIALIZE_METHODS ( Commitment  ,
obj   
)
inlineprivate

Definition at line 57 of file Commitment.h.

Member Data Documentation

◆ commitmentValue

CBigNum libzerocoin::Commitment::commitmentValue
private

Definition at line 53 of file Commitment.h.

◆ contents

const CBigNum libzerocoin::Commitment::contents
private

Definition at line 55 of file Commitment.h.

◆ params

const IntegerGroupParams* libzerocoin::Commitment::params
private

Definition at line 52 of file Commitment.h.

◆ randomness

CBigNum libzerocoin::Commitment::randomness
private

Definition at line 54 of file Commitment.h.


The documentation for this class was generated from the following file: