Open-Transactions
0.93.0-ge03d287
|
#include <OTPseudonym.hpp>
Public Member Functions | |
EXPORT void | GetPrivateCredentials (OTString &strCredList, OTString::Map *pmapCredFiles=nullptr) |
EXPORT void | GetPublicCredentials (OTString &strCredList, OTString::Map *pmapCredFiles=nullptr) const |
EXPORT bool | AddNewMasterCredential (OTString &strOutputMasterCredID, const OTString *pstrSourceForNymID=nullptr, int32_t nBits=1024, const OTString::Map *pmapPrivate=nullptr, const OTString::Map *pmapPublic=nullptr, const OTPasswordData *pPWData=nullptr, bool bChangeNymID=false) |
EXPORT bool | AddNewSubkey (const OTIdentifier &idMasterCredential, int32_t nBits=1024, const OTString::Map *pmapPrivate=nullptr, const OTPasswordData *pPWData=nullptr, OTString *pstrNewID=nullptr) |
EXPORT bool | AddNewSubcredential (const OTIdentifier &idMasterCredential, const OTString::Map *pmapPrivate=nullptr, const OTString::Map *pmapPublic=nullptr, const OTPasswordData *pPWData=nullptr) |
EXPORT size_t | GetMasterCredentialCount () const |
EXPORT size_t | GetRevokedCredentialCount () const |
EXPORT OTCredential * | GetMasterCredential (const OTString &strID) |
EXPORT OTCredential * | GetRevokedCredential (const OTString &strID) |
EXPORT const OTCredential * | GetMasterCredentialByIndex (int32_t nIndex) const |
EXPORT const OTCredential * | GetRevokedCredentialByIndex (int32_t nIndex) const |
EXPORT const OTSubcredential * | GetSubcredential (const OTString &strMasterID, const OTString &strSubCredID) const |
EXPORT const OTSubcredential * | GetRevokedSubcred (const OTString &strRevokedID, const OTString &strSubCredID) const |
EXPORT bool | GetNymboxHashServerSide (const OTIdentifier &theServerID, OTIdentifier &theOutput) |
EXPORT void | SetNymboxHashServerSide (const OTIdentifier &theInput) |
EXPORT bool | GetNymboxHash (const std::string &server_id, OTIdentifier &theOutput) const |
EXPORT bool | SetNymboxHash (const std::string &server_id, const OTIdentifier &theInput) |
EXPORT bool | GetRecentHash (const std::string &server_id, OTIdentifier &theOutput) const |
EXPORT bool | SetRecentHash (const std::string &server_id, const OTIdentifier &theInput) |
EXPORT bool | GetInboxHash (const std::string &acct_id, OTIdentifier &theOutput) const |
EXPORT bool | SetInboxHash (const std::string &acct_id, const OTIdentifier &theInput) |
EXPORT bool | GetOutboxHash (const std::string &acct_id, OTIdentifier &theOutput) const |
EXPORT bool | SetOutboxHash (const std::string &acct_id, const OTIdentifier &theInput) |
EXPORT const int64_t & | GetUsageCredits () const |
EXPORT void | SetUsageCredits (const int64_t &lUsage) |
void | MarkForDeletion () |
bool | IsMarkedForDeletion () const |
void | MarkAsUndeleted () |
std::set< int64_t > & | GetSetOpenCronItems () |
std::set< std::string > & | GetSetAssetAccounts () |
OTString & | GetNymName () |
void | SetNymName (const OTString &strName) |
EXPORT | OTPseudonym () |
EXPORT | OTPseudonym (const OTIdentifier &nymID) |
EXPORT | OTPseudonym (const OTString &strNymID) |
EXPORT | OTPseudonym (const OTString &name, const OTString &filename, const OTString &nymID) |
virtual EXPORT | ~OTPseudonym () |
EXPORT void | Initialize () |
EXPORT void | ReleaseTransactionNumbers () |
EXPORT bool | VerifyPseudonym () const |
EXPORT bool | GenerateNym (int32_t nBits=1024, bool bCreateFile=true, std::string str_id_source="", std::string str_alt_location="") |
EXPORT OTItem * | GenerateTransactionStatement (const OTTransaction &theOwner) |
EXPORT bool | SetPublicKey (const OTString &strKey, bool bEscaped=true) |
EXPORT bool | SetCertificate (const OTString &strCert, bool bEscaped=true) |
EXPORT bool | SetPublicKey (const OTASCIIArmor &strKey) |
EXPORT bool | SetPrivateKey (const OTString &strKey, bool bEscaped=true) |
EXPORT bool | SetPrivateKey (const OTASCIIArmor &strKey) |
EXPORT bool | HasPublicKey () |
EXPORT bool | HasPrivateKey () |
EXPORT const OTAsymmetricKey & | GetPublicAuthKey () const |
const OTAsymmetricKey & | GetPrivateAuthKey () const |
EXPORT const OTAsymmetricKey & | GetPublicEncrKey () const |
const OTAsymmetricKey & | GetPrivateEncrKey () const |
EXPORT const OTAsymmetricKey & | GetPublicSignKey () const |
const OTAsymmetricKey & | GetPrivateSignKey () const |
EXPORT int32_t | GetPublicKeysBySignature (listOfAsymmetricKeys &listOutput, const OTSignature &theSignature, char cKeyType= '0') const |
EXPORT bool | SaveCredentialList () |
EXPORT void | SaveCredentialListToString (OTString &strOutput) |
EXPORT void | SaveCredentialsToString (OTString &strOutput, OTString::Map *pmapPubInfo=nullptr, OTString::Map *pmapPriInfo=nullptr) |
EXPORT bool | LoadCredentials (bool bLoadPrivate=false, const OTPasswordData *pPWData=nullptr, const OTPassword *pImportPassword=nullptr) |
EXPORT bool | ReEncryptPrivateCredentials (bool bImporting, const OTPasswordData *pPWData=nullptr, const OTPassword *pImportPassword=nullptr) |
EXPORT bool | LoadSignedNymfile (OTPseudonym &SIGNER_NYM) |
EXPORT bool | SaveSignedNymfile (OTPseudonym &SIGNER_NYM) |
EXPORT bool | LoadNymfile (const char *szFilename=nullptr) |
EXPORT bool | LoadFromString (const OTString &strNym, OTString::Map *pMapCredentials=nullptr, OTString *pstrReason=nullptr, const OTPassword *pImportPassword=nullptr) |
EXPORT bool | Server_PubKeyExists (OTString *pstrID=nullptr) |
EXPORT bool | LoadPublicKey () |
EXPORT bool | CertfileExists () |
EXPORT bool | Loadx509CertAndPrivateKey (bool bChecking=false, const OTPasswordData *pPWData=nullptr, const OTPassword *pImportPassword=nullptr) |
EXPORT bool | Loadx509CertAndPrivateKeyFromString (const OTString &strInput, const OTPasswordData *pPWData=nullptr, const OTPassword *pImportPassword=nullptr) |
EXPORT bool | Savex509CertAndPrivateKey (bool bCreateFile=true, const OTString *pstrReason=nullptr) |
EXPORT bool | Savex509CertAndPrivateKeyToString (OTString &strOutput, const OTString *pstrReason=nullptr) |
EXPORT bool | SavePseudonymWallet (OTString &strOutput) const |
EXPORT bool | SavePseudonymWallet (std::ofstream &ofs) const |
EXPORT bool | SavePublicKey (const OTString &strPath) const |
EXPORT bool | SavePublicKey (std::ofstream &ofs) const |
EXPORT bool | SavePseudonym () |
EXPORT bool | SavePseudonym (const char *szFoldername, const char *szFilename) |
EXPORT bool | SavePseudonym (OTString &strNym) |
EXPORT bool | SavePseudonym (std::ofstream &ofs) |
EXPORT bool | SetIdentifierByPubkey () |
EXPORT bool | CompareID (const OTIdentifier &theIdentifier) const |
EXPORT bool | CompareID (const OTPseudonym &RHS) const |
EXPORT const OTString & | GetNymIDSource () const |
EXPORT const OTString & | GetAltLocation () const |
EXPORT void | SetNymIDSource (const OTString &strSource) |
EXPORT void | SetAltLocation (const OTString &strLocation) |
EXPORT void | SerializeNymIDSource (OTString &strOutput) const |
EXPORT const OTIdentifier & | GetConstID () const |
EXPORT void | GetIdentifier (OTIdentifier &theIdentifier) const |
EXPORT void | SetIdentifier (const OTIdentifier &theIdentifier) |
EXPORT void | GetIdentifier (OTString &theIdentifier) const |
EXPORT void | SetIdentifier (const OTString &theIdentifier) |
EXPORT void | HarvestTransactionNumbers (const OTIdentifier &theServerID, OTPseudonym &SIGNER_NYM, OTPseudonym &theOtherNym, bool bSave=true) |
EXPORT void | HarvestIssuedNumbers (const OTIdentifier &theServerID, OTPseudonym &SIGNER_NYM, OTPseudonym &theOtherNym, bool bSave=false) |
EXPORT bool | ClawbackTransactionNumber (const OTIdentifier &theServerID, const int64_t &lTransClawback, bool bSave=false, OTPseudonym *pSIGNER_NYM=nullptr) |
EXPORT void | IncrementRequestNum (OTPseudonym &SIGNER_NYM, const OTString &strServerID) |
EXPORT void | OnUpdateRequestNum (OTPseudonym &SIGNER_NYM, const OTString &strServerID, int64_t lNewRequestNumber) |
EXPORT bool | GetCurrentRequestNum (const OTString &strServerID, int64_t &lReqNum) const |
EXPORT bool | GetHighestNum (const OTString &strServerID, int64_t &lHighestNum) const |
EXPORT int64_t | UpdateHighestNum (OTPseudonym &SIGNER_NYM, const OTString &strServerID, std::set< int64_t > &setNumbers, std::set< int64_t > &setOutputGood, std::set< int64_t > &setOutputBad, bool bSave=false) |
mapOfTransNums & | GetMapTransNum () |
mapOfTransNums & | GetMapIssuedNum () |
mapOfTransNums & | GetMapTentativeNum () |
mapOfTransNums & | GetMapAcknowledgedNum () |
EXPORT void | RemoveAllNumbers (const OTString *pstrServerID=nullptr, bool bRemoveHighestNum=true) |
EXPORT void | RemoveReqNumbers (const OTString *pstrServerID=nullptr) |
EXPORT bool | UnRegisterAtServer (const OTString &strServerID) |
EXPORT bool | IsRegisteredAtServer (const OTString &strServerID) const |
EXPORT bool | ResyncWithServer (const OTLedger &theNymbox, const OTPseudonym &theMessageNym) |
EXPORT bool | AddTransactionNum (OTPseudonym &SIGNER_NYM, const OTString &strServerID, int64_t lTransNum, bool bSave) |
EXPORT bool | GetNextTransactionNum (OTPseudonym &SIGNER_NYM, const OTString &strServerID, int64_t &lTransNum, bool bSave=true) |
EXPORT bool | RemoveIssuedNum (OTPseudonym &SIGNER_NYM, const OTString &strServerID, const int64_t &lTransNum, bool bSave) |
bool | RemoveTentativeNum (OTPseudonym &SIGNER_NYM, const OTString &strServerID, const int64_t &lTransNum, bool bSave) |
EXPORT bool | RemoveAcknowledgedNum (OTPseudonym &SIGNER_NYM, const OTString &strServerID, const int64_t &lRequestNum, bool bSave) |
EXPORT bool | VerifyIssuedNum (const OTString &strServerID, const int64_t &lTransNum) const |
EXPORT bool | VerifyTransactionNum (const OTString &strServerID, const int64_t &lTransNum) const |
EXPORT bool | VerifyTentativeNum (const OTString &strServerID, const int64_t &lTransNum) const |
EXPORT bool | VerifyAcknowledgedNum (const OTString &strServerID, const int64_t &lRequestNum) const |
EXPORT bool | VerifyIssuedNumbersOnNym (OTPseudonym &THE_NYM) |
EXPORT bool | VerifyTransactionStatementNumbersOnNym (OTPseudonym &THE_NYM) |
EXPORT int32_t | GetIssuedNumCount (const OTIdentifier &theServerID) const |
EXPORT int64_t | GetIssuedNum (const OTIdentifier &theServerID, int32_t nIndex) const |
EXPORT bool | AddIssuedNum (const OTString &strServerID, const int64_t &lTransNum) |
EXPORT bool | RemoveIssuedNum (OTPseudonym &SIGNER_NYM, const OTString &strServerID, const int64_t &lTransNum) |
EXPORT bool | RemoveIssuedNum (const OTString &strServerID, const int64_t &lTransNum) |
EXPORT int32_t | GetTransactionNumCount (const OTIdentifier &theServerID) const |
EXPORT int64_t | GetTransactionNum (const OTIdentifier &theServerID, int32_t nIndex) const |
EXPORT bool | AddTransactionNum (const OTString &strServerID, int64_t lTransNum) |
EXPORT bool | RemoveTransactionNum (OTPseudonym &SIGNER_NYM, const OTString &strServerID, const int64_t &lTransNum) |
EXPORT bool | RemoveTransactionNum (const OTString &strServerID, const int64_t &lTransNum) |
EXPORT int32_t | GetTentativeNumCount (const OTIdentifier &theServerID) const |
EXPORT int64_t | GetTentativeNum (const OTIdentifier &theServerID, int32_t nIndex) const |
EXPORT bool | AddTentativeNum (const OTString &strServerID, const int64_t &lTransNum) |
EXPORT bool | RemoveTentativeNum (OTPseudonym &SIGNER_NYM, const OTString &strServerID, const int64_t &lTransNum) |
EXPORT bool | RemoveTentativeNum (const OTString &strServerID, const int64_t &lTransNum) |
EXPORT int32_t | GetAcknowledgedNumCount (const OTIdentifier &theServerID) const |
EXPORT int64_t | GetAcknowledgedNum (const OTIdentifier &theServerID, int32_t nIndex) const |
EXPORT bool | AddAcknowledgedNum (const OTString &strServerID, const int64_t &lRequestNum) |
EXPORT bool | RemoveAcknowledgedNum (OTPseudonym &SIGNER_NYM, const OTString &strServerID, const int64_t &lRequestNum) |
EXPORT bool | RemoveAcknowledgedNum (const OTString &strServerID, const int64_t &lRequestNum) |
EXPORT bool | VerifyGenericNum (const mapOfTransNums &THE_MAP, const OTString &strServerID, const int64_t &lTransNum) const |
EXPORT bool | RemoveGenericNum (mapOfTransNums &THE_MAP, OTPseudonym &SIGNER_NYM, const OTString &strServerID, const int64_t &lTransNum) |
EXPORT bool | RemoveGenericNum (mapOfTransNums &THE_MAP, const OTString &strServerID, const int64_t &lTransNum) |
EXPORT bool | AddGenericNum (mapOfTransNums &THE_MAP, const OTString &strServerID, int64_t lTransNum) |
EXPORT int32_t | GetGenericNumCount (const mapOfTransNums &THE_MAP, const OTIdentifier &theServerID) const |
EXPORT int64_t | GetGenericNum (const mapOfTransNums &THE_MAP, const OTIdentifier &theServerID, int32_t nIndex) const |
EXPORT void | AddMail (OTMessage &theMessage) |
EXPORT int32_t | GetMailCount () const |
return the number of mail items available for this Nym. More... | |
EXPORT OTMessage * | GetMailByIndex (int32_t nIndex) const |
EXPORT bool | RemoveMailByIndex (int32_t nIndex) |
EXPORT void | ClearMail () |
EXPORT void | AddOutmail (OTMessage &theMessage) |
EXPORT int32_t | GetOutmailCount () const |
return the number of mail items available for this Nym. More... | |
EXPORT OTMessage * | GetOutmailByIndex (int32_t nIndex) const |
EXPORT bool | RemoveOutmailByIndex (int32_t nIndex) |
EXPORT void | ClearOutmail () |
EXPORT void | AddOutpayments (OTMessage &theMessage) |
EXPORT int32_t | GetOutpaymentsCount () const |
return the number of payments items available for this Nym. More... | |
EXPORT OTMessage * | GetOutpaymentsByIndex (int32_t nIndex) const |
EXPORT bool | RemoveOutpaymentsByIndex (int32_t nIndex, bool bDeleteIt=true) |
EXPORT void | ClearOutpayments () |
void | ClearCredentials () |
void | ClearAll () |
EXPORT void | DisplayStatistics (OTString &strOutput) |
Static Public Member Functions | |
static EXPORT OTPseudonym * | LoadPublicNym (const OTIdentifier &NYM_ID, const OTString *pstrName=nullptr, const char *szFuncName=nullptr) |
static EXPORT OTPseudonym * | LoadPrivateNym (const OTIdentifier &NYM_ID, bool bChecking=false, const OTString *pstrName=nullptr, const char *szFuncName=nullptr, const OTPasswordData *pPWData=nullptr, const OTPassword *pImportPassword=nullptr) |
static EXPORT bool | DoesCertfileExist (const OTString &strNymID) |
Definition at line 167 of file OTPseudonym.hpp.
opentxs::OTPseudonym::OTPseudonym | ( | ) |
Definition at line 6594 of file OTPseudonym.cpp.
opentxs::OTPseudonym::OTPseudonym | ( | const OTIdentifier & | nymID | ) |
Definition at line 6625 of file OTPseudonym.cpp.
opentxs::OTPseudonym::OTPseudonym | ( | const OTString & | strNymID | ) |
Definition at line 6637 of file OTPseudonym.cpp.
opentxs::OTPseudonym::OTPseudonym | ( | const OTString & | name, |
const OTString & | filename, | ||
const OTString & | nymID | ||
) |
Definition at line 6609 of file OTPseudonym.cpp.
|
virtual |
Definition at line 6703 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::AddAcknowledgedNum | ( | const OTString & | strServerID, |
const int64_t & | lRequestNum | ||
) |
Definition at line 2606 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::AddGenericNum | ( | mapOfTransNums & | THE_MAP, |
const OTString & | strServerID, | ||
int64_t | lTransNum | ||
) |
Definition at line 2271 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::AddIssuedNum | ( | const OTString & | strServerID, |
const int64_t & | lTransNum | ||
) |
Definition at line 2502 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::AddMail | ( | OTMessage & | theMessage | ) |
Though the parameter is a reference (forcing you to pass a real object), the Nym DOES take ownership of the object. Therefore it MUST be allocated on the heap, NOT the stack, or you will corrupt memory with this call.
Definition at line 1081 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::AddNewMasterCredential | ( | OTString & | strOutputMasterCredID, |
const OTString * | pstrSourceForNymID = nullptr , |
||
int32_t | nBits = 1024 , |
||
const OTString::Map * | pmapPrivate = nullptr , |
||
const OTString::Map * | pmapPublic = nullptr , |
||
const OTPasswordData * | pPWData = nullptr , |
||
bool | bChangeNymID = false |
||
) |
Definition at line 401 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::AddNewSubcredential | ( | const OTIdentifier & | idMasterCredential, |
const OTString::Map * | pmapPrivate = nullptr , |
||
const OTString::Map * | pmapPublic = nullptr , |
||
const OTPasswordData * | pPWData = nullptr |
||
) |
Definition at line 998 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::AddNewSubkey | ( | const OTIdentifier & | idMasterCredential, |
int32_t | nBits = 1024 , |
||
const OTString::Map * | pmapPrivate = nullptr , |
||
const OTPasswordData * | pPWData = nullptr , |
||
OTString * | pstrNewID = nullptr |
||
) |
Definition at line 915 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::AddOutmail | ( | OTMessage & | theMessage | ) |
Though the parameter is a reference (forcing you to pass a real object), the Nym DOES take ownership of the object. Therefore it MUST be allocated on the heap, NOT the stack, or you will corrupt memory with this call.
Definition at line 1136 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::AddOutpayments | ( | OTMessage & | theMessage | ) |
Though the parameter is a reference (forcing you to pass a real object), the Nym DOES take ownership of the object. Therefore it MUST be allocated on the heap, NOT the stack, or you will corrupt memory with this call.
Definition at line 1194 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::AddTentativeNum | ( | const OTString & | strServerID, |
const int64_t & | lTransNum | ||
) |
Definition at line 2543 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::AddTransactionNum | ( | OTPseudonym & | SIGNER_NYM, |
const OTString & | strServerID, | ||
int64_t | lTransNum, | ||
bool | bSave | ||
) |
Definition at line 2655 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::AddTransactionNum | ( | const OTString & | strServerID, |
int64_t | lTransNum | ||
) |
Definition at line 2462 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::CertfileExists | ( | ) |
Definition at line 6220 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::ClawbackTransactionNumber | ( | const OTIdentifier & | theServerID, |
const int64_t & | lTransClawback, | ||
bool | bSave = false , |
||
OTPseudonym * | pSIGNER_NYM = nullptr |
||
) |
When a number IS already on my issued list, but NOT on my available list (because I already used it on some transaction) then this function will verify that and then add it BACK to my available list. (Like if the transaction failed and I just want to get my numbers back so I can use them on a different transaction.)
Definition at line 2951 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::ClearAll | ( | ) |
Definition at line 6668 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::ClearCredentials | ( | ) |
Definition at line 6649 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::ClearMail | ( | ) |
Definition at line 1127 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::ClearOutmail | ( | ) |
Definition at line 1185 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::ClearOutpayments | ( | ) |
Definition at line 1248 of file OTPseudonym.cpp.
|
inline |
Definition at line 635 of file OTPseudonym.hpp.
bool opentxs::OTPseudonym::CompareID | ( | const OTPseudonym & | RHS | ) | const |
Definition at line 3666 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::DisplayStatistics | ( | OTString & | strOutput | ) |
Definition at line 3920 of file OTPseudonym.cpp.
|
static |
Definition at line 6208 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::GenerateNym | ( | int32_t | nBits = 1024 , |
bool | bCreateFile = true , |
||
std::string | str_id_source = "" , |
||
std::string | str_alt_location = "" |
||
) |
Definition at line 1418 of file OTPseudonym.cpp.
OTItem * opentxs::OTPseudonym::GenerateTransactionStatement | ( | const OTTransaction & | theOwner | ) |
Definition at line 1272 of file OTPseudonym.cpp.
int64_t opentxs::OTPseudonym::GetAcknowledgedNum | ( | const OTIdentifier & | theServerID, |
int32_t | nIndex | ||
) | const |
Definition at line 2420 of file OTPseudonym.cpp.
int32_t opentxs::OTPseudonym::GetAcknowledgedNumCount | ( | const OTIdentifier & | theServerID | ) | const |
Definition at line 2594 of file OTPseudonym.cpp.
|
inline |
Definition at line 645 of file OTPseudonym.hpp.
|
inline |
Definition at line 661 of file OTPseudonym.hpp.
bool opentxs::OTPseudonym::GetCurrentRequestNum | ( | const OTString & | strServerID, |
int64_t & | lReqNum | ||
) | const |
Definition at line 3318 of file OTPseudonym.cpp.
int64_t opentxs::OTPseudonym::GetGenericNum | ( | const mapOfTransNums & | THE_MAP, |
const OTIdentifier & | theServerID, | ||
int32_t | nIndex | ||
) | const |
Definition at line 2358 of file OTPseudonym.cpp.
int32_t opentxs::OTPseudonym::GetGenericNumCount | ( | const mapOfTransNums & | THE_MAP, |
const OTIdentifier & | theServerID | ||
) | const |
Definition at line 2322 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::GetHighestNum | ( | const OTString & | strServerID, |
int64_t & | lHighestNum | ||
) | const |
Definition at line 3026 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::GetIdentifier | ( | OTIdentifier & | theIdentifier | ) | const |
Definition at line 6577 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::GetIdentifier | ( | OTString & | theIdentifier | ) | const |
Definition at line 6589 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::GetInboxHash | ( | const std::string & | acct_id, |
OTIdentifier & | theOutput | ||
) | const |
Definition at line 1683 of file OTPseudonym.cpp.
int64_t opentxs::OTPseudonym::GetIssuedNum | ( | const OTIdentifier & | theServerID, |
int32_t | nIndex | ||
) | const |
Definition at line 2406 of file OTPseudonym.cpp.
int32_t opentxs::OTPseudonym::GetIssuedNumCount | ( | const OTIdentifier & | theServerID | ) | const |
Definition at line 2495 of file OTPseudonym.cpp.
OTMessage * opentxs::OTPseudonym::GetMailByIndex | ( | int32_t | nIndex | ) | const |
Definition at line 1096 of file OTPseudonym.cpp.
int32_t opentxs::OTPseudonym::GetMailCount | ( | ) | const |
return the number of mail items available for this Nym.
Definition at line 1089 of file OTPseudonym.cpp.
|
inline |
Definition at line 732 of file OTPseudonym.hpp.
|
inline |
Definition at line 724 of file OTPseudonym.hpp.
|
inline |
Definition at line 728 of file OTPseudonym.hpp.
|
inline |
Definition at line 720 of file OTPseudonym.hpp.
OTCredential * opentxs::OTPseudonym::GetMasterCredential | ( | const OTString & | strID | ) |
Definition at line 4805 of file OTPseudonym.cpp.
const OTCredential * opentxs::OTPseudonym::GetMasterCredentialByIndex | ( | int32_t | nIndex | ) | const |
Definition at line 4827 of file OTPseudonym.cpp.
size_t opentxs::OTPseudonym::GetMasterCredentialCount | ( | ) | const |
Definition at line 3473 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::GetNextTransactionNum | ( | OTPseudonym & | SIGNER_NYM, |
const OTString & | strServerID, | ||
int64_t & | lTransNum, | ||
bool | bSave = true |
||
) |
Client side. Get the next available transaction number for the serverID The lTransNum parameter is for the return value. SAVES if successful.
Definition at line 2980 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::GetNymboxHash | ( | const std::string & | server_id, |
OTIdentifier & | theOutput | ||
) | const |
Definition at line 1659 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::GetNymboxHashServerSide | ( | const OTIdentifier & | theServerID, |
OTIdentifier & | theOutput | ||
) |
Definition at line 1640 of file OTPseudonym.cpp.
|
inline |
Definition at line 641 of file OTPseudonym.hpp.
|
inline |
Definition at line 470 of file OTPseudonym.hpp.
bool opentxs::OTPseudonym::GetOutboxHash | ( | const std::string & | acct_id, |
OTIdentifier & | theOutput | ||
) | const |
Definition at line 1695 of file OTPseudonym.cpp.
OTMessage * opentxs::OTPseudonym::GetOutmailByIndex | ( | int32_t | nIndex | ) | const |
Definition at line 1151 of file OTPseudonym.cpp.
int32_t opentxs::OTPseudonym::GetOutmailCount | ( | ) | const |
return the number of mail items available for this Nym.
Definition at line 1144 of file OTPseudonym.cpp.
OTMessage * opentxs::OTPseudonym::GetOutpaymentsByIndex | ( | int32_t | nIndex | ) | const |
Definition at line 1211 of file OTPseudonym.cpp.
int32_t opentxs::OTPseudonym::GetOutpaymentsCount | ( | ) | const |
return the number of payments items available for this Nym.
Definition at line 1204 of file OTPseudonym.cpp.
const OTAsymmetricKey & opentxs::OTPseudonym::GetPrivateAuthKey | ( | ) | const |
Definition at line 6286 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::GetPrivateCredentials | ( | OTString & | strCredList, |
OTString::Map * | pmapCredFiles = nullptr |
||
) |
Definition at line 4192 of file OTPseudonym.cpp.
const OTAsymmetricKey & opentxs::OTPseudonym::GetPrivateEncrKey | ( | ) | const |
Definition at line 6327 of file OTPseudonym.cpp.
const OTAsymmetricKey & opentxs::OTPseudonym::GetPrivateSignKey | ( | ) | const |
Definition at line 6369 of file OTPseudonym.cpp.
const OTAsymmetricKey & opentxs::OTPseudonym::GetPublicAuthKey | ( | ) | const |
Definition at line 6411 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::GetPublicCredentials | ( | OTString & | strCredList, |
OTString::Map * | pmapCredFiles = nullptr |
||
) | const |
Definition at line 4160 of file OTPseudonym.cpp.
const OTAsymmetricKey & opentxs::OTPseudonym::GetPublicEncrKey | ( | ) | const |
Definition at line 6453 of file OTPseudonym.cpp.
int32_t opentxs::OTPseudonym::GetPublicKeysBySignature | ( | listOfAsymmetricKeys & | listOutput, |
const OTSignature & | theSignature, | ||
char | cKeyType = '0' |
||
) | const |
Definition at line 6548 of file OTPseudonym.cpp.
const OTAsymmetricKey & opentxs::OTPseudonym::GetPublicSignKey | ( | ) | const |
Definition at line 6494 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::GetRecentHash | ( | const std::string & | server_id, |
OTIdentifier & | theOutput | ||
) | const |
Definition at line 1671 of file OTPseudonym.cpp.
OTCredential * opentxs::OTPseudonym::GetRevokedCredential | ( | const OTString & | strID | ) |
Definition at line 4816 of file OTPseudonym.cpp.
const OTCredential * opentxs::OTPseudonym::GetRevokedCredentialByIndex | ( | int32_t | nIndex | ) | const |
Definition at line 4849 of file OTPseudonym.cpp.
size_t opentxs::OTPseudonym::GetRevokedCredentialCount | ( | ) | const |
Definition at line 3478 of file OTPseudonym.cpp.
const OTSubcredential * opentxs::OTPseudonym::GetRevokedSubcred | ( | const OTString & | strRevokedID, |
const OTString & | strSubCredID | ||
) | const |
Definition at line 4893 of file OTPseudonym.cpp.
|
inline |
Definition at line 466 of file OTPseudonym.hpp.
|
inline |
Definition at line 462 of file OTPseudonym.hpp.
const OTSubcredential * opentxs::OTPseudonym::GetSubcredential | ( | const OTString & | strMasterID, |
const OTString & | strSubCredID | ||
) | const |
Definition at line 4870 of file OTPseudonym.cpp.
int64_t opentxs::OTPseudonym::GetTentativeNum | ( | const OTIdentifier & | theServerID, |
int32_t | nIndex | ||
) | const |
Definition at line 2399 of file OTPseudonym.cpp.
int32_t opentxs::OTPseudonym::GetTentativeNumCount | ( | const OTIdentifier & | theServerID | ) | const |
Definition at line 2536 of file OTPseudonym.cpp.
int64_t opentxs::OTPseudonym::GetTransactionNum | ( | const OTIdentifier & | theServerID, |
int32_t | nIndex | ||
) | const |
Definition at line 2413 of file OTPseudonym.cpp.
int32_t opentxs::OTPseudonym::GetTransactionNumCount | ( | const OTIdentifier & | theServerID | ) | const |
Definition at line 2454 of file OTPseudonym.cpp.
|
inline |
Definition at line 439 of file OTPseudonym.hpp.
void opentxs::OTPseudonym::HarvestIssuedNumbers | ( | const OTIdentifier & | theServerID, |
OTPseudonym & | SIGNER_NYM, | ||
OTPseudonym & | theOtherNym, | ||
bool | bSave = false |
||
) |
Definition at line 2900 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::HarvestTransactionNumbers | ( | const OTIdentifier & | theServerID, |
OTPseudonym & | SIGNER_NYM, | ||
OTPseudonym & | theOtherNym, | ||
bool | bSave = true |
||
) |
OtherNym is used as container for server to send us new transaction numbers Currently unused. (old) NEW USE: Okay then, new use: This will be the function that does what the below function does (OTPseudonym::HarvestIssuedNumbers), EXCEPT it only adds numbers that aren't on the TENTATIVE list. Also, it will set the new "highest" trans num for the appropriate server, based on the new numbers being harvested.
Definition at line 2765 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::HasPrivateKey | ( | ) |
Definition at line 6233 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::HasPublicKey | ( | ) |
Definition at line 6226 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::IncrementRequestNum | ( | OTPseudonym & | SIGNER_NYM, |
const OTString & | strServerID | ||
) |
Definition at line 3354 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::Initialize | ( | ) |
Definition at line 6604 of file OTPseudonym.cpp.
|
inline |
Definition at line 451 of file OTPseudonym.hpp.
bool opentxs::OTPseudonym::IsRegisteredAtServer | ( | const OTString & | strServerID | ) | const |
Definition at line 1790 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::LoadCredentials | ( | bool | bLoadPrivate = false , |
const OTPasswordData * | pPWData = nullptr , |
||
const OTPassword * | pImportPassword = nullptr |
||
) |
Definition at line 4295 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::LoadFromString | ( | const OTString & | strNym, |
OTString::Map * | pMapCredentials = nullptr , |
||
OTString * | pstrReason = nullptr , |
||
const OTPassword * | pImportPassword = nullptr |
||
) |
Definition at line 4938 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::LoadNymfile | ( | const char * | szFilename = nullptr | ) |
Definition at line 6062 of file OTPseudonym.cpp.
|
static |
Definition at line 286 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::LoadPublicKey | ( | ) |
Definition at line 3792 of file OTPseudonym.cpp.
|
static |
Definition at line 159 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::LoadSignedNymfile | ( | OTPseudonym & | SIGNER_NYM | ) |
Definition at line 5816 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::Loadx509CertAndPrivateKey | ( | bool | bChecking = false , |
const OTPasswordData * | pPWData = nullptr , |
||
const OTPassword * | pImportPassword = nullptr |
||
) |
Definition at line 6126 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::Loadx509CertAndPrivateKeyFromString | ( | const OTString & | strInput, |
const OTPasswordData * | pPWData = nullptr , |
||
const OTPassword * | pImportPassword = nullptr |
||
) |
Definition at line 6102 of file OTPseudonym.cpp.
|
inline |
Definition at line 455 of file OTPseudonym.hpp.
|
inline |
Definition at line 447 of file OTPseudonym.hpp.
void opentxs::OTPseudonym::OnUpdateRequestNum | ( | OTPseudonym & | SIGNER_NYM, |
const OTString & | strServerID, | ||
int64_t | lNewRequestNumber | ||
) |
Definition at line 3413 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::ReEncryptPrivateCredentials | ( | bool | bImporting, |
const OTPasswordData * | pPWData = nullptr , |
||
const OTPassword * | pImportPassword = nullptr |
||
) |
Definition at line 4092 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::ReleaseTransactionNumbers | ( | ) |
Definition at line 1856 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::RemoveAcknowledgedNum | ( | OTPseudonym & | SIGNER_NYM, |
const OTString & | strServerID, | ||
const int64_t & | lRequestNum, | ||
bool | bSave | ||
) |
Definition at line 2740 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::RemoveAcknowledgedNum | ( | OTPseudonym & | SIGNER_NYM, |
const OTString & | strServerID, | ||
const int64_t & | lRequestNum | ||
) |
Definition at line 2573 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::RemoveAcknowledgedNum | ( | const OTString & | strServerID, |
const int64_t & | lRequestNum | ||
) |
Definition at line 2581 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::RemoveAllNumbers | ( | const OTString * | pstrServerID = nullptr , |
bool | bRemoveHighestNum = true |
||
) |
Definition at line 1549 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::RemoveGenericNum | ( | mapOfTransNums & | THE_MAP, |
OTPseudonym & | SIGNER_NYM, | ||
const OTString & | strServerID, | ||
const int64_t & | lTransNum | ||
) |
Definition at line 2208 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::RemoveGenericNum | ( | mapOfTransNums & | THE_MAP, |
const OTString & | strServerID, | ||
const int64_t & | lTransNum | ||
) |
Definition at line 2227 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::RemoveIssuedNum | ( | OTPseudonym & | SIGNER_NYM, |
const OTString & | strServerID, | ||
const int64_t & | lTransNum, | ||
bool | bSave | ||
) |
Definition at line 2713 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::RemoveIssuedNum | ( | OTPseudonym & | SIGNER_NYM, |
const OTString & | strServerID, | ||
const int64_t & | lTransNum | ||
) |
Definition at line 2480 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::RemoveIssuedNum | ( | const OTString & | strServerID, |
const int64_t & | lTransNum | ||
) |
Definition at line 2487 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::RemoveMailByIndex | ( | int32_t | nIndex | ) |
Definition at line 1107 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::RemoveOutmailByIndex | ( | int32_t | nIndex | ) |
Definition at line 1163 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::RemoveOutpaymentsByIndex | ( | int32_t | nIndex, |
bool | bDeleteIt = true |
||
) |
Definition at line 1224 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::RemoveReqNumbers | ( | const OTString * | pstrServerID = nullptr | ) |
Definition at line 1769 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::RemoveTentativeNum | ( | OTPseudonym & | SIGNER_NYM, |
const OTString & | strServerID, | ||
const int64_t & | lTransNum, | ||
bool | bSave | ||
) |
Definition at line 2687 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::RemoveTentativeNum | ( | OTPseudonym & | SIGNER_NYM, |
const OTString & | strServerID, | ||
const int64_t & | lTransNum | ||
) |
Definition at line 2520 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::RemoveTentativeNum | ( | const OTString & | strServerID, |
const int64_t & | lTransNum | ||
) |
Definition at line 2528 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::RemoveTransactionNum | ( | OTPseudonym & | SIGNER_NYM, |
const OTString & | strServerID, | ||
const int64_t & | lTransNum | ||
) |
Definition at line 2438 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::RemoveTransactionNum | ( | const OTString & | strServerID, |
const int64_t & | lTransNum | ||
) |
Definition at line 2445 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::ResyncWithServer | ( | const OTLedger & | theNymbox, |
const OTPseudonym & | theMessageNym | ||
) |
Definition at line 1990 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::SaveCredentialList | ( | ) |
Definition at line 4255 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::SaveCredentialListToString | ( | OTString & | strOutput | ) |
Definition at line 4235 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::SaveCredentialsToString | ( | OTString & | strOutput, |
OTString::Map * | pmapPubInfo = nullptr , |
||
OTString::Map * | pmapPriInfo = nullptr |
||
) |
Definition at line 4373 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::SavePseudonym | ( | ) |
Definition at line 4047 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::SavePseudonym | ( | const char * | szFoldername, |
const char * | szFilename | ||
) |
Definition at line 4061 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::SavePseudonym | ( | OTString & | strNym | ) |
Definition at line 4410 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::SavePseudonym | ( | std::ofstream & | ofs | ) |
Definition at line 4079 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::SavePseudonymWallet | ( | OTString & | strOutput | ) | const |
Definition at line 3671 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::SavePseudonymWallet | ( | std::ofstream & | ofs | ) | const |
Definition at line 3691 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::SavePublicKey | ( | const OTString & | strPath | ) | const |
Definition at line 3705 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::SavePublicKey | ( | std::ofstream & | ofs | ) | const |
Definition at line 3745 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::SaveSignedNymfile | ( | OTPseudonym & | SIGNER_NYM | ) |
Definition at line 5870 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::Savex509CertAndPrivateKey | ( | bool | bCreateFile = true , |
const OTString * | pstrReason = nullptr |
||
) |
Definition at line 1356 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::Savex509CertAndPrivateKeyToString | ( | OTString & | strOutput, |
const OTString * | pstrReason = nullptr |
||
) |
Definition at line 1350 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::SerializeNymIDSource | ( | OTString & | strOutput | ) | const |
Definition at line 4213 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::Server_PubKeyExists | ( | OTString * | pstrID = nullptr | ) |
Definition at line 3772 of file OTPseudonym.cpp.
|
inline |
Definition at line 655 of file OTPseudonym.hpp.
bool opentxs::OTPseudonym::SetCertificate | ( | const OTString & | strCert, |
bool | bEscaped = true |
||
) |
Definition at line 6242 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::SetIdentifier | ( | const OTIdentifier & | theIdentifier | ) |
Definition at line 6571 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::SetIdentifier | ( | const OTString & | theIdentifier | ) |
Definition at line 6583 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::SetIdentifierByPubkey | ( | ) |
Definition at line 1516 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::SetInboxHash | ( | const std::string & | acct_id, |
const OTIdentifier & | theInput | ||
) |
Definition at line 1689 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::SetNymboxHash | ( | const std::string & | server_id, |
const OTIdentifier & | theInput | ||
) |
Definition at line 1665 of file OTPseudonym.cpp.
void opentxs::OTPseudonym::SetNymboxHashServerSide | ( | const OTIdentifier & | theInput | ) |
Definition at line 1653 of file OTPseudonym.cpp.
|
inline |
Definition at line 651 of file OTPseudonym.hpp.
|
inline |
Definition at line 474 of file OTPseudonym.hpp.
bool opentxs::OTPseudonym::SetOutboxHash | ( | const std::string & | acct_id, |
const OTIdentifier & | theInput | ||
) |
Definition at line 1701 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::SetPrivateKey | ( | const OTString & | strKey, |
bool | bEscaped = true |
||
) |
Definition at line 6270 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::SetPrivateKey | ( | const OTASCIIArmor & | strKey | ) |
Definition at line 6279 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::SetPublicKey | ( | const OTString & | strKey, |
bool | bEscaped = true |
||
) |
Definition at line 6251 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::SetPublicKey | ( | const OTASCIIArmor & | strKey | ) |
Definition at line 6259 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::SetRecentHash | ( | const std::string & | server_id, |
const OTIdentifier & | theInput | ||
) |
Definition at line 1677 of file OTPseudonym.cpp.
|
inline |
Definition at line 443 of file OTPseudonym.hpp.
bool opentxs::OTPseudonym::UnRegisterAtServer | ( | const OTString & | strServerID | ) |
Definition at line 1819 of file OTPseudonym.cpp.
int64_t opentxs::OTPseudonym::UpdateHighestNum | ( | OTPseudonym & | SIGNER_NYM, |
const OTString & | strServerID, | ||
std::set< int64_t > & | setNumbers, | ||
std::set< int64_t > & | setOutputGood, | ||
std::set< int64_t > & | setOutputBad, | ||
bool | bSave = false |
||
) |
Definition at line 3076 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::VerifyAcknowledgedNum | ( | const OTString & | strServerID, |
const int64_t & | lRequestNum | ||
) | const |
Definition at line 2562 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::VerifyGenericNum | ( | const mapOfTransNums & | THE_MAP, |
const OTString & | strServerID, | ||
const int64_t & | lTransNum | ||
) | const |
Definition at line 2168 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::VerifyIssuedNum | ( | const OTString & | strServerID, |
const int64_t & | lTransNum | ||
) | const |
Definition at line 2472 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::VerifyIssuedNumbersOnNym | ( | OTPseudonym & | THE_NYM | ) |
See if two nyms have identical lists of issued transaction numbers (#s currently signed for.)
Definition at line 5917 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::VerifyPseudonym | ( | ) | const |
Definition at line 3525 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::VerifyTentativeNum | ( | const OTString & | strServerID, |
const int64_t & | lTransNum | ||
) | const |
Definition at line 2512 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::VerifyTransactionNum | ( | const OTString & | strServerID, |
const int64_t & | lTransNum | ||
) | const |
Definition at line 2430 of file OTPseudonym.cpp.
bool opentxs::OTPseudonym::VerifyTransactionStatementNumbersOnNym | ( | OTPseudonym & | THE_NYM | ) |
Definition at line 6003 of file OTPseudonym.cpp.