14 #ifndef PIVX_LIBZEROCOIN_PARAMS_H
15 #define PIVX_LIBZEROCOIN_PARAMS_H
136 READWRITE(obj.initialized, obj.accumulatorModulus, obj.accumulatorBase, obj.accumulatorPoKCommitmentGroup);
137 READWRITE(obj.accumulatorQRNCommitmentGroup, obj.minCoinValue, obj.maxCoinValue, obj.k_prime, obj.k_dprime);
192 READWRITE(obj.initialized, obj.accumulatorParams, obj.coinCommitmentGroup, obj.serialNumberSoKCommitmentGroup, obj.zkp_iterations, obj.zkp_hash_len);
#define ZEROCOIN_DEFAULT_SECURITYLEVEL
CBigNum maxCoinValue
Upper bound on the value for a committed coin.
IntegerGroupParams accumulatorPoKCommitmentGroup
The second of two groups used to form a commitment to a coin (which it self is a commitment to a seri...
SERIALIZE_METHODS(AccumulatorAndProofParams, obj)
uint32_t k_dprime
Security parameter.
uint32_t k_prime
Security parameter.
IntegerGroupParams accumulatorQRNCommitmentGroup
Hidden order quadratic residue group mod N.
CBigNum accumulatorModulus
Modulus used for the accumulator.
CBigNum accumulatorBase
The initial value for the accumulator A random Quadratic residue mod n that's not 1.
AccumulatorAndProofParams()
Construct a set of Zerocoin parameters from a modulus "N".
CBigNum minCoinValue
Lower bound on the value for committed coin.
CBigNum randomElement() const
Generates a random group element.
CBigNum groupOrder
The order of the group.
CBigNum h
A second generator for the group.
CBigNum modulus
The modulus for the group.
CBigNum g
A generator for the group.
SERIALIZE_METHODS(IntegerGroupParams, obj)
IntegerGroupParams()
Integer group class, default constructor.
IntegerGroupParams coinCommitmentGroup
The Quadratic Residue group from which we form a coin as a commitment to a serial number.
AccumulatorAndProofParams accumulatorParams
IntegerGroupParams serialNumberSoKCommitmentGroup
One of two groups used to form a commitment to a coin (which it self is a commitment to a serial numb...
uint32_t zkp_hash_len
The amount of the hash function we use for proofs.
SERIALIZE_METHODS(ZerocoinParams, obj)
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".