wallet_api: reject transaction file signing with hardware wallets

Reported by zkao, a tool by zkSecurity
This commit is contained in:
selsta
2026-08-03 20:44:56 +02:00
parent 83405f127d
commit eeb82456f8
+6
View File
@@ -76,6 +76,12 @@ bool UnsignedTransactionImpl::sign(const std::string &signedFileName)
m_status = Status_Error;
return false;
}
if(m_wallet.m_wallet->key_on_device())
{
m_errorString = tr("Command not supported by hardware wallet");
m_status = Status_Error;
return false;
}
std::vector<tools::wallet2::pending_tx> ptx;
try
{