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

A base58-encoded secret key. More...

#include <base58.h>

+ Inheritance diagram for CBitcoinSecret:
+ Collaboration diagram for CBitcoinSecret:

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 ()
 
- 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
 

Detailed Description

A base58-encoded secret key.

Definition at line 121 of file base58.h.

Constructor & Destructor Documentation

CBitcoinSecret::CBitcoinSecret ( const CKey vchSecret)
inline

Definition at line 130 of file base58.h.

References SetKey().

+ Here is the call graph for this function:

CBitcoinSecret::CBitcoinSecret ( )
inline

Definition at line 131 of file base58.h.

Member Function Documentation

CKey CBitcoinSecret::GetKey ( )

Definition at line 255 of file base58.cpp.

References CKey::Set(), and CBase58Data::vchData.

Referenced by importprivkey(), importwallet(), and signrawtransaction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool CBitcoinSecret::SetString ( const std::string &  strSecret)

Definition at line 271 of file base58.cpp.

References SetString().

+ Here is the call graph for this function:


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