Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/wallet.h
// Copyright (c) 2018 The Bitcoin Core developers | // Copyright (c) 2018 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_INTERFACES_WALLET_H | #ifndef BITCOIN_INTERFACES_WALLET_H | ||||
#define BITCOIN_INTERFACES_WALLET_H | #define BITCOIN_INTERFACES_WALLET_H | ||||
#include <amount.h> // For Amount | #include <amount.h> // For Amount | ||||
#include <primitives/transaction.h> // For CTxOut | #include <primitives/transaction.h> // For CTxOut | ||||
#include <pubkey.h> // For CTxDestination (CKeyID and CScriptID) | #include <pubkey.h> // For CTxDestination (CKeyID and CScriptID) | ||||
#include <script/ismine.h> // For isminefilter, isminetype | #include <script/ismine.h> // For isminefilter, isminetype | ||||
#include <script/standard.h> // For CTxDestination | #include <script/standard.h> // For CTxDestination | ||||
#include <support/allocators/secure.h> // For SecureString | #include <support/allocators/secure.h> // For SecureString | ||||
#include <ui_interface.h> // For ChangeType | #include <ui_interface.h> // For ChangeType | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <functional> | #include <functional> | ||||
#include <map> | #include <map> | ||||
#include <memory> | #include <memory> | ||||
#include <string> | #include <string> | ||||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | public: | ||||
virtual bool backupWallet(const std::string &filename) = 0; | virtual bool backupWallet(const std::string &filename) = 0; | ||||
//! Get wallet name. | //! Get wallet name. | ||||
virtual std::string getWalletName() = 0; | virtual std::string getWalletName() = 0; | ||||
//! Get chainparams. | //! Get chainparams. | ||||
virtual const CChainParams &getChainParams() = 0; | virtual const CChainParams &getChainParams() = 0; | ||||
// Get key from pool. | //! Get set of addresses corresponding to a given label. | ||||
virtual std::set<CTxDestination> | |||||
getLabelAddresses(const std::string &label) = 0; | |||||
//! Get key from pool. | |||||
virtual bool getKeyFromPool(bool internal, CPubKey &pub_key) = 0; | virtual bool getKeyFromPool(bool internal, CPubKey &pub_key) = 0; | ||||
//! Get public key. | //! Get public key. | ||||
virtual bool getPubKey(const CKeyID &address, CPubKey &pub_key) = 0; | virtual bool getPubKey(const CKeyID &address, CPubKey &pub_key) = 0; | ||||
//! Get private key. | //! Get private key. | ||||
virtual bool getPrivKey(const CKeyID &address, CKey &key) = 0; | virtual bool getPrivKey(const CKeyID &address, CKey &key) = 0; | ||||
▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines |