Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/wallet.h
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | public: | ||||
virtual bool getNewDestination(const OutputType type, | virtual bool getNewDestination(const OutputType type, | ||||
const std::string label, | const std::string label, | ||||
CTxDestination &dest) = 0; | CTxDestination &dest) = 0; | ||||
//! Get public key. | //! Get public key. | ||||
virtual bool getPubKey(const CScript &script, const CKeyID &address, | virtual bool getPubKey(const CScript &script, const CKeyID &address, | ||||
CPubKey &pub_key) = 0; | CPubKey &pub_key) = 0; | ||||
//! Get private key. | |||||
virtual bool getPrivKey(const CScript &script, const CKeyID &address, | |||||
CKey &key) = 0; | |||||
//! Sign message | //! Sign message | ||||
virtual SigningResult signMessage(const std::string &message, | virtual SigningResult signMessage(const std::string &message, | ||||
const PKHash &pkhash, | const PKHash &pkhash, | ||||
std::string &str_sig) = 0; | std::string &str_sig) = 0; | ||||
//! Return whether wallet has private key. | //! Return whether wallet has private key. | ||||
virtual bool isSpendable(const CTxDestination &dest) = 0; | virtual bool isSpendable(const CTxDestination &dest) = 0; | ||||
▲ Show 20 Lines • Show All 266 Lines • Show Last 20 Lines |