![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
A base58-encoded secret key. More...
#include <base58.h>
Public Member Functions | |
void | SetKey (const CKey &vchSecret) |
CKey | GetKey () |
bool | IsValid () const |
bool | SetString (const char *pszSecret) |
bool | SetString (const std::string &strSecret) |
CBitcoinSecret (const CKey &vchSecret) | |
CBitcoinSecret () | |
![]() | |
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 | |
![]() | |
typedef std::vector< unsigned char, zero_after_free_allocator< unsigned char > > | vector_uchar |
![]() | |
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) |
![]() | |
std::vector< unsigned char > | vchVersion |
vector_uchar | vchData |
|
inline |
CKey CBitcoinSecret::GetKey | ( | ) |
Definition at line 255 of file base58.cpp.
References CKey::Set(), and CBase58Data::vchData.
Referenced by importprivkey(), importwallet(), and signrawtransaction().
bool CBitcoinSecret::IsValid | ( | ) | const |
Definition at line 261 of file base58.cpp.
References CChainParams::Base58Prefix(), Params(), CChainParams::SECRET_KEY, CBase58Data::vchData, and CBase58Data::vchVersion.
Referenced by SetString().
void CBitcoinSecret::SetKey | ( | const CKey & | vchSecret | ) |
Definition at line 248 of file base58.cpp.
References CKey::begin(), CKey::IsCompressed(), CKey::IsValid(), Params(), CChainParams::SECRET_KEY, CBase58Data::SetData(), CKey::size(), and CBase58Data::vchData.
Referenced by CBitcoinSecret().
bool CBitcoinSecret::SetString | ( | const char * | pszSecret | ) |
Definition at line 267 of file base58.cpp.
References IsValid(), and CBase58Data::SetString().
Referenced by importprivkey(), importwallet(), SetString(), and signrawtransaction().
bool CBitcoinSecret::SetString | ( | const std::string & | strSecret | ) |
Definition at line 271 of file base58.cpp.
References SetString().