Improve error message / accept descriptor key expressions in descriptor command
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Trước tiên, hãy chạy reproducer đã được ghi lại cho key derive và descriptor, sau đó lần theo các điểm vào bdk-cli key derive, descriptor và wallet config để so sánh cách các đầu vào của chúng được phân tích. Công việc được coi là hoàn tất khi các biểu thức khóa của descriptor либо được descriptor chấp nhận trực tiếp, либо bị từ chối kèm giải thích rõ ràng về biểu diễn được mong đợi, với các bài kiểm thử lệnh bao phủ hành vi đã chọn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 143
- Fork
- 98
- Merge trung bình
- 6 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bitcoindevkit/bdk-cli
-
Use `ValueEnum` for `--type` in `compile` commandCó thể đã có người làm @chukwudiikeh đã nhận 2 ngày trước. Đang mởgood first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
bitcoindevkit/bdk-cli#345 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
bitcoindevkit/bdk-cli#332 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
`compile` doesn't validate keys and returns unusable descriptorsCó thể đã có người làm @Olorunshogo đã nhận 2 ngày trước. Đang mởenhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
bitcoindevkit/bdk-cli#344 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 50/100
bitcoindevkit/bdk-cli#340 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Enforce Core-compatible OP_RETURN / datacarrier and standard tx-size limits in create_txCó thể đã có người làm @tvpeter đã nhận 15 ngày trước. Đang mởenhancement
bitcoindevkit/bdk-cli#339 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của bitcoindevkit/bdk-cli
Issue tương tự
-
[Bug]:设置的关于页面,“系统信息”部分排版异常Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
metasequoiaime/msime#7328 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
eclipse-opensovd/classic-diagnostic-adapter#616 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
track: content
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
0xAndersen/witness-log#10 ·
-
follow-up main-defect wave-A
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
carrick-sh/carrick#249 ·
Maintainer thường phản hồi trong vòng 1 ngày