[][src]Function ledger_hw_app_btc::wallet::start_untrusted_hash_transaction_input

pub async fn start_untrusted_hash_transaction_input<'_, '_, '_, '_, T: Transport + Sync>(
    transport: &'_ T,
    new_tx: bool,
    version: u32,
    input_idx: usize,
    inputs: &'_ [(&'_ OutPoint, u32, u64, Option<DeviceSig>)],
    redeem_script: &'_ Script,
    have_segwit: bool
) -> Result<(), AppError<T::Error>>

This command is used to compose an opaque SHA-256 hash for a new transaction. This transaction can be verified by the user and using transaction rules according to the current dongle operation mode. If a new transaction is started, a VERIFY PIN command shall have been issued previously to unlock the dongle at least once following the dongle power up