Skip to content

Commit a323e14

Browse files
committed
rust: sign_transaction: bitcoin: use hww code path
1 parent be2199c commit a323e14

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ga_auth_handlers.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -619,12 +619,13 @@ namespace sdk {
619619

620620
auth_handler::state_type sign_transaction_call::call_impl()
621621
{
622-
if (json_get_value(m_tx_details, "is_sweep", false) || m_net_params.is_electrum()) {
623-
// For sweep txs and electrum single sig, sign the tx in software.
622+
if (json_get_value(m_tx_details, "is_sweep", false)
623+
|| (m_net_params.is_electrum() && m_net_params.is_liquid())) {
624+
// For sweep txs and liquid electrum single sig, sign the tx in software.
624625
// TODO: Once tx aggregation is implemented, merge the sweep logic
625626
// with general tx construction to allow HW devices to sign individual
626627
// inputs (currently HW expects to sign all tx inputs)
627-
// FIXME: Sign rust txs using the standard code path
628+
// FIXME: Sign rust liquid txs using the standard code path
628629
m_result = m_session->user_sign_transaction(m_tx_details);
629630
return state_type::done;
630631
}

0 commit comments

Comments
 (0)