CKey: add method to negate the key

This commit is contained in:
Jonas Schnelli
2018-08-13 20:18:25 +02:00
parent 848ec5603f
commit 463921bb64
2 changed files with 9 additions and 0 deletions

View File

@@ -98,6 +98,9 @@ public:
//! Generate a new private key using a cryptographic PRNG.
void MakeNewKey(bool fCompressed);
//! Negate private key
bool Negate();
/**
* Convert the private key to a CPrivKey (serialized OpenSSL private key data).
* This is expensive.