diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2016-09-08 07:17:33 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2016-10-04 20:30:10 +0000 |
commit | 1880aeb0336324ed543c7d181c7b1509bc1cce7a (patch) | |
tree | 1a9f1cb4e841d5c3256bea034ddb04343283e1e8 /src/qt/walletmodel.cpp | |
parent | 3cd836c1d855b92e7c73ab31979f471c4f8dad68 (diff) |
Qt: Get the private key for signing messages via WalletModel
Diffstat (limited to 'src/qt/walletmodel.cpp')
-rw-r--r-- | src/qt/walletmodel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 690ea0811e..62655be517 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -563,6 +563,11 @@ bool WalletModel::havePrivKey(const CKeyID &address) const return wallet->HaveKey(address); } +bool WalletModel::getPrivKey(const CKeyID &address, CKey& vchPrivKeyOut) const +{ + return wallet->GetKey(address, vchPrivKeyOut); +} + // returns a list of COutputs from COutPoints void WalletModel::getOutputs(const std::vector<COutPoint>& vOutpoints, std::vector<COutput>& vOutputs) { |