Commit Graph

58 Commits

Author SHA1 Message Date
Roman Zeyde
d103ebee6f Fix pylint warning 2020-04-17 14:28:50 +03:00
matejcik
d8bcca3ccb support trezorlib 0.12 2020-04-09 14:41:56 +02:00
Eric Siegel
0f627e8322 Clean up code... 2020-03-16 15:26:15 -04:00
Eric Siegel (Rocket Hazmat)
7bdfa7609d Upgrade KeepKey for new libagent code
Add get_public_node for KeepKey
2020-03-13 13:50:09 -04:00
Eric Siegel (Rocket Hazmat)
53b08f4968 Fix detecting KeepKey USB device
The new KeepKey firmware uses WebUSB instead of HID
2020-03-13 13:05:08 -04:00
Roman Zeyde
e437591dd5 Fix prompt for symmetric encryption passphrase 2019-03-03 22:51:15 +02:00
André Vitor de Lima Matos
94ad9648f8 Fix passphrase cache
Broken since 2cb64991c3
Fix #284
2019-02-23 17:42:08 -03:00
Roman Zeyde
995fba3e93 Drop compatibility with <0.11 trezorlib 2018-12-13 00:05:47 +02:00
matejcik
5cfdc7734b fix style complaints 2018-12-10 16:30:56 +01:00
matejcik
2cb64991c3 Trezor: restructure code to support python-trezor 0.11 2018-12-10 16:10:55 +01:00
matejcik
b30e6a8408 Allow devices to override connection closing 2018-12-10 16:10:55 +01:00
Roman Zeyde
7a351acf15 Merge remote-tracking branch 'matejcik/master' 2018-08-02 22:01:31 +03:00
Roman Zeyde
eed168341c Don't inheric from 'object' (after deprecating Python 2.x support) 2018-07-25 13:44:55 +03:00
matejcik
8708b1e16d trezor: use TREZOR_PATH environment variable to specify device path 2018-07-17 16:45:09 +02:00
Roman Zeyde
bea899d1ef gpg: allow symmetric encryption with a passphrase 2018-04-25 11:09:58 +03:00
Roman Zeyde
2ca3941cfa ssh: allow setting passphrase cache expriration duration 2018-04-25 00:02:21 +03:00
Roman Zeyde
766536d2c4 trezor: allow expiring cached passphrase 2018-04-23 22:55:10 +03:00
Roman Zeyde
7443fc6512 Pass 'state' during TREZOR initialization 2018-03-27 16:06:18 +03:00
Roman Zeyde
6d730e0a5b ui: subprocess.Popen doesn't have 'args' attribute in Python 2 2018-03-14 12:15:08 +02:00
Roman Zeyde
d0732d16e8 ui: don't log passphrases (since the log may be persisted) 2018-03-14 12:13:44 +02:00
Roman Zeyde
dafb80ad7a trezor: don't retry on PIN/passphrase entry cancellation 2018-03-13 16:52:04 +02:00
Roman Zeyde
0699273d49 util: move ASSUAN serialization to break circular import 2018-03-11 15:11:02 +02:00
Roman Zeyde
34c03a462c ui: merge into a single module 2018-03-11 14:33:54 +02:00
Roman Zeyde
ceae65aa5a ui: use {} as default config 2018-03-11 13:34:50 +02:00
Roman Zeyde
d0497b0137 pinentry: specify device name at PIN/passphrase entry UI 2018-03-10 22:11:26 +02:00
Roman Zeyde
cbdc52c0a4 trezor: handle passphrase on-device entry (for Model T) 2018-03-10 09:35:23 +02:00
Roman Zeyde
601a2b1336 device: refactor PIN/passphrase UI into a separate class
This would allow easier customization.
2018-03-08 17:13:16 +02:00
Roman Zeyde
b6181bb5b5 trezor: replace tk-based pinentry with GnuPG pinentry 2018-03-07 13:42:59 +02:00
Roman Zeyde
b6da299cb0 pinentry: add simple wrapper for PIN/passphrase entry 2018-03-07 13:42:56 +02:00
Roman Zeyde
54ce6f2cec trezor: limit passphrase length 2018-03-06 10:06:00 +02:00
Roman Zeyde
e90bd0cd81 trezor: refactor transport enumeration a bit 2018-03-03 20:22:22 +02:00
slush
66e3e60370 trezor: Use composite transport for device detection. 2018-03-03 01:25:19 +01:00
Roman Zeyde
08d81c992c trezor: split pinentry tool into a separate file 2018-02-27 11:17:53 +02:00
Roman Zeyde
55a899f929 trezor: initialize cached_passphrase_ack with None (instead of 0) 2018-02-27 10:33:19 +02:00
Roman Zeyde
f4208009e0 trezor: init_device before failing PIN/passphrase entry 2018-02-22 11:19:26 +02:00
Roman Zeyde
73d60dbec0 gpg: cache the passphrase for better UX 2018-02-21 11:35:38 +02:00
Roman Zeyde
7803026f61 gpg: allow setting passphrase from environment variable
as done by TREZOR's client library
2018-02-20 09:59:15 +02:00
Roman Zeyde
385fc9457b Support multiple devices 2018-01-05 20:53:42 +02:00
Roman Zeyde
8fe9460ed6 trezor: allow UDP connection (for emulator) 2017-12-23 16:59:12 +02:00
Roman Zeyde
db16aa3d1c trezor: update to latest trezorlib version 2017-12-23 16:51:37 +02:00
Roman Zeyde
41ccd2f332 fix new pylint warning 2017-12-22 17:10:27 +02:00
Roman Zeyde
f22c07e970 trezor: retry in case of invalid PIN 2017-11-18 20:37:06 +02:00
Roman Zeyde
29c7234ef4 trezor: make sure scrambled PIN is valid 2017-11-18 17:06:23 +02:00
Roman Zeyde
c4dfca04f2 trezor: use UI-based passphrase entry
Now TREZOR_PASSPHRASE environment variable is ignored.
2017-11-16 22:36:19 +02:00
Roman Zeyde
90cbc41b17 gpg: refactor messagebox UI from PIN entry 2017-11-11 11:16:31 +02:00
Roman Zeyde
a2d0c1067d gpg: don't hardcode Python binary 2017-10-27 11:27:40 +03:00
Roman Zeyde
3d5717dca1 gpg: use a separate process for PIN entrering UI 2017-10-27 10:43:50 +03:00
Roman Zeyde
08fef24e39 gpg: use pymsgbox for PIN entrering UI 2017-10-21 21:18:00 +03:00
Roman Zeyde
8cf1f0463a device: release HID handle before failing 2017-10-14 17:34:02 +03:00
Roman Zeyde
9998456fe0 ledger: add DEBUG logging 2017-10-11 21:15:44 +03:00