implemented MoneroCheck, MoneroCheckTx, MoneroCheckReserve structs;

defined getTxKey(), checkTxKey(), getTxProof(), checkTxProof(),
getSpendProof(), checkSpendProof(), getReserveProofWallet(),
getReserveProofAccount(), checkReserveProof()
This commit is contained in:
woodser
2019-07-02 14:53:14 -04:00
parent adad8d0a56
commit a82bfd580a
4 changed files with 192 additions and 90 deletions
+30
View File
@@ -265,4 +265,34 @@ namespace monero {
boost::property_tree::ptree toPropertyTree() const;
};
/**
* Base class for results from checking a transaction or reserve proof.
*/
struct MoneroCheck : public SerializableStruct {
bool isGood;
boost::property_tree::ptree toPropertyTree() const;
};
/**
* Results from checking a transaction key.
*/
struct MoneroCheckTx : public MoneroCheck {
bool inTxPool;
uint64_t numConfirmations;
uint64_t receivedAmount;
boost::property_tree::ptree toPropertyTree() const;
};
/**
* Results from checking a reserve proof.
*/
struct MoneroCheckReserve : public MoneroCheck {
uint64_t totalAmount;
uint64_t unconfirmedSpentAmount;
boost::property_tree::ptree toPropertyTree() const;
};
}