X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fkeystore.h;h=36149ba66bb2d8305e59b104d6bffcf5bf5a7649;hb=HEAD;hp=438752fa03f046b86794754c4ffce45202974712;hpb=46b969fc077d929f6e73266fe7c0b5d1f9b42e18;p=novacoin.git diff --git a/src/keystore.h b/src/keystore.h index 438752f..46c20ca 100644 --- a/src/keystore.h +++ b/src/keystore.h @@ -7,8 +7,10 @@ #include "crypter.h" #include "sync.h" + #include -#include + +#include class CScript; @@ -25,7 +27,7 @@ public: * * A CTxDestination is the internal data type encoded in a CBitcoinAddress. */ -typedef boost::variant CTxDestination; +using CTxDestination = std::variant; /** A virtual base class for key stores */ class CKeyStore @@ -132,7 +134,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 +337,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