Qt: Get the private key for signing messages via WalletModel

This commit is contained in:
Luke Dashjr
2016-09-08 07:17:33 +00:00
parent 3cd836c1d8
commit 1880aeb033
3 changed files with 7 additions and 1 deletions

View File

@@ -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)
{