Raven Core  3.0.0
P2P Digital Currency
Public Member Functions | List of all members
CRavenAddress Class Reference

base58-encoded Raven addresses. More...

#include <base58.h>

Inheritance diagram for CRavenAddress:
[legend]
Collaboration diagram for CRavenAddress:
[legend]

Public Member Functions

bool Set (const CKeyID &id)
 
bool Set (const CScriptID &id)
 
bool Set (const CTxDestination &dest)
 
bool IsValid () const
 
bool IsValid (const CChainParams &params) const
 
 CRavenAddress ()
 
 CRavenAddress (const CTxDestination &dest)
 
 CRavenAddress (const std::string &strAddress)
 
 CRavenAddress (const char *pszAddress)
 
CTxDestination Get () const
 
bool GetIndexKey (uint160 &hashBytes, int &type) 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
 the actually encoded data More...
 
- 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
 the version byte(s) More...
 
vector_uchar vchData
 

Detailed Description

base58-encoded Raven 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.

Definition at line 103 of file base58.h.

Constructor & Destructor Documentation

◆ CRavenAddress() [1/4]

CRavenAddress::CRavenAddress ( )
inline

Definition at line 111 of file base58.h.

◆ CRavenAddress() [2/4]

CRavenAddress::CRavenAddress ( const CTxDestination dest)
inline

Definition at line 112 of file base58.h.

◆ CRavenAddress() [3/4]

CRavenAddress::CRavenAddress ( const std::string &  strAddress)
inline

Definition at line 113 of file base58.h.

Here is the call graph for this function:

◆ CRavenAddress() [4/4]

CRavenAddress::CRavenAddress ( const char *  pszAddress)
inline

Definition at line 114 of file base58.h.

Here is the call graph for this function:

Member Function Documentation

◆ Get()

CTxDestination CRavenAddress::Get ( ) const

Definition at line 262 of file base58.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetIndexKey()

bool CRavenAddress::GetIndexKey ( uint160 hashBytes,
int &  type 
) const

Definition at line 276 of file base58.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsValid() [1/2]

bool CRavenAddress::IsValid ( ) const

Definition at line 249 of file base58.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsValid() [2/2]

bool CRavenAddress::IsValid ( const CChainParams params) const

Definition at line 254 of file base58.cpp.

Here is the call graph for this function:

◆ Set() [1/3]

bool CRavenAddress::Set ( const CKeyID id)

Definition at line 232 of file base58.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Set() [2/3]

bool CRavenAddress::Set ( const CScriptID id)

Definition at line 238 of file base58.cpp.

Here is the call graph for this function:

◆ Set() [3/3]

bool CRavenAddress::Set ( const CTxDestination dest)

Definition at line 244 of file base58.cpp.


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