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

Add simulator device #452

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

SlugFiller
Copy link
Contributor

@SlugFiller SlugFiller commented Sep 17, 2023

This simulator is fully compatible with a Trezor device, but takes the mnemonic/passphrase via commandline or pinentry. Can be useful for testing, try-before-you-buy for hardware devices (in the context of trezor-agent only), and CI. For the latter, is an improvement over FakeDevice, in that it can produce different keys based on derivation path, so it can be used to test things like original vs foreign key detection based on derivation from user id, which FakeDevice can't do.

And it's also good for producing doc examples that aren't based on anyone's real key.

Also adds the ability to have per-device command line arguments for all tools. Currently used for simulator mnemonics. But can also be used for e.g. Trezor multi-device selection.

Also fixes an issue that the passphrase caching made "Re-enter encryption:" prompt meaningless, since it would immediately pull the previous entry from cache.

@romanz romanz requested review from romanz and removed request for romanz September 17, 2023 16:36
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.

None yet

1 participant