#include "crypter.h"
#include "sync.h"
#include <boost/signals2/signal.hpp>
-#include <boost/variant.hpp>
+
+#include <variant>
class CScript;
*
* A CTxDestination is the internal data type encoded in a CBitcoinAddress.
*/
-typedef boost::variant<CNoDestination, CKeyID, CScriptID> CTxDestination;
+using CTxDestination = std::variant<CNoDestination, CKeyID, CScriptID>;
/** A virtual base class for key stores */
class CKeyStore
KeyMap::const_iterator mi = mapKeys.find(address);
if (mi != mapKeys.end())
{
- keyOut.Reset();
keyOut.SetSecret((*mi).second.first, (*mi).second.second);
return true;
}
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