[][src]Function ledger_hw_app_btc::wallet::untrusted_hash_sign

pub async fn untrusted_hash_sign<'_, '_, T: Transport + Sync>(
    transport: &'_ T,
    path: &'_ DerivationPath,
    lock_time: u32,
    sighash_type: SigHashType,
    pin: Option<String>
) -> Result<Vec<u8>, AppError<T::Error>>

This command is used to sign a given secure hash using a private key (after re-hashing it following the standard Bitcoin signing process) to finalize a transaction input signing process. This command will be rejected if the transaction signing state is not consistent or if a user validation is required and the provided user validation code is not correct.