Anoncoin  0.9.4
P2P Digital Currency
Public Member Functions | Public Attributes | Private Attributes | List of all members
libzerocoin::IntegerGroupParams Class Reference

#include <Params.h>

Public Member Functions

 IntegerGroupParams ()
 Integer group class, default constructor. More...
 
Bignum randomElement () const
 Generates a random group element. More...
 
Bignum g () const
 
Bignum h () const
 
void g (const Bignum &g)
 
void h (const Bignum &h)
 
void invalidateGenerators ()
 

Public Attributes

bool initialized
 
Bignum modulus
 The modulus for the group. More...
 
Bignum groupOrder
 The order of the group. More...
 

Private Attributes

Bignum _g
 A generator for the group. More...
 
Bignum _h
 A second generator for the group. More...
 
bool generatorsAreValid
 

Detailed Description

Definition at line 17 of file Params.h.

Constructor & Destructor Documentation

libzerocoin::IntegerGroupParams::IntegerGroupParams ( )

Integer group class, default constructor.

Allocates an empty (uninitialized) set of parameters.

Definition at line 34 of file Params.cpp.

Member Function Documentation

Bignum libzerocoin::IntegerGroupParams::g ( ) const
inline

Definition at line 48 of file Params.h.

Here is the caller graph for this function:

void libzerocoin::IntegerGroupParams::g ( const Bignum &  g)
inline

Definition at line 64 of file Params.h.

Here is the call graph for this function:

Bignum libzerocoin::IntegerGroupParams::h ( ) const
inline

Definition at line 55 of file Params.h.

Here is the caller graph for this function:

void libzerocoin::IntegerGroupParams::h ( const Bignum &  h)
inline

Definition at line 70 of file Params.h.

Here is the call graph for this function:

void libzerocoin::IntegerGroupParams::invalidateGenerators ( )
inline

Definition at line 79 of file Params.h.

Here is the caller graph for this function:

Bignum libzerocoin::IntegerGroupParams::randomElement ( ) const

Generates a random group element.

Returns
a random element in the group.

Definition at line 38 of file Params.cpp.

Here is the call graph for this function:

Member Data Documentation

Bignum libzerocoin::IntegerGroupParams::_g
private

A generator for the group.

Definition at line 36 of file Params.h.

Bignum libzerocoin::IntegerGroupParams::_h
private

A second generator for the group.

Note log_g(h) and log_h(g) must be unknown.

Definition at line 43 of file Params.h.

bool libzerocoin::IntegerGroupParams::generatorsAreValid
private

Definition at line 44 of file Params.h.

Bignum libzerocoin::IntegerGroupParams::groupOrder

The order of the group.

Definition at line 93 of file Params.h.

bool libzerocoin::IntegerGroupParams::initialized

Definition at line 30 of file Params.h.

Bignum libzerocoin::IntegerGroupParams::modulus

The modulus for the group.

Definition at line 88 of file Params.h.


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