Open-Transactions
0.93.0-ge03d287
|
#include <OTWallet.hpp>
Public Member Functions | |
EXPORT | OTWallet () |
~OTWallet () | |
EXPORT bool | IsNymOnCachedKey (const OTIdentifier &needle) const |
EXPORT bool | ConvertNymToCachedKey (OTPseudonym &theNym) |
EXPORT OTPseudonym * | GetOrLoadNym (const OTIdentifier &NYM_ID, bool bChecking=false, const char *szFuncName=nullptr, const OTPasswordData *pPWData=nullptr) |
EXPORT OTPseudonym * | GetOrLoadPublicNym (const OTIdentifier &NYM_ID, const char *szFuncName=nullptr) |
EXPORT OTPseudonym * | GetOrLoadPrivateNym (const OTIdentifier &NYM_ID, bool bChecking=false, const char *szFuncName=nullptr, const OTPasswordData *pPWData=nullptr, const OTPassword *pImportPassword=nullptr) |
EXPORT OTAccount * | LoadAccount (const OTPseudonym &theNym, const OTIdentifier &ACCT_ID, const OTIdentifier &SERVER_ID, const char *szFuncName=nullptr) |
EXPORT OTAccount * | GetOrLoadAccount (const OTPseudonym &theNym, const OTIdentifier &ACCT_ID, const OTIdentifier &SERVER_ID, const char *szFuncName=nullptr) |
EXPORT int32_t | GetNymCount () |
EXPORT int32_t | GetServerCount () |
EXPORT int32_t | GetAssetTypeCount () |
EXPORT int32_t | GetAccountCount () |
EXPORT bool | GetNym (int32_t iIndex, OTIdentifier &NYM_ID, OTString &NYM_NAME) |
EXPORT bool | GetServer (int32_t iIndex, OTIdentifier &THE_ID, OTString &THE_NAME) |
EXPORT bool | GetAssetType (int32_t iIndex, OTIdentifier &THE_ID, OTString &THE_NAME) |
EXPORT bool | GetAccount (int32_t iIndex, OTIdentifier &THE_ID, OTString &THE_NAME) |
EXPORT void | DisplayStatistics (OTString &strOutput) |
EXPORT OTPseudonym * | GetNymByID (const OTIdentifier &NYM_ID) |
EXPORT OTPseudonym * | GetNymByIDPartialMatch (std::string PARTIAL_ID) |
EXPORT void | AddServerContract (const OTServerContract &theContract) |
EXPORT OTServerContract * | GetServerContract (const OTIdentifier &SERVER_ID) |
EXPORT OTServerContract * | GetServerContractPartialMatch (std::string PARTIAL_ID) |
EXPORT void | AddNym (const OTPseudonym &theNym) |
EXPORT void | AddAccount (const OTAccount &theAcct) |
EXPORT void | AddAssetContract (const OTAssetContract &theContract) |
EXPORT OTAssetContract * | GetAssetContract (const OTIdentifier &theContractID) |
EXPORT OTAssetContract * | GetAssetContractPartialMatch (std::string PARTIAL_ID) |
bool | VerifyAssetAccount (const OTPseudonym &theNym, OTAccount &theAcct, const OTIdentifier &SERVER_ID, const OTString &strAcctID, const char *szFuncName=nullptr) |
EXPORT OTAccount * | GetAccount (const OTIdentifier &theAccountID) |
EXPORT OTAccount * | GetAccountPartialMatch (std::string PARTIAL_ID) |
EXPORT OTAccount * | GetIssuerAccount (const OTIdentifier &theAssetTypeID) |
EXPORT void | AddPendingWithdrawal (const Purse &thePurse) |
void | RemovePendingWithdrawal () |
Purse * | GetPendingWithdrawal () const |
EXPORT bool | LoadWallet (const char *szFilename=nullptr) |
EXPORT bool | SaveWallet (const char *szFilename=nullptr) |
bool | SaveContract (OTString &strContract) |
EXPORT bool | SignContractWithFirstNymOnList (OTContract &theContract) |
EXPORT bool | ChangePassphrasesOnExtraKeys (const OTPassword &oldPassphrase, const OTPassword &newPassphrase) |
EXPORT bool | Encrypt_ByKeyID (const std::string &key_id, const OTString &strPlaintext, OTString &strOutput, const OTString *pstrDisplay=nullptr, bool bBookends=true) |
EXPORT bool | Decrypt_ByKeyID (const std::string &key_id, const OTString &strCiphertext, OTString &strOutput, const OTString *pstrDisplay=nullptr) |
EXPORT std::shared_ptr < OTSymmetricKey > | getOrCreateExtraKey (const std::string &str_KeyID, const std::string *pReason=nullptr) |
EXPORT std::shared_ptr < OTSymmetricKey > | getExtraKey (const std::string &str_id) |
EXPORT bool | addExtraKey (const std::string &str_id, std::shared_ptr< OTSymmetricKey > pKey) |
EXPORT bool | RemoveAssetContract (const OTIdentifier &theTargetID) |
EXPORT bool | RemoveServerContract (const OTIdentifier &theTargetID) |
EXPORT bool | RemoveAccount (const OTIdentifier &theTargetID) |
EXPORT bool | RemoveNym (const OTIdentifier &theTargetID) |
Public Attributes | |
OTString | m_strFilename |
OTString | m_strDataFolder |
Definition at line 167 of file OTWallet.hpp.
opentxs::OTWallet::OTWallet | ( | ) |
Definition at line 157 of file OTWallet.cpp.
opentxs::OTWallet::~OTWallet | ( | ) |
Definition at line 163 of file OTWallet.cpp.
void opentxs::OTWallet::AddAccount | ( | const OTAccount & | theAcct | ) |
Definition at line 561 of file OTWallet.cpp.
void opentxs::OTWallet::AddAssetContract | ( | const OTAssetContract & | theContract | ) |
Definition at line 752 of file OTWallet.cpp.
bool opentxs::OTWallet::addExtraKey | ( | const std::string & | str_id, |
std::shared_ptr< OTSymmetricKey > | pKey | ||
) |
Definition at line 1546 of file OTWallet.cpp.
void opentxs::OTWallet::AddNym | ( | const OTPseudonym & | theNym | ) |
Definition at line 523 of file OTWallet.cpp.
void opentxs::OTWallet::AddPendingWithdrawal | ( | const Purse & | thePurse | ) |
Definition at line 232 of file OTWallet.cpp.
void opentxs::OTWallet::AddServerContract | ( | const OTServerContract & | theContract | ) |
Definition at line 725 of file OTWallet.cpp.
bool opentxs::OTWallet::ChangePassphrasesOnExtraKeys | ( | const OTPassword & | oldPassphrase, |
const OTPassword & | newPassphrase | ||
) |
Definition at line 1427 of file OTWallet.cpp.
bool opentxs::OTWallet::ConvertNymToCachedKey | ( | OTPseudonym & | theNym | ) |
Definition at line 2066 of file OTWallet.cpp.
bool opentxs::OTWallet::Decrypt_ByKeyID | ( | const std::string & | key_id, |
const OTString & | strCiphertext, | ||
OTString & | strOutput, | ||
const OTString * | pstrDisplay = nullptr |
||
) |
Definition at line 1508 of file OTWallet.cpp.
void opentxs::OTWallet::DisplayStatistics | ( | OTString & | strOutput | ) |
Definition at line 457 of file OTWallet.cpp.
bool opentxs::OTWallet::Encrypt_ByKeyID | ( | const std::string & | key_id, |
const OTString & | strPlaintext, | ||
OTString & | strOutput, | ||
const OTString * | pstrDisplay = nullptr , |
||
bool | bBookends = true |
||
) |
Definition at line 1482 of file OTWallet.cpp.
bool opentxs::OTWallet::GetAccount | ( | int32_t | iIndex, |
OTIdentifier & | THE_ID, | ||
OTString & | THE_NAME | ||
) |
Definition at line 431 of file OTWallet.cpp.
OTAccount * opentxs::OTWallet::GetAccount | ( | const OTIdentifier & | theAccountID | ) |
Definition at line 596 of file OTWallet.cpp.
int32_t opentxs::OTWallet::GetAccountCount | ( | void | ) |
Definition at line 346 of file OTWallet.cpp.
OTAccount * opentxs::OTWallet::GetAccountPartialMatch | ( | std::string | PARTIAL_ID | ) |
Definition at line 613 of file OTWallet.cpp.
OTAssetContract * opentxs::OTWallet::GetAssetContract | ( | const OTIdentifier & | theContractID | ) |
Definition at line 1203 of file OTWallet.cpp.
OTAssetContract * opentxs::OTWallet::GetAssetContractPartialMatch | ( | std::string | PARTIAL_ID | ) |
Definition at line 1218 of file OTWallet.cpp.
bool opentxs::OTWallet::GetAssetType | ( | int32_t | iIndex, |
OTIdentifier & | THE_ID, | ||
OTString & | THE_NAME | ||
) |
Definition at line 404 of file OTWallet.cpp.
int32_t opentxs::OTWallet::GetAssetTypeCount | ( | void | ) |
Definition at line 341 of file OTWallet.cpp.
std::shared_ptr< OTSymmetricKey > opentxs::OTWallet::getExtraKey | ( | const std::string & | str_id | ) |
Definition at line 1530 of file OTWallet.cpp.
OTAccount * opentxs::OTWallet::GetIssuerAccount | ( | const OTIdentifier & | theAssetTypeID | ) |
Definition at line 649 of file OTWallet.cpp.
bool opentxs::OTWallet::GetNym | ( | int32_t | iIndex, |
OTIdentifier & | NYM_ID, | ||
OTString & | NYM_NAME | ||
) |
Definition at line 352 of file OTWallet.cpp.
OTPseudonym * opentxs::OTWallet::GetNymByID | ( | const OTIdentifier & | NYM_ID | ) |
Definition at line 275 of file OTWallet.cpp.
OTPseudonym * opentxs::OTWallet::GetNymByIDPartialMatch | ( | std::string | PARTIAL_ID | ) |
Definition at line 291 of file OTWallet.cpp.
int32_t opentxs::OTWallet::GetNymCount | ( | void | ) |
Definition at line 331 of file OTWallet.cpp.
std::shared_ptr< OTSymmetricKey > opentxs::OTWallet::getOrCreateExtraKey | ( | const std::string & | str_KeyID, |
const std::string * | pReason = nullptr |
||
) |
Definition at line 1368 of file OTWallet.cpp.
OTAccount * opentxs::OTWallet::GetOrLoadAccount | ( | const OTPseudonym & | theNym, |
const OTIdentifier & | ACCT_ID, | ||
const OTIdentifier & | SERVER_ID, | ||
const char * | szFuncName = nullptr |
||
) |
Definition at line 822 of file OTWallet.cpp.
OTPseudonym * opentxs::OTWallet::GetOrLoadNym | ( | const OTIdentifier & | NYM_ID, |
bool | bChecking = false , |
||
const char * | szFuncName = nullptr , |
||
const OTPasswordData * | pPWData = nullptr |
||
) |
Definition at line 1073 of file OTWallet.cpp.
OTPseudonym * opentxs::OTWallet::GetOrLoadPrivateNym | ( | const OTIdentifier & | NYM_ID, |
bool | bChecking = false , |
||
const char * | szFuncName = nullptr , |
||
const OTPasswordData * | pPWData = nullptr , |
||
const OTPassword * | pImportPassword = nullptr |
||
) |
Definition at line 956 of file OTWallet.cpp.
OTPseudonym * opentxs::OTWallet::GetOrLoadPublicNym | ( | const OTIdentifier & | NYM_ID, |
const char * | szFuncName = nullptr |
||
) |
Definition at line 910 of file OTWallet.cpp.
|
inline |
Definition at line 249 of file OTWallet.hpp.
bool opentxs::OTWallet::GetServer | ( | int32_t | iIndex, |
OTIdentifier & | THE_ID, | ||
OTString & | THE_NAME | ||
) |
Definition at line 377 of file OTWallet.cpp.
OTServerContract * opentxs::OTWallet::GetServerContract | ( | const OTIdentifier & | SERVER_ID | ) |
Definition at line 667 of file OTWallet.cpp.
OTServerContract * opentxs::OTWallet::GetServerContractPartialMatch | ( | std::string | PARTIAL_ID | ) |
Definition at line 685 of file OTWallet.cpp.
int32_t opentxs::OTWallet::GetServerCount | ( | void | ) |
Definition at line 336 of file OTWallet.cpp.
bool opentxs::OTWallet::IsNymOnCachedKey | ( | const OTIdentifier & | needle | ) | const |
Definition at line 2147 of file OTWallet.cpp.
OTAccount * opentxs::OTWallet::LoadAccount | ( | const OTPseudonym & | theNym, |
const OTIdentifier & | ACCT_ID, | ||
const OTIdentifier & | SERVER_ID, | ||
const char * | szFuncName = nullptr |
||
) |
Definition at line 863 of file OTWallet.cpp.
bool opentxs::OTWallet::LoadWallet | ( | const char * | szFilename = nullptr | ) |
Definition at line 1617 of file OTWallet.cpp.
bool opentxs::OTWallet::RemoveAccount | ( | const OTIdentifier & | theTargetID | ) |
Definition at line 1182 of file OTWallet.cpp.
bool opentxs::OTWallet::RemoveAssetContract | ( | const OTIdentifier & | theTargetID | ) |
Definition at line 1131 of file OTWallet.cpp.
bool opentxs::OTWallet::RemoveNym | ( | const OTIdentifier & | theTargetID | ) |
Definition at line 1101 of file OTWallet.cpp.
void opentxs::OTWallet::RemovePendingWithdrawal | ( | ) |
Definition at line 245 of file OTWallet.cpp.
bool opentxs::OTWallet::RemoveServerContract | ( | const OTIdentifier & | theTargetID | ) |
Definition at line 1155 of file OTWallet.cpp.
bool opentxs::OTWallet::SaveContract | ( | OTString & | strContract | ) |
Definition at line 1252 of file OTWallet.cpp.
bool opentxs::OTWallet::SaveWallet | ( | const char * | szFilename = nullptr | ) |
Definition at line 1566 of file OTWallet.cpp.
bool opentxs::OTWallet::SignContractWithFirstNymOnList | ( | OTContract & | theContract | ) |
Definition at line 252 of file OTWallet.cpp.
bool opentxs::OTWallet::VerifyAssetAccount | ( | const OTPseudonym & | theNym, |
OTAccount & | theAcct, | ||
const OTIdentifier & | SERVER_ID, | ||
const OTString & | strAcctID, | ||
const char * | szFuncName = nullptr |
||
) |
Definition at line 777 of file OTWallet.cpp.
OTString opentxs::OTWallet::m_strDataFolder |
Definition at line 361 of file OTWallet.hpp.
OTString opentxs::OTWallet::m_strFilename |
Definition at line 360 of file OTWallet.hpp.