![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
base58-encoded Bitcoin addresses. More...
#include <base58.h>
Inheritance diagram for CBitcoinAddress:
Collaboration diagram for CBitcoinAddress:Public Member Functions | |
| bool | Set (const CKeyID &id) |
| bool | Set (const CScriptID &id) |
| bool | Set (const CTxDestination &dest) |
| bool | IsValid () const |
| CBitcoinAddress () | |
| CBitcoinAddress (const CTxDestination &dest) | |
| CBitcoinAddress (const std::string &strAddress) | |
| CBitcoinAddress (const char *pszAddress) | |
| CTxDestination | Get () const |
| bool | GetKeyID (CKeyID &keyID) const |
| bool | IsScript () const |
Public Member Functions inherited from CBase58Data | |
| 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 |
Additional Inherited Members | |
Protected Types inherited from CBase58Data | |
| typedef std::vector< unsigned char, zero_after_free_allocator< unsigned char > > | vector_uchar |
Protected Member Functions inherited from CBase58Data | |
| 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 inherited from CBase58Data | |
| std::vector< unsigned char > | vchVersion |
| vector_uchar | vchData |
base58-encoded Bitcoin addresses.
Public-key-hash-addresses have version 0 (or 111 testnet). The data vector contains RIPEMD160(SHA256(pubkey)), where pubkey is the serialized public key. Script-hash-addresses have version 5 (or 196 testnet). The data vector contains RIPEMD160(SHA256(cscript)), where cscript is the serialized redemption script.
|
inline |
|
inline |
Definition at line 110 of file base58.h.
References CBase58Data::SetString().
Here is the call graph for this function:
|
inline |
Definition at line 111 of file base58.h.
References CBase58Data::SetString().
Here is the call graph for this function:| CTxDestination CBitcoinAddress::Get | ( | ) | const |
Definition at line 222 of file base58.cpp.
References IsValid(), memcpy(), Params(), CChainParams::PUBKEY_ADDRESS, CChainParams::SCRIPT_ADDRESS, CBase58Data::vchData, and CBase58Data::vchVersion.
Referenced by mastercore::ClassB_send(), SendCoinsDialog::coinControlChangeEdited(), createrawtransaction(), getaccount(), getLabel(), getreceivedbyaddress(), IsMyAddress(), ReadKeyValue(), AddressTablePriv::refreshAddressTable(), WalletModel::saveReceiveRequest(), WalletModel::sendCoins(), sendfrom(), sendmany(), sendtoaddress(), setaccount(), TransactionDesc::toHTML(), and validateaddress().
Here is the call graph for this function:
Here is the caller graph for this function:| bool CBitcoinAddress::GetKeyID | ( | CKeyID & | keyID | ) | const |
Definition at line 235 of file base58.cpp.
References IsValid(), memcpy(), Params(), CChainParams::PUBKEY_ADDRESS, CBase58Data::vchData, and CBase58Data::vchVersion.
Referenced by _createmultisig_redeemScript(), mastercore::ClassB_send(), SendCoinsDialog::coinControlChangeEdited(), dumpprivkey(), parseTransaction(), signmessage(), and verifymessage().
Here is the call graph for this function:
Here is the caller graph for this function:| bool CBitcoinAddress::IsScript | ( | ) | const |
Definition at line 244 of file base58.cpp.
References CChainParams::Base58Prefix(), IsValid(), Params(), CChainParams::SCRIPT_ADDRESS, and CBase58Data::vchVersion.
Referenced by mastercore::ClassB_send().
Here is the call graph for this function:
Here is the caller graph for this function:| bool CBitcoinAddress::IsValid | ( | ) | const |
Definition at line 215 of file base58.cpp.
References CChainParams::Base58Prefix(), Params(), CChainParams::PUBKEY_ADDRESS, CChainParams::SCRIPT_ADDRESS, CBase58Data::vchData, and CBase58Data::vchVersion.
Referenced by _createmultisig_redeemScript(), mastercore::ClassB_send(), SendCoinsDialog::coinControlChangeEdited(), createrawtransaction(), Get(), getaccount(), GetKeyID(), getreceivedbyaddress(), IsScript(), sendfrom(), sendmany(), SendMPDialog::sendMPTransaction(), sendtoaddress(), setaccount(), signmessage(), validateaddress(), WalletModel::validateAddress(), and verifymessage().
Here is the call graph for this function:
Here is the caller graph for this function:| bool CBitcoinAddress::Set | ( | const CKeyID & | id | ) |
Definition at line 201 of file base58.cpp.
References Params(), CChainParams::PUBKEY_ADDRESS, and CBase58Data::SetData().
Referenced by CBitcoinAddress(), and MaybePushAddress().
Here is the call graph for this function:
Here is the caller graph for this function:| bool CBitcoinAddress::Set | ( | const CScriptID & | id | ) |
Definition at line 206 of file base58.cpp.
References Params(), CChainParams::SCRIPT_ADDRESS, and CBase58Data::SetData().
Here is the call graph for this function:| bool CBitcoinAddress::Set | ( | const CTxDestination & | dest | ) |
Definition at line 211 of file base58.cpp.
1.8.8