Skip to content

fix: regression impacting Nano S applications installation when commit command was missed#172

Merged
iartemov-ledger merged 1 commit into
masterfrom
nanos_fix
Jun 23, 2026
Merged

fix: regression impacting Nano S applications installation when commit command was missed#172
iartemov-ledger merged 1 commit into
masterfrom
nanos_fix

Conversation

@iartemov-ledger

Copy link
Copy Markdown
Contributor

ledgerblue 0.1.57 added a new compute_app_hash() call between loading the code and the final commit step. That function packs the API level as an unsigned byte (struct.pack(">B", api_level)). Nano S has no API level, so it passes -1 → struct.pack(">B", -1) raises (must be 0–255). The crash aborts .apdu generation after the load/CRC lines but before the commit line (e00000000109) → the app never finalizes → "does not install."

(Newer devices pass a real api level ≥ 0, so they're unaffected.)

@iartemov-ledger iartemov-ledger requested a review from a team as a code owner June 23, 2026 10:09
@iartemov-ledger iartemov-ledger requested review from a team, apaillier-ledger and yogh333 and removed request for a team June 23, 2026 10:09
@iartemov-ledger iartemov-ledger merged commit c877ee6 into master Jun 23, 2026
18 checks passed
@iartemov-ledger iartemov-ledger deleted the nanos_fix branch June 23, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants