4 个版本 (重大更改)
| 新 0.5.0 | 2024 年 8 月 25 日 |
|---|---|
| 0.4.0 | 2024 年 7 月 22 日 |
| 0.3.0 | 2024 年 6 月 15 日 |
| 0.2.0 | 2024 年 5 月 23 日 |
#4 in #hwi
每月 125 次下载
590KB
10K SLoC
BDK HWI 签署者
此包包含 HWISigner,这是用于硬件钱包的 TransactionSigner 实现。
lib.rs:
HWI 签署者
此包包含 HWISigner,这是用于硬件钱包的 TransactionSigner 实现。
#
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),
);
依赖项
~17–23MB
~259K SLoC