Changeset View
Changeset View
Standalone View
Standalone View
src/key.h
Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Verify thoroughly whether a private key and a public key match. | * Verify thoroughly whether a private key and a public key match. | ||||
* This is done using a different mechanism than just regenerating it. | * This is done using a different mechanism than just regenerating it. | ||||
* (An ECDSA signature is created then verified.) | * (An ECDSA signature is created then verified.) | ||||
*/ | */ | ||||
bool VerifyPubKey(const CPubKey &vchPubKey) const; | bool VerifyPubKey(const CPubKey &vchPubKey) const; | ||||
//! Load private key and check that public key matches. | //! Load private key and check that public key matches. | ||||
bool Load(CPrivKey &privkey, CPubKey &vchPubKey, bool fSkipCheck); | bool Load(const CPrivKey &privkey, const CPubKey &vchPubKey, | ||||
bool fSkipCheck); | |||||
}; | }; | ||||
struct CExtKey { | struct CExtKey { | ||||
uint8_t nDepth; | uint8_t nDepth; | ||||
uint8_t vchFingerprint[4]; | uint8_t vchFingerprint[4]; | ||||
unsigned int nChild; | unsigned int nChild; | ||||
ChainCode chaincode; | ChainCode chaincode; | ||||
CKey key; | CKey key; | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |