28 return error(
"Failed to parse public spend");
37 return error(
"failed to erase spent zerocoin in block");
61 const uint32_t nChecksum = accCurr.
Get32();
62 if (nChecksum != accPrev.
Get32()) {
CoinSpend class for the Zerocoin library.
arith_uint256 UintToArith256(const uint256 &a)
const CChainParams & Params()
Return the currently selected parameters.
The block chain is a tree shaped structure starting with the genesis block at the root,...
CBlockIndex * pprev
pointer to the index of the predecessor of this block
uint256 nAccumulatorCheckpoint
int nHeight
height of the entry in the chain. The genesis block has height 0
const Consensus::Params & GetConsensus() const
bool IsZerocoinSpend() const
The basic transaction that is broadcasted on the network and contained in blocks.
bool HasZerocoinSpendInputs() const
bool ContainsZerocoins() const
An input of a transaction.
bool IsZerocoinPublicSpend() const
Capture information about block/transaction validation.
256-bit unsigned big integer.
uint32_t Get32(int n=0) const
The complete proof needed to spend a zerocoin.
const CBigNum & getCoinSerialNumber() const
libzerocoin::CoinSpend TxInToZerocoinSpend(const CTxIn &txin)
bool ParseZerocoinPublicSpend(const CTxIn &txIn, const CTransaction &tx, CValidationState &state, PublicCoinSpend &publicSpend)
const std::vector< CoinDenomination > zerocoinDenomList
Parameters that influence chain consensus.
libzerocoin::ZerocoinParams * Zerocoin_Params(bool useModulusV1) const
int height_last_ZC_AccumCheckpoint
bool NetworkUpgradeActive(int nHeight, Consensus::UpgradeIndex idx) const
Returns true if the given network upgrade is active as of the given block height.
bool error(const char *fmt, const Args &... args)
std::unique_ptr< CZerocoinDB > zerocoinDB
Global variable that points to the zerocoin database (protected by cs_main)
std::unique_ptr< AccumulatorCache > accumulatorCache
In-memory cache for the zerocoin accumulators.
void CacheAccChecksum(const CBlockIndex *pindex, bool fWrite)
bool DisconnectZerocoinTx(const CTransaction &tx)