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)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 22/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- C
- Stelle
- 516
- Fork
- 136
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Blockstream/Jade
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Blockstream/Jade#329 · 4 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Blockstream/Jade#315 · 3 commenti ·
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 15/100
Blockstream/Jade#361 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Blockstream/Jade#345 · 8 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
Blockstream/Jade#344 · 1 commento ·
Tutte le issue di Blockstream/Jade
Issue simili
-
[BUG] Regression in 9.2.0: `socket.c: error: storage size of 'info' isn't known`Forse già presa @barracuda156 l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 60/100
valkey-io/valkey#5551 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 62/100
zephyrproject-rtos/zephyr#126735 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
interpreter-core type-bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
CI
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno