Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request: please support getting app and version (b0 01 00 00) #22

Closed
gre opened this issue Feb 8, 2020 · 1 comment
Closed

request: please support getting app and version (b0 01 00 00) #22

gre opened this issue Feb 8, 2020 · 1 comment

Comments

@gre
Copy link

gre commented Feb 8, 2020

No description provided.

@greenknot
Copy link
Contributor

This APDU used to crash speculos. This is now fixed with b9d2cd3, 316dbdd and d3bdd45.

The app name and version were hardcoded (app and 1.33.7). df5a543 allows to set them through SPECULOS_APPNAME environment variable. For instance:

$ SPECULOS_APPNAME=blah:1.2.3.4 ./speculos.py ./apps/btc.elf &
$ echo 'b0 01 00 00 00' \
  | LEDGER_PROXY_ADDRESS=127.0.0.1 LEDGER_PROXY_PORT=9999 ledgerctl send - \
  | xxd -r -ps \
  | hd
00000000  01 04 62 6c 61 68 07 31  2e 32 2e 33 2e 34 01 00  |..blah.1.2.3.4..|
00000010  90 00                                             |..|
00000012

I'm not sure what the use case is, but if the environment variable isn't convenient, one can introduce yet another argument to speculos.py.

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

No branches or pull requests

2 participants