KeyMap::const_iterator mi = mapKeys.find(address);
if (mi != mapKeys.end())
{
- keyOut.Reset();
keyOut.SetSecret((*mi).second.first, (*mi).second.second);
return true;
}
// if fUseCrypto is false, vMasterKey must be empty
bool fUseCrypto;
+ // keeps track of whether Unlock has run a thorough check before
+ bool fDecryptionThoroughlyChecked;
+
protected:
bool SetCrypted();
bool Unlock(const CKeyingMaterial& vMasterKeyIn);
public:
- CCryptoKeyStore() : fUseCrypto(false) { }
+ CCryptoKeyStore() : fUseCrypto(false), fDecryptionThoroughlyChecked(false) { }
bool IsCrypted() const
{
return false;
}
+ bool CheckOwnership(const CMalleablePubKey &mpk)
+ {
+ CMalleableKeyView view;
+ return GetMalleableView(mpk, view);
+ }
+
bool CreatePrivKey(const CPubKey &pubKeyVariant, const CPubKey &R, CKey &privKey) const;
void ListMalleableViews(std::list<CMalleableKeyView> &malleableViewList) const