133 #ifndef OPENTXS_CASH_MINT_HPP
134 #define OPENTXS_CASH_MINT_HPP
148 typedef std::map<int64_t, OTASCIIArmor*>
mapOfArmor;
256 EXPORT
virtual ~Mint();
260 EXPORT
bool LoadMint(
const char* szAppend =
nullptr);
261 EXPORT
bool SaveMint(
const char* szAppend =
nullptr);
280 int32_t nPrimeLength = 1024) = 0;
305 int64_t nDenom2 = 0, int64_t nDenom3 = 0,
306 int64_t nDenom4 = 0, int64_t nDenom5 = 0,
307 int64_t nDenom6 = 0, int64_t nDenom7 = 0,
308 int64_t nDenom8 = 0, int64_t nDenom9 = 0,
309 int64_t nDenom10 = 0);
315 OTString& theOutput, int32_t nTokenIndex) = 0;
322 int64_t lDenomination) = 0;
329 #endif // OPENTXS_CASH_MINT_HPP
void SetAssetID(const OTIdentifier &newID)
void ReleaseDenominations()
void SetSavePrivateKeys(bool bDoIt=true)
static EXPORT Mint * MintFactory()
OTAccount * m_pReserveAcct
bool GetPrivate(OTASCIIArmor &theArmor, int64_t lDenomination)
virtual bool AddDenomination(OTPseudonym &theNotary, int64_t lDenomination, int32_t nPrimeLength=1024)=0
EXPORT bool Expired() const
EXPORT void GenerateNewMint(int32_t nSeries, time64_t VALID_FROM, time64_t VALID_TO, time64_t MINT_EXPIRATION, const OTIdentifier &theAssetID, const OTIdentifier &theServerID, OTPseudonym &theNotary, int64_t nDenom1=0, int64_t nDenom2=0, int64_t nDenom3=0, int64_t nDenom4=0, int64_t nDenom5=0, int64_t nDenom6=0, int64_t nDenom7=0, int64_t nDenom8=0, int64_t nDenom9=0, int64_t nDenom10=0)
EXPORT bool VerifyMint(const OTPseudonym &theOperator)
virtual bool SaveContractWallet(std::ofstream &ofs) const
virtual EXPORT bool VerifyToken(OTPseudonym &theNotary, OTString &theCleartextToken, int64_t lDenomination)=0
virtual void UpdateContents()
OTIdentifier m_ServerNymID
EXPORT bool SaveMint(const char *szAppend=nullptr)
int32_t GetSeries() const
virtual int32_t ProcessXMLNode(irr::io::IrrXMLReader *&xml)
EXPORT int64_t GetLargestDenomination(int64_t lAmount)
virtual EXPORT bool SignToken(OTPseudonym &theNotary, Token &theToken, OTString &theOutput, int32_t nTokenIndex)=0
bool GetPublic(OTASCIIArmor &theArmor, int64_t lDenomination)
time64_t GetValidTo() const
virtual bool LoadContract()
OTIdentifier m_CashAccountID
int32_t GetDenominationCount() const
time64_t GetValidFrom() const
OTAsymmetricKey * m_pKeyPublic
int32_t m_nDenominationCount
std::map< int64_t, OTASCIIArmor * > mapOfArmor
time64_t GetExpiration() const
virtual bool VerifyContractID() const
EXPORT bool LoadMint(const char *szAppend=nullptr)
OTAccount * GetCashReserveAccount() const
int64_t GetDenomination(int32_t nIndex)