Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Improve error message / accept descriptor key expressions in descriptor command

オープン
#303 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@Chibey-max がすでに取り組んでいます。

2026年10月12日 から。

  • #351 @Chibey-max による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
rust
領域
cli

調査の方向性

まず、文書化された key derive と descriptor の再現手順を実行し、次に bdk-cli key derive、descriptor、wallet config のエントリーポイントを追跡して、それぞれの入力がどのように解析されるかを比較します。完了条件は、descriptor のキー式が descriptor によって直接受け入れられるか、期待される表現について明示的に説明したうえで拒否され、選択した動作をコマンドテストでカバーすることです。

索引モデルが issue の本文から書いたものです。

説明

enhancement

Describe the enhancement

bdk-cli key derive returns a descriptor key expression (e.g. [fingerprint/path]xpub.../*), while bdk-cli descriptor expects a raw xpub/xprv. Passing the output of key derive directly to descriptor results in:

BIP32 error: base58 encoding error

The error doesn't explain that the input is a descriptor key expression rather than a raw extended key.

It would be helpful if descriptor either:-

  • detected descriptor key expressions and emitted a more descriptive error or
  • accepted descriptor key expressions directly.

Use case

A natural workflow is:

key restore
    ↓
key derive
    ↓
descriptor

Since key derive produces a key intended for descriptors, it's reasonable to expect its output to be consumable by descriptor.

Instead, users encounter a low-level Base58 parsing error without any indication that the command expects a different representation.


Additional context

Reproducer:

bdk-cli key derive --xprv "tprv..." --derivation_path "m/84h/1h/0h"

Output:

[bd2eb472/84'/1'/0']tprv.../*

Then:

bdk-cli descriptor --type wpkh "[bd2eb472/84'/1'/0']tprv.../*"

produces:

BIP32 error: base58 encoding error

The same descriptor key expression works correctly when wrapped in a descriptor and passed to:

bdk-cli wallet config --ext-descriptor "wpkh([bd2eb472/84'/1'/0']tprv.../*)"

which suggests the underlying parsing is already supported in that context.

主要言語
Rust
スター
143
フォーク
98
平均マージ
5日 21時間
マージ済み PR(30日)
7

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bitcoindevkit/bdk-cli のほかの issue

bitcoindevkit/bdk-cli の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。