Open-Transactions
0.93.0-ge03d287
|
#include <OTContract.hpp>
Public Member Functions | |
const char * | GetHashType () const |
void | SetIdentifier (const OTIdentifier &theID) |
EXPORT | OTContract () |
EXPORT | OTContract (const OTString &name, const OTString &foldername, const OTString &filename, const OTString &strID) |
EXPORT | OTContract (const OTString &strID) |
EXPORT | OTContract (const OTIdentifier &theID) |
void | Initialize () |
virtual EXPORT | ~OTContract () |
virtual EXPORT void | Release () |
EXPORT void | Release_Contract () |
EXPORT void | ReleaseSignatures () |
virtual EXPORT bool | CreateContract (const OTString &strContract, const OTPseudonym &theSigner) |
EXPORT bool | InsertNym (const OTString &strKeyName, const OTString &strKeyValue) |
EXPORT void | GetName (OTString &strName) const |
EXPORT void | SetName (const OTString &strName) |
virtual EXPORT bool | VerifyContract () |
virtual EXPORT void | GetIdentifier (OTIdentifier &theIdentifier) const |
virtual EXPORT void | GetIdentifier (OTString &theIdentifier) const |
EXPORT void | GetFilename (OTString &strFilename) const |
EXPORT void | GetFoldername (OTString &strFoldername) const |
virtual EXPORT bool | LoadContract () |
EXPORT bool | LoadContract (const char *szFoldername, const char *szFilename) |
EXPORT bool | LoadContractFromString (const OTString &theStr) |
bool | LoadContractRawFile () |
EXPORT bool | ParseRawFile () |
EXPORT bool | SaveToContractFolder () |
EXPORT bool | SaveContractRaw (OTString &strOutput) const |
EXPORT bool | RewriteContract (OTString &strOutput) const |
EXPORT bool | SaveContract () |
EXPORT bool | SaveContract (const char *szFoldername, const char *szFilename) |
virtual EXPORT void | UpdateContents () |
virtual EXPORT void | CreateContents () |
EXPORT void | CreateInnerContents () |
virtual EXPORT bool | SaveContents (std::ofstream &ofs) const |
virtual bool | SaveContractWallet (std::ofstream &ofs) const =0 |
virtual EXPORT bool | SaveContractWallet (OTString &strContents) const |
virtual EXPORT bool | DisplayStatistics (OTString &strContents) const |
virtual EXPORT bool | SaveContents (OTString &strContents) const |
virtual EXPORT bool | SignContract (const OTPseudonym &theNym, const OTPasswordData *pPWData=nullptr) |
EXPORT bool | SignContractAuthent (const OTPseudonym &theNym, const OTPasswordData *pPWData=nullptr) |
EXPORT bool | SignWithKey (const OTAsymmetricKey &theKey, const OTPasswordData *pPWData=nullptr) |
EXPORT bool | SignContract (const OTPseudonym &theNym, OTSignature &theSignature, const OTPasswordData *pPWData=nullptr) |
EXPORT bool | SignContractAuthent (const OTPseudonym &theNym, OTSignature &theSignature, const OTPasswordData *pPWData=nullptr) |
EXPORT bool | SignContract (const OTAsymmetricKey &theKey, OTSignature &theSignature, const OTString &strHashType, const OTPasswordData *pPWData=nullptr) |
EXPORT bool | SignContract (const char *szFoldername, const char *szFilename, OTSignature &theSignature, const OTPasswordData *pPWData=nullptr) |
virtual EXPORT bool | VerifyContractID () const |
virtual EXPORT void | CalculateContractID (OTIdentifier &newID) const |
virtual EXPORT bool | VerifySignature (const OTPseudonym &theNym, const OTPasswordData *pPWData=nullptr) const |
virtual EXPORT bool | VerifySigAuthent (const OTPseudonym &theNym, const OTPasswordData *pPWData=nullptr) const |
EXPORT bool | VerifyWithKey (const OTAsymmetricKey &theKey, const OTPasswordData *pPWData=nullptr) const |
EXPORT bool | VerifySignature (const OTPseudonym &theNym, const OTSignature &theSignature, const OTPasswordData *pPWData=nullptr) const |
EXPORT bool | VerifySigAuthent (const OTPseudonym &theNym, const OTSignature &theSignature, const OTPasswordData *pPWData=nullptr) const |
EXPORT bool | VerifySignature (const OTAsymmetricKey &theKey, const OTSignature &theSignature, const OTString &strHashType, const OTPasswordData *pPWData=nullptr) const |
EXPORT bool | VerifySignature (const char *szFoldername, const char *szFilename, const OTSignature &theSignature, const OTPasswordData *pPWData=nullptr) const |
EXPORT const OTAsymmetricKey * | GetContractPublicKey () const |
EXPORT const OTPseudonym * | GetContractPublicNym () const |
Static Public Member Functions | |
static EXPORT bool | DearmorAndTrim (const OTString &strInput, OTString &strOutput, OTString &strFirstLine) |
static bool | AddBookendsAroundContent (OTString &strOutput, const OTString &strContents, const OTString &strContractType, const OTString &strHashType, const listOfSignatures &listSignatures) |
static EXPORT bool | LoadEncodedTextField (irr::io::IrrXMLReader *&xml, OTASCIIArmor &ascOutput) |
static EXPORT bool | LoadEncodedTextField (irr::io::IrrXMLReader *&xml, OTString &strOutput) |
static bool | LoadEncodedTextFieldByName (irr::io::IrrXMLReader *&xml, OTASCIIArmor &ascOutput, const char *&szName, OTString::Map *pmapExtraVars=nullptr) |
static bool | LoadEncodedTextFieldByName (irr::io::IrrXMLReader *&xml, OTString &strOutput, const char *&szName, OTString::Map *pmapExtraVars=nullptr) |
static bool | SkipToElement (irr::io::IrrXMLReader *&xml) |
static bool | SkipToTextField (irr::io::IrrXMLReader *&xml) |
static bool | SkipAfterLoadingField (irr::io::IrrXMLReader *&xml) |
static EXPORT bool | SignFlatText (OTString &strFlatText, const OTString &strContractType, const OTPseudonym &theSigner, OTString &strOutput) |
Protected Member Functions | |
bool | LoadContractXML () |
virtual EXPORT int32_t | ProcessXMLNode (irr::io::IrrXMLReader *&xml) |
Friends | |
class | OTPayload |
Definition at line 163 of file OTContract.hpp.
opentxs::OTContract::OTContract | ( | ) |
Definition at line 203 of file OTContract.cpp.
opentxs::OTContract::OTContract | ( | const OTString & | name, |
const OTString & | foldername, | ||
const OTString & | filename, | ||
const OTString & | strID | ||
) |
Definition at line 208 of file OTContract.cpp.
opentxs::OTContract::OTContract | ( | const OTString & | strID | ) |
Definition at line 220 of file OTContract.cpp.
opentxs::OTContract::OTContract | ( | const OTIdentifier & | theID | ) |
Definition at line 227 of file OTContract.cpp.
|
virtual |
Definition at line 285 of file OTContract.cpp.
|
static |
Definition at line 1148 of file OTContract.cpp.
|
virtual |
Reimplemented in opentxs::OTScriptable, opentxs::OTSubcredential, and opentxs::Basket.
Definition at line 367 of file OTContract.cpp.
|
virtual |
Reimplemented in opentxs::OTAssetContract, opentxs::OTServerContract, and opentxs::BasketContract.
Definition at line 2384 of file OTContract.cpp.
|
virtual |
Definition at line 2095 of file OTContract.cpp.
void opentxs::OTContract::CreateInnerContents | ( | ) |
Definition at line 2230 of file OTContract.cpp.
|
static |
Definition at line 158 of file OTContract.cpp.
|
virtual |
Reimplemented in opentxs::OTAssetContract, opentxs::OTAccount, and opentxs::OTServerContract.
Definition at line 999 of file OTContract.cpp.
const OTAsymmetricKey * opentxs::OTContract::GetContractPublicKey | ( | ) | const |
Definition at line 444 of file OTContract.cpp.
const OTPseudonym * opentxs::OTContract::GetContractPublicNym | ( | ) | const |
Definition at line 413 of file OTContract.cpp.
void opentxs::OTContract::GetFilename | ( | OTString & | strFilename | ) | const |
Definition at line 307 of file OTContract.cpp.
void opentxs::OTContract::GetFoldername | ( | OTString & | strFoldername | ) | const |
Definition at line 312 of file OTContract.cpp.
|
inline |
Definition at line 264 of file OTContract.hpp.
|
virtual |
Reimplemented in opentxs::OTOffer, and opentxs::OTMarket.
Definition at line 317 of file OTContract.cpp.
|
virtual |
Definition at line 322 of file OTContract.cpp.
|
inline |
Definition at line 360 of file OTContract.hpp.
void opentxs::OTContract::Initialize | ( | ) |
Definition at line 234 of file OTContract.cpp.
Definition at line 2688 of file OTContract.cpp.
|
virtual |
Reimplemented in opentxs::Purse, opentxs::Mint, and opentxs::OTAccount.
Definition at line 1253 of file OTContract.cpp.
bool opentxs::OTContract::LoadContract | ( | const char * | szFoldername, |
const char * | szFilename | ||
) |
Definition at line 1308 of file OTContract.cpp.
bool opentxs::OTContract::LoadContractFromString | ( | const OTString & | theStr | ) |
Definition at line 1328 of file OTContract.cpp.
bool opentxs::OTContract::LoadContractRawFile | ( | ) |
Definition at line 1268 of file OTContract.cpp.
|
protected |
Definition at line 1642 of file OTContract.cpp.
|
static |
Definition at line 1896 of file OTContract.cpp.
|
static |
Definition at line 1883 of file OTContract.cpp.
|
static |
Definition at line 1986 of file OTContract.cpp.
|
static |
Definition at line 1966 of file OTContract.cpp.
bool opentxs::OTContract::ParseRawFile | ( | ) |
Definition at line 1374 of file OTContract.cpp.
|
protectedvirtual |
Reimplemented in opentxs::OTTransaction, opentxs::OTPaymentPlan, opentxs::OTAgreement, opentxs::OTSmartContract, opentxs::OTPayment, opentxs::OTSubcredential, opentxs::OTOffer, opentxs::OTItem, opentxs::OTCronItem, opentxs::OTMarket, opentxs::OTTrade, opentxs::OTCron, opentxs::OTAccount, opentxs::Token, opentxs::Purse, opentxs::OTScriptable, opentxs::OTAssetContract, opentxs::OTMasterkey, opentxs::Basket, opentxs::OTSubkey, opentxs::OTSignedFile, opentxs::OTInstrument, opentxs::OTLedger, opentxs::OTServerContract, opentxs::Mint, opentxs::BasketContract, opentxs::OTMessage, and opentxs::OTCheque.
Definition at line 2391 of file OTContract.cpp.
|
virtual |
Reimplemented in opentxs::OTTransactionType, opentxs::OTTransaction, opentxs::OTPaymentPlan, opentxs::OTAgreement, opentxs::OTSmartContract, opentxs::OTScriptable, opentxs::OTItem, opentxs::OTPayment, opentxs::OTSubcredential, opentxs::OTOffer, opentxs::OTLedger, opentxs::Purse, opentxs::OTMarket, opentxs::OTCronItem, opentxs::OTTrade, opentxs::OTCron, opentxs::Token, opentxs::OTKeyCredential, opentxs::Basket, opentxs::Mint, opentxs::OTCheque, opentxs::OTSignedFile, opentxs::OTAccount, opentxs::OTTrackable, and opentxs::OTInstrument.
Definition at line 277 of file OTContract.cpp.
void opentxs::OTContract::Release_Contract | ( | ) |
Definition at line 249 of file OTContract.cpp.
void opentxs::OTContract::ReleaseSignatures | ( | ) |
Definition at line 989 of file OTContract.cpp.
bool opentxs::OTContract::RewriteContract | ( | OTString & | strOutput | ) | const |
Definition at line 1196 of file OTContract.cpp.
|
virtual |
Definition at line 1016 of file OTContract.cpp.
|
virtual |
Definition at line 1024 of file OTContract.cpp.
bool opentxs::OTContract::SaveContract | ( | ) |
Definition at line 1032 of file OTContract.cpp.
bool opentxs::OTContract::SaveContract | ( | const char * | szFoldername, |
const char * | szFilename | ||
) |
Definition at line 1206 of file OTContract.cpp.
bool opentxs::OTContract::SaveContractRaw | ( | OTString & | strOutput | ) | const |
Definition at line 1140 of file OTContract.cpp.
|
pure virtual |
Implemented in opentxs::OTTransactionType, opentxs::OTTransaction, opentxs::OTPaymentPlan, opentxs::OTItem, opentxs::OTAgreement, opentxs::OTSmartContract, opentxs::OTScriptable, opentxs::Token, opentxs::OTPayment, opentxs::OTSubcredential, opentxs::OTLedger, opentxs::OTOffer, opentxs::Purse, opentxs::OTMarket, opentxs::OTTrade, opentxs::OTCron, opentxs::Mint, opentxs::OTCheque, opentxs::OTAssetContract, opentxs::Basket, opentxs::OTSignedFile, opentxs::OTAccount, opentxs::OTServerContract, opentxs::OTInstrument, and opentxs::OTMessage.
|
virtual |
Reimplemented in opentxs::OTAssetContract, opentxs::OTAccount, and opentxs::OTServerContract.
Definition at line 1009 of file OTContract.cpp.
bool opentxs::OTContract::SaveToContractFolder | ( | ) |
Definition at line 291 of file OTContract.cpp.
|
inline |
Definition at line 268 of file OTContract.hpp.
|
inline |
Definition at line 364 of file OTContract.hpp.
|
virtual |
Reimplemented in opentxs::OTMessage.
Definition at line 484 of file OTContract.cpp.
bool opentxs::OTContract::SignContract | ( | const OTPseudonym & | theNym, |
OTSignature & | theSignature, | ||
const OTPasswordData * | pPWData = nullptr |
||
) |
Definition at line 532 of file OTContract.cpp.
bool opentxs::OTContract::SignContract | ( | const OTAsymmetricKey & | theKey, |
OTSignature & | theSignature, | ||
const OTString & | strHashType, | ||
const OTPasswordData * | pPWData = nullptr |
||
) |
Definition at line 642 of file OTContract.cpp.
bool opentxs::OTContract::SignContract | ( | const char * | szFoldername, |
const char * | szFilename, | ||
OTSignature & | theSignature, | ||
const OTPasswordData * | pPWData = nullptr |
||
) |
Definition at line 681 of file OTContract.cpp.
bool opentxs::OTContract::SignContractAuthent | ( | const OTPseudonym & | theNym, |
const OTPasswordData * | pPWData = nullptr |
||
) |
Definition at line 508 of file OTContract.cpp.
bool opentxs::OTContract::SignContractAuthent | ( | const OTPseudonym & | theNym, |
OTSignature & | theSignature, | ||
const OTPasswordData * | pPWData = nullptr |
||
) |
Definition at line 541 of file OTContract.cpp.
|
static |
Definition at line 1076 of file OTContract.cpp.
bool opentxs::OTContract::SignWithKey | ( | const OTAsymmetricKey & | theKey, |
const OTPasswordData * | pPWData = nullptr |
||
) |
Definition at line 561 of file OTContract.cpp.
|
static |
Definition at line 1829 of file OTContract.cpp.
|
static |
Definition at line 1723 of file OTContract.cpp.
|
static |
Definition at line 1775 of file OTContract.cpp.
|
virtual |
Reimplemented in opentxs::OTTransaction, opentxs::OTPaymentPlan, opentxs::OTAgreement, opentxs::OTSmartContract, opentxs::OTScriptable, opentxs::OTSubcredential, opentxs::OTOffer, opentxs::OTItem, opentxs::OTMarket, opentxs::OTTrade, opentxs::OTCron, opentxs::Token, opentxs::Mint, opentxs::OTAccount, opentxs::OTCheque, opentxs::OTPayment, opentxs::Basket, opentxs::OTMasterkey, opentxs::OTSignedFile, opentxs::OTSubkey, opentxs::Purse, opentxs::OTLedger, opentxs::OTTrackable, and opentxs::OTMessage.
Definition at line 1050 of file OTContract.cpp.
|
virtual |
Reimplemented in opentxs::OTSubcredential.
Definition at line 330 of file OTContract.cpp.
|
virtual |
Reimplemented in opentxs::OTTransactionType, opentxs::Mint, and opentxs::OTMessage.
Definition at line 379 of file OTContract.cpp.
|
virtual |
Definition at line 788 of file OTContract.cpp.
bool opentxs::OTContract::VerifySigAuthent | ( | const OTPseudonym & | theNym, |
const OTSignature & | theSignature, | ||
const OTPasswordData * | pPWData = nullptr |
||
) | const |
Definition at line 878 of file OTContract.cpp.
|
virtual |
Reimplemented in opentxs::OTMessage.
Definition at line 818 of file OTContract.cpp.
bool opentxs::OTContract::VerifySignature | ( | const OTPseudonym & | theNym, |
const OTSignature & | theSignature, | ||
const OTPasswordData * | pPWData = nullptr |
||
) | const |
Definition at line 923 of file OTContract.cpp.
bool opentxs::OTContract::VerifySignature | ( | const OTAsymmetricKey & | theKey, |
const OTSignature & | theSignature, | ||
const OTString & | strHashType, | ||
const OTPasswordData * | pPWData = nullptr |
||
) | const |
Definition at line 962 of file OTContract.cpp.
bool opentxs::OTContract::VerifySignature | ( | const char * | szFoldername, |
const char * | szFilename, | ||
const OTSignature & | theSignature, | ||
const OTPasswordData * | pPWData = nullptr |
||
) | const |
Definition at line 738 of file OTContract.cpp.
bool opentxs::OTContract::VerifyWithKey | ( | const OTAsymmetricKey & | theKey, |
const OTPasswordData * | pPWData = nullptr |
||
) | const |
Definition at line 848 of file OTContract.cpp.
|
friend |
Definition at line 165 of file OTContract.hpp.
|
protected |
Definition at line 172 of file OTContract.hpp.
|
protected |
Definition at line 199 of file OTContract.hpp.
|
protected |
Definition at line 210 of file OTContract.hpp.
|
protected |
Definition at line 181 of file OTContract.hpp.
|
protected |
Definition at line 178 of file OTContract.hpp.
|
protected |
Definition at line 209 of file OTContract.hpp.
|
protected |
Definition at line 208 of file OTContract.hpp.
|
protected |
Definition at line 207 of file OTContract.hpp.
|
protected |
Definition at line 171 of file OTContract.hpp.
|
protected |
Definition at line 169 of file OTContract.hpp.
|
protected |
Definition at line 168 of file OTContract.hpp.
|
protected |
Definition at line 176 of file OTContract.hpp.
|
protected |
Definition at line 177 of file OTContract.hpp.
|
protected |
Definition at line 201 of file OTContract.hpp.
|
protected |
Definition at line 174 of file OTContract.hpp.