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)
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 22/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- In Sparrow, open Tools > Sign/Verify Message for a wallet imported from the Jade over QR (native segwit address).
- Choose format "BIP322 (Simple)", enter any message, and click "Sign by QR".
- 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.
- 主要言語
- C
- スター
- 516
- フォーク
- 136
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Blockstream/Jade のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Blockstream/Jade#329 · コメント 4 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Blockstream/Jade#315 · コメント 3 件 ·
-
難易度 3/5 半日 初心者へのやさしさ 15/100
Blockstream/Jade#361 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
Blockstream/Jade#345 · コメント 8 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
Blockstream/Jade#344 · コメント 1 件 ·
Blockstream/Jade の issue をすべて見る
似ている issue
-
[BUG] Regression in 9.2.0: `socket.c: error: storage size of 'info' isn't known`対応中かも @barracuda156 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 60/100
valkey-io/valkey#5551 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1時間未満 初心者へのやさしさ 62/100
zephyrproject-rtos/zephyr#126735 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Item assignment and deletion raise `IndexError` instead of `TypeError` on types without them, for a huge index対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンinterpreter-core type-bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
CI
難易度 2/5 1時間未満 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信