An encapsulated private key.
More...
#include <key.h>
|
| CKey () |
|
| CKey (const CKey &secret) |
|
| ~CKey () |
|
template<typename T > |
void | Set (const T pbegin, const T pend, bool fCompressedIn) |
|
unsigned int | size () const |
|
const unsigned char * | begin () const |
|
const unsigned char * | end () const |
|
bool | IsValid () const |
|
bool | IsCompressed () const |
|
void | SetSecret (const unsigned char vchIn[32], bool fCompressed=false) |
|
bool | SetPrivKey (const CPrivKey &vchPrivKey, bool fCompressed) |
|
void | MakeNewKey (bool fCompressed) |
|
CPrivKey | GetPrivKey () const |
|
CPubKey | GetPubKey () const |
|
bool | Sign (const uint256 &hash, std::vector< unsigned char > &vchSig) const |
|
bool | SignCompact (const uint256 &hash, std::vector< unsigned char > &vchSig) const |
|
bool | Derive (CKey &keyChild, unsigned char ccChild[32], unsigned int nChild, const unsigned char cc[32]) const |
|
bool | Load (CPrivKey &privkey, CPubKey &vchPubKey, bool fSkipCheck) |
|
|
static bool | Check (const unsigned char *vch) |
|
An encapsulated private key.
Definition at line 180 of file key.h.
CKey::CKey |
( |
const CKey & |
secret | ) |
|
|
inline |
const unsigned char* CKey::begin |
( |
| ) |
const |
|
inline |
bool CKey::Check |
( |
const unsigned char * |
vch | ) |
|
|
staticprivate |
bool CKey::Derive |
( |
CKey & |
keyChild, |
|
|
unsigned char |
ccChild[32], |
|
|
unsigned int |
nChild, |
|
|
const unsigned char |
cc[32] |
|
) |
| const |
const unsigned char* CKey::end |
( |
| ) |
const |
|
inline |
bool CKey::IsCompressed |
( |
| ) |
const |
|
inline |
bool CKey::IsValid |
( |
| ) |
const |
|
inline |
bool CKey::Load |
( |
CPrivKey & |
privkey, |
|
|
CPubKey & |
vchPubKey, |
|
|
bool |
fSkipCheck = false |
|
) |
| |
void CKey::MakeNewKey |
( |
bool |
fCompressed | ) |
|
template<typename T >
void CKey::Set |
( |
const T |
pbegin, |
|
|
const T |
pend, |
|
|
bool |
fCompressedIn |
|
) |
| |
|
inline |
bool CKey::SetPrivKey |
( |
const CPrivKey & |
vchPrivKey, |
|
|
bool |
fCompressed |
|
) |
| |
void CKey::SetSecret |
( |
const unsigned char |
vchIn[32], |
|
|
bool |
fCompressed = false |
|
) |
| |
bool CKey::Sign |
( |
const uint256 & |
hash, |
|
|
std::vector< unsigned char > & |
vchSig |
|
) |
| const |
bool CKey::SignCompact |
( |
const uint256 & |
hash, |
|
|
std::vector< unsigned char > & |
vchSig |
|
) |
| const |
unsigned int CKey::size |
( |
| ) |
const |
|
inline |
bool operator== |
( |
const CKey & |
a, |
|
|
const CKey & |
b |
|
) |
| |
|
friend |
unsigned char CKey::vch[32] |
|
private |
The documentation for this class was generated from the following files: