4 releases (breaking)

0.5.0 Aug 25, 2024
0.4.0 Jul 22, 2024
0.3.0 Jun 15, 2024
0.2.0 May 23, 2024

#4 in #hwi

Download history 2/week @ 2024-10-08 2/week @ 2024-10-29 6/week @ 2024-11-05

286 downloads per month

MIT/Apache

610KB
11K SLoC

BDK HWI Signer

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


lib.rs:

HWI Signer

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

#
let mut devices = HWIClient::enumerate()?;
if devices.is_empty() {
    panic!("No devices found!");
}
let first_device = devices.remove(0)?;
let custom_signer = HWISigner::from_device(&first_device, Network::Testnet.into())?;

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

Dependencies

~17–23MB
~275K SLoC