X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fkeystore.h;h=36149ba66bb2d8305e59b104d6bffcf5bf5a7649;hb=63e4509c569f16145ab861717baf865fc6d05af1;hp=438752fa03f046b86794754c4ffce45202974712;hpb=46b969fc077d929f6e73266fe7c0b5d1f9b42e18;p=novacoin.git diff --git a/src/keystore.h b/src/keystore.h index 438752f..36149ba 100644 --- a/src/keystore.h +++ b/src/keystore.h @@ -132,7 +132,6 @@ public: KeyMap::const_iterator mi = mapKeys.find(address); if (mi != mapKeys.end()) { - keyOut.Reset(); keyOut.SetSecret((*mi).second.first, (*mi).second.second); return true; } @@ -336,6 +335,12 @@ public: 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 &malleableViewList) const