Jade Plus 1.0.41: BIP-322 message-signing PSBT crashes with JADE_ASSERT(input_amount) in show_btc_fee_confirmation_activity (sign_utils.c:717)

Đang mở
#362 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
22/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c, embedded-iot
Lĩnh vực
security

Hướng nghiên cứu

The crash is the JADE_ASSERT(input_amount) in show_btc_fee_confirmation_activity() in main/process/sign_utils.c, around line 717. Start by reading how input_amount is totalled from the PSBT inputs and why a zero-value BIP-322 to_spend input yields 0. Decide whether to detect BIP-322 PSBTs and skip the fee screen, or to reject them with a user-facing error. Done means a BIP-322 PSBT no longer hits the assertion and reboots; the chosen path must be confirmed with maintainers first.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Device / firmware: Jade Plus, firmware 1.0.41 (noradio variant), used air-gapped via QR. Previously also reproduced on 1.0.38 (error at sign_utils.c:665, same assertion).

Steps to reproduce

  1. In Sparrow, open Tools > Sign/Verify Message for a wallet imported from the Jade over QR (native segwit address).
  2. Choose format "BIP322 (Simple)", enter any message, and click "Sign by QR".
  3. Scan the animated QR with the Jade Plus.

Actual behaviour
The Jade parses the PSBT and shows "Output 1/1, To: OP_RETURN, 0.00000000 BTC". After approval it shows "Internal error sign_utils.c:717" and restarts.

Cause (from the public source)
Line 717 of main/process/sign_utils.c at tag 1.0.41 (line 665 at tag 1.0.38) is JADE_ASSERT(input_amount); in show_btc_fee_confirmation_activity(). A BIP-322 virtual transaction spends a zero-value to_spend output, so the total input amount is 0 and the assertion fails.

Expected behaviour
Either sign BIP-322 message PSBTs (ideally detecting them, skipping the fee screen, and showing the message to the user, as Coldcard does with PSBT_GLOBAL_GENERIC_SIGNED_MESSAGE), or reject them with a clear error instead of an assertion and reboot.

Use case
Mining pools (for example OCEAN) require a BIP-322 signature from the payout address to configure Lightning payouts. Air-gapped Jade Plus users cannot comply.

Thank you.

Ngôn ngữ chính
C
Star
516
Fork
136
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Blockstream/Jade

Tất cả issue của Blockstream/Jade

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.