![]() |
Anoncoin
0.9.4
P2P Digital Currency
|
A Public coin is the part of a coin that is published to the network and what is handled by other clients. More...
#include <Coin.h>
Public Member Functions | |
template<typename Stream > | |
PublicCoin (const Params *p, Stream &strm) | |
PublicCoin (const Params *p) | |
PublicCoin (const Params *p, const Bignum &coin, const CoinDenomination d) | |
Generates a public coin. More... | |
Bignum | getValue () const |
CoinDenomination | getDenomination () const |
bool | operator== (const PublicCoin &rhs) const |
bool | operator!= (const PublicCoin &rhs) const |
bool | validate () const |
Checks that a coin prime and in the appropriate range given the parameters. More... | |
Public Attributes | |
IMPLEMENT_SERIALIZE(READWRITE(value);READWRITE(denomination);) private Bignum | value |
CoinDenomination | denomination |
A Public coin is the part of a coin that is published to the network and what is handled by other clients.
It contains only the value of commitment to a serial number and the denomination of the coin.
|
inline |
libzerocoin::PublicCoin::PublicCoin | ( | const Params * | p, |
const Bignum & | coin, | ||
const CoinDenomination | d | ||
) |
CoinDenomination libzerocoin::PublicCoin::getDenomination | ( | ) | const |
Bignum libzerocoin::PublicCoin::getValue | ( | ) | const |
bool libzerocoin::PublicCoin::operator!= | ( | const PublicCoin & | rhs | ) | const |
bool libzerocoin::PublicCoin::operator== | ( | const PublicCoin & | rhs | ) | const |
bool libzerocoin::PublicCoin::validate | ( | ) | const |
CoinDenomination libzerocoin::PublicCoin::denomination |
IMPLEMENT_SERIALIZE ( READWRITE(value); READWRITE(denomination); ) private Bignum libzerocoin::PublicCoin::value |