Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
CBase58Data Class Reference

Base class for all base58-encoded data. More...

#include <base58.h>

+ Inheritance diagram for CBase58Data:
+ Collaboration diagram for CBase58Data:

Public Member Functions

bool SetString (const char *psz, unsigned int nVersionBytes=1)
 
bool SetString (const std::string &str)
 
std::string ToString () const
 
int CompareTo (const CBase58Data &b58) const
 
bool operator== (const CBase58Data &b58) const
 
bool operator<= (const CBase58Data &b58) const
 
bool operator>= (const CBase58Data &b58) const
 
bool operator< (const CBase58Data &b58) const
 
bool operator> (const CBase58Data &b58) const
 

Protected Types

typedef std::vector< unsigned char, zero_after_free_allocator< unsigned char > > vector_uchar
 

Protected Member Functions

 CBase58Data ()
 
void SetData (const std::vector< unsigned char > &vchVersionIn, const void *pdata, size_t nSize)
 
void SetData (const std::vector< unsigned char > &vchVersionIn, const unsigned char *pbegin, const unsigned char *pend)
 

Protected Attributes

std::vector< unsigned char > vchVersion
 
vector_uchar vchData
 

Detailed Description

Base class for all base58-encoded data.

Definition at line 68 of file base58.h.

Member Typedef Documentation

typedef std::vector<unsigned char, zero_after_free_allocator<unsigned char> > CBase58Data::vector_uchar
protected

Definition at line 75 of file base58.h.

Constructor & Destructor Documentation

CBase58Data::CBase58Data ( )
protected

Definition at line 138 of file base58.cpp.

References vchData, and vchVersion.

Member Function Documentation

int CBase58Data::CompareTo ( const CBase58Data b58) const

Definition at line 180 of file base58.cpp.

References vchData, and vchVersion.

Referenced by operator<(), operator<=(), operator==(), operator>(), and operator>=().

+ Here is the caller graph for this function:

bool CBase58Data::operator< ( const CBase58Data b58) const
inline

Definition at line 91 of file base58.h.

References CompareTo().

+ Here is the call graph for this function:

bool CBase58Data::operator<= ( const CBase58Data b58) const
inline

Definition at line 89 of file base58.h.

References CompareTo().

+ Here is the call graph for this function:

bool CBase58Data::operator== ( const CBase58Data b58) const
inline

Definition at line 88 of file base58.h.

References CompareTo().

+ Here is the call graph for this function:

bool CBase58Data::operator> ( const CBase58Data b58) const
inline

Definition at line 92 of file base58.h.

References CompareTo().

+ Here is the call graph for this function:

bool CBase58Data::operator>= ( const CBase58Data b58) const
inline

Definition at line 90 of file base58.h.

References CompareTo().

+ Here is the call graph for this function:

void CBase58Data::SetData ( const std::vector< unsigned char > &  vchVersionIn,
const void *  pdata,
size_t  nSize 
)
protected

Definition at line 143 of file base58.cpp.

References memcpy(), vchData, and vchVersion.

Referenced by CBitcoinAddress::Set(), SetData(), CBitcoinSecret::SetKey(), and CBitcoinExtKeyBase< K, Size, Type >::SetKey().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CBase58Data::SetData ( const std::vector< unsigned char > &  vchVersionIn,
const unsigned char *  pbegin,
const unsigned char *  pend 
)
protected

Definition at line 150 of file base58.cpp.

References SetData().

+ Here is the call graph for this function:

bool CBase58Data::SetString ( const char *  psz,
unsigned int  nVersionBytes = 1 
)

Definition at line 154 of file base58.cpp.

References DecodeBase58Check(), memcpy(), vchData, and vchVersion.

Referenced by CBitcoinAddress::CBitcoinAddress(), mastercore::ClassB_send(), dumpprivkey(), SendMPDialog::sendMPTransaction(), SetString(), and CBitcoinSecret::SetString().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool CBase58Data::SetString ( const std::string &  str)

Definition at line 170 of file base58.cpp.

References SetString().

+ Here is the call graph for this function:

std::string CBase58Data::ToString ( ) const

Definition at line 174 of file base58.cpp.

References EncodeBase58Check(), vchData, and vchVersion.

Referenced by addmultisigaddress(), createmultisig(), TransactionRecord::decomposeTransaction(), CWallet::DelAddressBook(), dumpprivkey(), dumpwallet(), getaccountaddress(), getaddressesbyaccount(), getnewaddress(), getrawchangeaddress(), WalletModel::listCoins(), ListReceived(), MaybePushAddress(), parseTransaction(), AddressTablePriv::refreshAddressTable(), msc_AddressTablePriv::refreshAddressTable(), selectCoins(), SendMPDialog::sendMPTransaction(), CoinControlDialog::updateView(), and validateaddress().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

vector_uchar CBase58Data::vchData
protected
std::vector<unsigned char> CBase58Data::vchVersion
protected

The documentation for this class was generated from the following files: