• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bitcoindevkit / bdk-cli / 19253249526

11 Nov 2025 02:46AM UTC coverage: 12.147% (-2.3%) from 14.43%
19253249526

push

github

tvpeter
Merge bitcoindevkit/bdk-cli#180: Adding descriptor generator

7d3720e38 feat(desc): remove generate subcommand (Vihiga Tyonum)
32a2c8847 feat(desc):update descriptors gen to use templates (Vihiga Tyonum)
c8f23ba51 feat(descriptors): fix descriptor generation (Vihiga Tyonum)
550e81628 feat(descriptors): add multipath descs and pretty (Vihiga Tyonum)
1f77842ee fix descriptors generation (Vihiga Tyonum)
6c9c3a1bb feat: add descriptor generation (AmosOO7)

Pull request description:

  # Pull Request: Add `descriptor` Subcommand

  ## Description

  This PR introduces a new `descriptor` subcommand to the BDK CLI that enable users to generate and inspect **Bitcoin wallet descriptors** for internal and external paths, supporting common types (pkh, sh, wpkh, wsh, tr). It includes support for both **single-path** descriptors from extended keys (`xprv`/`xpub` or `tprv`/`tpub`).

  This resolves issue https://github.com/bitcoindevkit/bdk-cli/issues/175

  ## Features Implemented

  - Adds new `descriptor` subcommand with:
    - `generate` – generate new descriptors
    - Supports BIP44, BIP49, BIP84, and BIP86 script types
    - Generates **internal and external descriptors**
    - Reasonable defaults:
      - `--type` defaults to `wsh` and a short `t`
      - `--network` default `testnet`

  ---

  ## Usage Examples

  ### 1. Generate Descriptors from an Extended Private Key
  ```bash
  cargo run -- --network testnet descriptor generate --type wsh <XPRV>
  ```

  ### 2. Generate Descriptors from a Mnemonic (no key provided)
  ```bash
  cargo run -- --network testnet descriptor generate --type tr
  ```

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk-cli/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo fmt`... (continued)

0 of 224 new or added lines in 2 files covered. (0.0%)

1 existing line in 1 file now uncovered.

172 of 1416 relevant lines covered (12.15%)

0.46 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/utils.rs


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc