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)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 22/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C
- Estrellas
- 516
- Forks
- 136
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Blockstream/Jade
-
REPRODUCIBLE.MD issues/commentsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Blockstream/Jade#329 · 4 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Blockstream/Jade#315 · 3 comentarios ·
-
Dificultad 3/5 Medio día Aptitud para principiantes 15/100
Blockstream/Jade#361 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Blockstream/Jade#345 · 8 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Blockstream/Jade#344 · 1 comentario ·
Todos los issues de Blockstream/Jade
Issues similares
-
[BUG] Regression in 9.2.0: `socket.c: error: storage size of 'info' isn't known`Posiblemente ocupada @barracuda156 la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 60/100
valkey-io/valkey#5551 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
vlang/v#32777 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 Menos de una hora Aptitud para principiantes 62/100
zephyrproject-rtos/zephyr#126735 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Item assignment and deletion raise `IndexError` instead of `TypeError` on types without them, for a huge indexPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertointerpreter-core type-bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
CI
Dificultad 2/5 Menos de una hora Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día