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)

Abierto
#362 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
22/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
c, embedded-iot
Área
security

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

  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.

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Blockstream/Jade

Todos los issues de Blockstream/Jade

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.