133 #ifndef OPENTXS_CLIENT_OTWALLET_HPP
134 #define OPENTXS_CLIENT_OTWALLET_HPP
147 class OTAssetContract;
152 class OTPasswordData;
155 class OTServerContract;
163 typedef std::map<std::string, std::shared_ptr<OTSymmetricKey>>
179 bool bChecking =
false,
180 const char* szFuncName =
nullptr,
183 const char* szFuncName =
nullptr);
186 const char* szFuncName =
nullptr,
193 const char* szFuncName =
nullptr);
198 const char* szFuncName =
nullptr);
219 std::string PARTIAL_ID);
224 std::string PARTIAL_ID);
232 std::string PARTIAL_ID);
236 const char* szFuncName =
nullptr);
239 std::string PARTIAL_ID);
251 return m_pWithdrawalPurse;
253 EXPORT
bool LoadWallet(
const char* szFilename =
nullptr);
254 EXPORT
bool SaveWallet(
const char* szFilename =
nullptr);
282 const OTString* pstrDisplay =
nullptr,
283 bool bBookends =
true);
288 const OTString* pstrDisplay =
nullptr);
290 const std::string& str_KeyID,
291 const std::string* pReason =
nullptr);
292 EXPORT std::shared_ptr<OTSymmetricKey>
getExtraKey(
293 const std::string& str_id);
295 std::shared_ptr<OTSymmetricKey> pKey);
357 Purse* m_pWithdrawalPurse;
366 #endif // OPENTXS_CLIENT_OTWALLET_HPP
EXPORT bool GetNym(int32_t iIndex, OTIdentifier &NYM_ID, OTString &NYM_NAME)
EXPORT OTPseudonym * GetOrLoadPrivateNym(const OTIdentifier &NYM_ID, bool bChecking=false, const char *szFuncName=nullptr, const OTPasswordData *pPWData=nullptr, const OTPassword *pImportPassword=nullptr)
EXPORT OTAccount * GetOrLoadAccount(const OTPseudonym &theNym, const OTIdentifier &ACCT_ID, const OTIdentifier &SERVER_ID, const char *szFuncName=nullptr)
EXPORT int32_t GetAccountCount()
EXPORT bool IsNymOnCachedKey(const OTIdentifier &needle) const
EXPORT bool Encrypt_ByKeyID(const std::string &key_id, const OTString &strPlaintext, OTString &strOutput, const OTString *pstrDisplay=nullptr, bool bBookends=true)
EXPORT bool ChangePassphrasesOnExtraKeys(const OTPassword &oldPassphrase, const OTPassword &newPassphrase)
EXPORT std::shared_ptr< OTSymmetricKey > getOrCreateExtraKey(const std::string &str_KeyID, const std::string *pReason=nullptr)
EXPORT OTAccount * GetAccountPartialMatch(std::string PARTIAL_ID)
std::map< std::string, std::shared_ptr< OTSymmetricKey > > mapOfSymmetricKeys
EXPORT OTAssetContract * GetAssetContract(const OTIdentifier &theContractID)
EXPORT void AddServerContract(const OTServerContract &theContract)
Purse * GetPendingWithdrawal() const
EXPORT void AddPendingWithdrawal(const Purse &thePurse)
bool VerifyAssetAccount(const OTPseudonym &theNym, OTAccount &theAcct, const OTIdentifier &SERVER_ID, const OTString &strAcctID, const char *szFuncName=nullptr)
EXPORT OTPseudonym * GetNymByIDPartialMatch(std::string PARTIAL_ID)
EXPORT void AddAssetContract(const OTAssetContract &theContract)
std::map< std::string, OTAssetContract * > mapOfContracts
std::map< std::string, OTPseudonym * > mapOfNyms
EXPORT OTPseudonym * GetOrLoadNym(const OTIdentifier &NYM_ID, bool bChecking=false, const char *szFuncName=nullptr, const OTPasswordData *pPWData=nullptr)
EXPORT void DisplayStatistics(OTString &strOutput)
EXPORT bool GetAccount(int32_t iIndex, OTIdentifier &THE_ID, OTString &THE_NAME)
EXPORT OTAccount * GetIssuerAccount(const OTIdentifier &theAssetTypeID)
EXPORT int32_t GetAssetTypeCount()
EXPORT bool SignContractWithFirstNymOnList(OTContract &theContract)
std::map< std::string, OTServerContract * > mapOfServers
EXPORT bool RemoveAssetContract(const OTIdentifier &theTargetID)
EXPORT bool RemoveNym(const OTIdentifier &theTargetID)
EXPORT std::shared_ptr< OTSymmetricKey > getExtraKey(const std::string &str_id)
void RemovePendingWithdrawal()
EXPORT bool addExtraKey(const std::string &str_id, std::shared_ptr< OTSymmetricKey > pKey)
EXPORT bool ConvertNymToCachedKey(OTPseudonym &theNym)
EXPORT int32_t GetServerCount()
EXPORT OTPseudonym * GetNymByID(const OTIdentifier &NYM_ID)
EXPORT bool LoadWallet(const char *szFilename=nullptr)
EXPORT bool RemoveAccount(const OTIdentifier &theTargetID)
EXPORT bool Decrypt_ByKeyID(const std::string &key_id, const OTString &strCiphertext, OTString &strOutput, const OTString *pstrDisplay=nullptr)
EXPORT OTAssetContract * GetAssetContractPartialMatch(std::string PARTIAL_ID)
std::map< std::string, OTAccount * > mapOfAccounts
EXPORT OTAccount * LoadAccount(const OTPseudonym &theNym, const OTIdentifier &ACCT_ID, const OTIdentifier &SERVER_ID, const char *szFuncName=nullptr)
EXPORT bool SaveWallet(const char *szFilename=nullptr)
EXPORT bool GetServer(int32_t iIndex, OTIdentifier &THE_ID, OTString &THE_NAME)
EXPORT OTServerContract * GetServerContractPartialMatch(std::string PARTIAL_ID)
std::set< OTIdentifier > setOfIdentifiers
EXPORT OTServerContract * GetServerContract(const OTIdentifier &SERVER_ID)
EXPORT int32_t GetNymCount()
EXPORT void AddNym(const OTPseudonym &theNym)
bool SaveContract(OTString &strContract)
EXPORT void AddAccount(const OTAccount &theAcct)
EXPORT OTPseudonym * GetOrLoadPublicNym(const OTIdentifier &NYM_ID, const char *szFuncName=nullptr)
EXPORT bool RemoveServerContract(const OTIdentifier &theTargetID)
EXPORT bool GetAssetType(int32_t iIndex, OTIdentifier &THE_ID, OTString &THE_NAME)