diff options
author | Andrew Chow <achow101-github@achow101.com> | 2018-04-12 17:04:49 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2018-05-05 00:43:04 -0400 |
commit | dd3c07acce7ab67f32a79393abf6227009bd440d (patch) | |
tree | 758ce969f58e219dc7c813f8b4229cabffd000b6 /src/keystore.h | |
parent | f82e1c94821212cc8962775a7a29599ebd92eee0 (diff) |
Separate HaveKey function that checks whether a key is in a keystore
Diffstat (limited to 'src/keystore.h')
-rw-r--r-- | src/keystore.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/keystore.h b/src/keystore.h index c56e4751de..cd5ded9203 100644 --- a/src/keystore.h +++ b/src/keystore.h @@ -80,4 +80,7 @@ typedef std::map<CKeyID, std::pair<CPubKey, std::vector<unsigned char> > > Crypt /** Return the CKeyID of the key involved in a script (if there is a unique one). */ CKeyID GetKeyForDestination(const CKeyStore& store, const CTxDestination& dest); +/** Checks if a CKey is in the given CKeyStore compressed or otherwise*/ +bool HaveKey(const CKeyStore& store, const CKey& key); + #endif // BITCOIN_KEYSTORE_H |