Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

⚠️ The interface is not finalized 🚧 and currently specific to our needs with Liana

License

NotificationsYou must be signed in to change notification settings

wizardsardine/async-hwi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CurrentMinimum Supported Rust Version: v1.71.1

/// HWI is the common Hardware Wallet Interface.#[async_trait]pubtraitHWI:Debug{/// 0. Return the device kindfndevice_kind(&self) ->DeviceKind;/// 1. Application version or OS version.asyncfnget_version(&self) ->Result<Version,Error>;/// 2. Get master fingerprint.asyncfnget_master_fingerprint(&self) ->Result<Fingerprint,Error>;/// 3. Get the xpub with the given derivation path.asyncfnget_extended_pubkey(&self,path:&DerivationPath) ->Result<Xpub,Error>;/// 4. Register a new wallet policyasyncfnregister_wallet(&self,name:&str,policy:&str) ->Result<Option<[u8;32]>,Error>;/// 5. Returns true if the wallet is registeredasyncfnis_wallet_registered(&self,name:&str,policy:&str) ->Result<bool,HWIError>;/// 6. Display an address on the device screenasyncfndisplay_address(&self,script:&AddressScript) ->Result<(),Error>;/// 7. Sign a partially signed bitcoin transaction (PSBT).asyncfnsign_tx(&self,tx:&mutPsbt) ->Result<(),Error>;}#[derive(Debug,Clone,PartialEq,Eq)]pubenumAddressScript{/// Must be a bip86 path.P2TR(DerivationPath),/// Miniscript requires the policy be loaded into the device.Miniscript{index:u32,change:bool},}

Supported devices

A Empty case means the method is unimplemented on the client or device side.

device1234567
BitBox021>= v9.15.0>= v9.15.0>= v9.15.0>= v9.15.0>= v9.15.0>= v9.15.0>= v9.15.0
Coldcard2>= v6.2.1X>= v6.2.1X>= v6.2.1X>= v6.2.1X>= v6.2.1X>= v6.2.1X>= v6.2.1X
Jade3>= v1.0.30>= v1.0.30>= v1.0.30>= v1.0.30>= v1.0.30>= v1.0.30>= v1.0.30
Ledger Nano S/S+4>= v2.1.2>= v2.1.2>= v2.1.2>= v2.1.2*check hmac presence>= v2.1.2>= v2.1.2
Specter5>= v1.8.0>= v1.8.0>= v1.8.0>= v1.8.0

Footnotes

  1. https://github.com/digitalbitbox/bitbox02-firmware

  2. https://github.com/alfred-hodler/rust-coldcard

  3. https://github.com/Blockstream/Jade

  4. https://github.com/LedgerHQ/app-bitcoin-new

  5. https://github.com/cryptoadvance/specter-diy

About

⚠️ The interface is not finalized 🚧 and currently specific to our needs with Liana

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp