diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-11-24 14:38:40 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-11-24 14:39:25 +0100 |
commit | 6582f323f084a9f758ab2958da69caeb73cd13b4 (patch) | |
tree | e2521f7a37c3304e9230d7e518985972a6aacf6e /src/key.h | |
parent | dfc8e1432a57c1516bd474a79d0fd1f65f02dd37 (diff) | |
parent | f321d6bfff4dbbb4c52d0f175a27d54b287e81ff (diff) |
Merge pull request #5224
f321d6b Add key generation/verification to ECC sanity check (Pieter Wuille)
d0c41a7 Add sanity check after key generation (Pieter Wuille)
Diffstat (limited to 'src/key.h')
-rw-r--r-- | src/key.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -137,6 +137,12 @@ public: //! Derive BIP32 child key. bool Derive(CKey& keyChild, unsigned char ccChild[32], unsigned int nChild, const unsigned char cc[32]) const; + /** + * Verify thoroughly whether a private key and a public key match. + * This is done using a different mechanism than just regenerating it. + */ + bool VerifyPubKey(const CPubKey& vchPubKey) const; + //! Load private key and check that public key matches. bool Load(CPrivKey& privkey, CPubKey& vchPubKey, bool fSkipCheck); |