![]() |
PIVX Core
5.6.99
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 ZerocoinParams *p, Stream &strm) | |
| PublicCoin (const ZerocoinParams *p) | |
| PublicCoin (const ZerocoinParams *p, const CBigNum &coin, const CoinDenomination d) | |
| Generates a public coin. More... | |
| const CBigNum & | getValue () const |
| CoinDenomination | getDenomination () const |
| bool | operator== (const PublicCoin &rhs) const |
| bool | operator!= (const PublicCoin &rhs) const |
| bool | validate () const |
| Checks that coin is prime and in the appropriate range given the parameters. More... | |
| SERIALIZE_METHODS (PublicCoin, obj) | |
Private Attributes | |
| const ZerocoinParams * | params |
| CBigNum | 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 |
|
explicit |
| libzerocoin::PublicCoin::PublicCoin | ( | const ZerocoinParams * | p, |
| const CBigNum & | coin, | ||
| const CoinDenomination | d | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool libzerocoin::PublicCoin::validate | ( | ) | const |
|
private |
|
private |