]> Untitled Git - bdk-cli/commit
ref(hwi): move descriptor utils into descriptor utils
authorVihiga Tyonum <withtvpeter@gmail.com>
Wed, 14 Oct 2026 23:35:05 +0000 (00:35 +0100)
committerVihiga Tyonum <withtvpeter@gmail.com>
Mon, 19 Oct 2026 09:25:02 +0000 (10:25 +0100)
commitc2466e91eb7605a71b68c334224a303deb3e9a2f
treeeed6b11d07dcf0b7deb666aff8840e1af77d0e4d
parent4131510db77240500d1df55be06b3da86bc11b52
ref(hwi): move descriptor utils into descriptor utils

- Move the single-sig script-type logic and multipath detection
  out of the HWI handler and into utils/descriptors.

- Add SingleSigScriptType (ValueEnum) with purpose/as_str/descriptor
  and from_derivation_path.
- Add is_multipath_descriptor, a wrapper over the existing
  descriptor_path_count primitive.
- Drop the contains_private_key helper; the final DescriptorPublicKey
  parse already rejects private keys.
- Add BitBox simulator endpoint as a const.
src/handlers/hwi.rs
src/handlers/offline.rs
src/utils/descriptors.rs
src/utils/hwi.rs