|
Ran
|
Jobs
1
|
Files
5
|
Run time
1min
|
Badge
README BADGES
|
push
github
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
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 22 |
15.53 |
-0.35% | src/handlers.rs |
| 202 |
0.0 |
0.0% | src/utils.rs |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
15.53 |
-0.35% | src/handlers.rs |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 19253249526.1 | 5 |
12.15 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|