Dash Core  0.12.2.1
P2P Digital Currency
privatesend-util.h
Go to the documentation of this file.
1 // Copyright (c) 2014-2017 The Dash Core developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef PRIVATESENDUTIL_H
6 #define PRIVATESENDUTIL_H
7 
8 #include "wallet/wallet.h"
9 
11 {
12 private:
15 public:
16  CKeyHolder(CWallet* pwalletIn);
17  CKeyHolder(CKeyHolder&&) = default;
18  CKeyHolder& operator=(CKeyHolder&&) = default;
19  void KeepKey();
20  void ReturnKey();
21 
23 
24 };
25 
27 {
28 private:
29  std::vector<std::unique_ptr<CKeyHolder> > storage;
30 
31 public:
32  const CKeyHolder& AddKey(CWallet* pwalletIn);
33  void KeepAll();
34  void ReturnAll();
35 
36 };
37 #endif //PRIVATESENDUTIL_H
const CKeyHolder & AddKey(CWallet *pwalletIn)
std::vector< std::unique_ptr< CKeyHolder > > storage
CPubKey pubKey
CReserveKey reserveKey
Definition: pubkey.h:37
CKeyHolder & operator=(CKeyHolder &&)=default
CKeyHolder(CWallet *pwalletIn)
CScript GetScriptForDestination() const