Changeset View
Changeset View
Standalone View
Standalone View
src/key.h
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | public: | ||||
//! Check whether the public key corresponding to this private key is (to | //! Check whether the public key corresponding to this private key is (to | ||||
//! be) compressed. | //! be) compressed. | ||||
bool IsCompressed() const { return fCompressed; } | bool IsCompressed() const { return fCompressed; } | ||||
//! Generate a new private key using a cryptographic PRNG. | //! Generate a new private key using a cryptographic PRNG. | ||||
void MakeNewKey(bool fCompressed); | void MakeNewKey(bool fCompressed); | ||||
//! Negate private key | |||||
bool Negate(); | |||||
/** | /** | ||||
* Convert the private key to a CPrivKey (serialized OpenSSL private key | * Convert the private key to a CPrivKey (serialized OpenSSL private key | ||||
* data). | * data). | ||||
* This is expensive. | * This is expensive. | ||||
*/ | */ | ||||
CPrivKey GetPrivKey() const; | CPrivKey GetPrivKey() const; | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |