logo
This is supported on crate feature hardware-signer only.
Expand description

HWI Signer

This module contains HWISigner, an implementation of a TransactionSigner to be used with hardware wallets.

let devices = HWIClient::enumerate()?;
let first_device = devices.first().expect("No devices found!");
let custom_signer = HWISigner::from_device(first_device, HWIChain::Test)?;

// Adding the hardware signer to the BDK wallet
wallet.add_signer(
    KeychainKind::External,
    SignerOrdering(200),
    Arc::new(custom_signer),
);

Structs

Custom signer for Hardware Wallets