133 #ifndef OPENTXS_CASH_TOKEN_HPP
134 #define OPENTXS_CASH_TOKEN_HPP
144 class OTNym_or_SymmetricKey;
295 const Purse& thePurse);
365 int64_t lDenomination,
382 Token& theRequest) = 0;
392 int32_t nTokenIndex);
424 int32_t nTokenIndex);
431 #endif // OPENTXS_CASH_TOKEN_HPP
static EXPORT int32_t GetMinimumPrototokenCount()
EXPORT bool GetPrototoken(OTASCIIArmor &ascPrototoken, int32_t nTokenIndex)
EXPORT void ReleasePrototokens()
virtual int32_t ProcessXMLNode(irr::io::IrrXMLReader *&xml)
Token::tokenState GetState() const
EXPORT bool GetSignature(OTASCIIArmor &theSignature) const
int32_t GetSeries() const
virtual bool SaveContractWallet(std::ofstream &ofs) const
static EXPORT Token * LowLevelInstantiate(const Purse &thePurse)
EXPORT bool GetSpendableString(OTNym_or_SymmetricKey theOwner, OTString &theString) const
const OTASCIIArmor & GetSpendable() const
EXPORT bool GetPrivatePrototoken(OTASCIIArmor &ascPrototoken, int32_t nTokenIndex)
void SetDenomination(int64_t lVal)
EXPORT bool VerifyToken(OTPseudonym &theNotary, Mint &theMint)
virtual void UpdateContents()
static EXPORT Token * InstantiateAndGenerateTokenRequest(const Purse &thePurse, const OTPseudonym &theNym, Mint &theMint, int64_t lDenomination, int32_t nTokenCount=Token::GetMinimumPrototokenCount())
virtual EXPORT bool GenerateTokenRequest(const OTPseudonym &theNym, Mint &theMint, int64_t lDenomination, int32_t nTokenCount=Token::GetMinimumPrototokenCount())=0
EXPORT void Set(const char *data, uint32_t enforcedMaxLength=0)
EXPORT void SetSignature(const OTASCIIArmor &theSignature, int32_t nTokenIndex)
virtual EXPORT bool ProcessToken(const OTPseudonym &theNym, Mint &theMint, Token &theRequest)=0
void SetSavePrivateKeys()
int64_t GetDenomination() const
EXPORT bool IsTokenAlreadySpent(OTString &theCleartextToken)
mapOfPrototokens m_mapPrivate
EXPORT bool RecordTokenAsSpent(OTString &theCleartextToken)
std::map< int32_t, OTASCIIArmor * > mapOfPrototokens
void SetSeriesAndExpiration(int32_t nSeries, time64_t VALID_FROM, time64_t VALID_TO)
bool m_bPasswordProtected
OTASCIIArmor m_ascSpendable
EXPORT bool ReassignOwnership(OTNym_or_SymmetricKey &oldOwner, OTNym_or_SymmetricKey &newOwner)
mapOfPrototokens m_mapPublic
EXPORT void Release_Token()
void SetSpendable(const OTASCIIArmor &theArmor)
EXPORT Token & operator=(const Token &rhs)
static EXPORT Token * TokenFactory(OTString strInput)
bool ChooseIndex(int32_t nIndex)