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

bitcoindevkit / bdk-cli / 19253249526
8%

Build:
DEFAULT BRANCH: master
Ran 11 Nov 2025 02:51AM UTC
Jobs 1
Files 5
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

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

New Missed Lines in Diff

Lines Coverage ∆ File
22
15.53
-0.35% src/handlers.rs
202
0.0
0.0% src/utils.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
15.53
-0.35% src/handlers.rs
Jobs
ID Job ID Ran Files Coverage
1 19253249526.1 11 Nov 2025 02:51AM UTC 5
12.15
GitHub Action Run
Source Files on build 19253249526
  • Tree
  • List 5
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19253249526
  • 7df419af on github
  • Prev Build on master (#19028754066)
  • Next Build on master (#20377635666)
  • Delete
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

© 2025 Coveralls, Inc