|
Repo Added
|
Build
128
Last
|
Files
7
|
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
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|
![]() |
Badge your Repo: bdk-cliWe detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.Could not find badge in README. |
|
Embed ▾
README BADGES
|