Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Transport for speculos emulator hw-transport-speculos #429

Closed
AndreyBronin opened this issue Nov 29, 2019 · 4 comments · Fixed by #458
Closed

Transport for speculos emulator hw-transport-speculos #429

AndreyBronin opened this issue Nov 29, 2019 · 4 comments · Fixed by #458

Comments

@AndreyBronin
Copy link

Hello

I want to make some integration tests for my WebWallet app and Ledger Nano S and run it on CI.

Headless speculos emulator is good tool for this, but I need special transport for sending APDU codes from web app.

@gre
Copy link
Contributor

gre commented Nov 29, 2019

@greenknot can you share what was your setup so far? I believe it was working with some python script and the proxy transport?
We could definitely write a more dedicated tool.

@greenknot
Copy link

Here is the command-line that I used in conjunction with speculos:

./tools/ledger-live-http-proxy.py &
DEBUG_COMM_HTTP_PROXY=http://127.0.0.1:9998 ledger-live getAddress -c btc --path "m/49'/0'/0'/0/0" --derivationMode segwit

@AndreyBronin
Copy link
Author

I also find websockify proxy in run.sh which runs in Dockerfile. I think it's good solution for me to use speculos with websockify proxy and hw-transport-http.

Unfortunately Dockerfile is broken, I'll try to fix it and test

@gre
Copy link
Contributor

gre commented Feb 8, 2020

@AndreyBronin i've just wrote a tcp transport that works great as shown on the PR description. I'll iterate with the team behind speculos to see if we can simplify to the bare minimum what the docker is about because essentially we just need to be able run ./speculos.py directly, provide some tcp ports and connect to it, without need to have extra proxy complexity

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants