aboutsummaryrefslogtreecommitdiff
path: root/src/key.h
diff options
context:
space:
mode:
authorpatrick s <patrick.strateman@gmail.com>2013-08-28 23:53:26 -0700
committerpatrick s <patrick.strateman@gmail.com>2013-08-28 23:53:26 -0700
commit6e51b3bddf782f53527cf968445b298ebdec9bbc (patch)
treed7cd486a75648cbcc5e5aec9da4bbf4e21292bb6 /src/key.h
parentff33a3470dd1d1446549d02609c991c0490e0fdf (diff)
downloadbitcoin-6e51b3bddf782f53527cf968445b298ebdec9bbc.tar.xz
improve wallet load time by removing duplicated calls to EC_KEY_check_key and adding a hash for vchPubKey/vchPrivKey entries in wallet.dat
backwards compatible with previous wallet.dat format
Diffstat (limited to 'src/key.h')
-rw-r--r--src/key.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/key.h b/src/key.h
index 75431e944f..ac050356f2 100644
--- a/src/key.h
+++ b/src/key.h
@@ -261,6 +261,9 @@ public:
// Derive BIP32 child key.
bool Derive(CKey& keyChild, unsigned char ccChild[32], unsigned int nChild, const unsigned char cc[32]) const;
+
+ // Load private key and check that public key matches.
+ bool Load(CPrivKey &privkey, CPubKey &vchPubKey, bool fSkipCheck);
};
struct CExtPubKey {