Parameter generation routines for Zerocoin.
#define ZEROCOIN_PROTOCOL_VERSION
CBigNum pow_mod(const CBigNum &e, const CBigNum &m) const
modular exponentiation: this^e mod n
static CBigNum randBignum(const CBigNum &range)
Generates a cryptographically secure random number between zero and range exclusive i....
uint32_t k_dprime
Security parameter.
uint32_t k_prime
Security parameter.
AccumulatorAndProofParams()
Construct a set of Zerocoin parameters from a modulus "N".
CBigNum randomElement() const
Generates a random group element.
CBigNum groupOrder
The order of the group.
CBigNum modulus
The modulus for the group.
CBigNum g
A generator for the group.
IntegerGroupParams()
Integer group class, default constructor.
AccumulatorAndProofParams accumulatorParams
uint32_t zkp_hash_len
The amount of the hash function we use for proofs.
uint32_t zkp_iterations
The number of iterations to use in the serial number proof.
ZerocoinParams(CBigNum accumulatorModulus, uint32_t securityLevel=ZEROCOIN_DEFAULT_SECURITYLEVEL)
Construct a set of Zerocoin parameters from a modulus "N".
Parameter classes for Zerocoin.
void CalculateParams(ZerocoinParams ¶ms, const CBigNum &N, const std::string &aux, uint32_t securityLevel)
Fill in a set of Zerocoin parameters from a modulus "N".