hdac SDK
SDK for hdac blockchain development
Public 멤버 함수 | 정적 Public 멤버 함수 | Friends | 모든 멤버 목록
CPubKey 클래스 참조

#include <pubkey.h>

Public 멤버 함수

 CPubKey ()
 Construct an invalid public key.
 
template<typename T >
void Set (const T pbegin, const T pend)
 Initialize a public key using begin/end iterators to byte data.
 
template<typename T >
 CPubKey (const T pbegin, const T pend)
 Construct a public key using begin/end iterators to byte data.
 
 CPubKey (const std::vector< unsigned char > &vch)
 Construct a public key from a byte vector.
 
unsigned int size () const
 Simple read-only vector-like interface to the pubkey data.
 
const unsigned char * begin () const
 
const unsigned char * end () const
 
const unsigned char & operator[] (unsigned int pos) const
 
unsigned int GetSerializeSize (int nType, int nVersion) const
 Implement serialization, as if this was a byte vector.
 
template<typename Stream >
void Serialize (Stream &s, int nType, int nVersion) const
 
template<typename Stream >
void Unserialize (Stream &s, int nType, int nVersion)
 
CKeyID GetID () const
 Get the KeyID of this public key (hash of its serialization)
 
uint256 GetHash () const
 Get the 256-bit hash of this public key.
 
bool IsValid () const
 
bool IsFullyValid () const
 fully validate whether this is a valid public key (more expensive than IsValid())
 
bool IsCompressed () const
 Check whether this is a compressed public key.
 
bool Verify (const uint256 &hash, const std::vector< unsigned char > &vchSig) const
 
bool RecoverCompact (const uint256 &hash, const std::vector< unsigned char > &vchSig)
 Recover a public key from a compact signature.
 
bool Decompress ()
 Turn this public key into an uncompressed public key.
 
bool Derive (CPubKey &pubkeyChild, ChainCode &ccChild, unsigned int nChild, const ChainCode &cc) const
 Derive BIP32 child pubkey.
 

정적 Public 멤버 함수

static bool CheckLowS (const std::vector< unsigned char > &vchSig)
 

Friends

bool operator== (const CPubKey &a, const CPubKey &b)
 Comparator implementation.
 
bool operator!= (const CPubKey &a, const CPubKey &b)
 
bool operator< (const CPubKey &a, const CPubKey &b)
 

상세한 설명

An encapsulated public key.

멤버 함수 문서화

bool CPubKey::CheckLowS ( const std::vector< unsigned char > &  vchSig)
static

Check whether a signature is normalized (lower-S).

bool CPubKey::Verify ( const uint256 hash,
const std::vector< unsigned char > &  vchSig 
) const

Verify a DER signature (~72 bytes). If this public key is not fully valid, the return value will be false.


이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: