matejcik
1e9edf0cc5
trezorctl: support sending ERC20 tokens in ethereum-sign-tx
2019-03-07 19:10:11 +01:00
matejcik
3997b402b4
trezorctl: update ethereum-sign-tx to use web3 instead of ethjsonrpc
...
fixes #366
2019-03-07 17:49:17 +01:00
brianddk
302b9d99e6
Fix trezorctl for protobuf changes in 0.11.2 ( #365 )
...
ethereum-sign-message Leave `address` as text instead of encoding.
ethereum-verify-message Leave `address` as text instead of encoding.
ethereum-sign-tx Leave `to` as text instead of encoding.
2019-03-07 13:47:08 +01:00
matejcik
12c0e78e3d
trezorctl: ALLOWED_FIRMWARE_FORMATS should be lists (well tuples)
2019-02-27 13:12:18 +01:00
matejcik
697f86210f
revert usb reset related commits
...
As it stands, they cause more harm than good for a point release.
This code will be returned later, when it is more mature
2019-02-26 18:01:19 +01:00
matejcik
0a8b5a08c2
trezorlib: workaround for a problem with Trezor One webusb
...
when webusb version of T1 is wiped, the usb device changes serial
immediately (unlike TT, which changes it after reconnect).
That confuses libusb on linux, and next time the device is reset, it
will insist on re-enumeration.
To solve this, we leave some explanatory comments, and trigger the
device reset through opening the device right after a wipe.
The client instance is unusable after that, but not much we can do about
it, and on next run trezorctl will behave as if nothing bad happened.
2019-02-26 17:35:25 +01:00
matejcik
fa5734a2a8
trezorctl: firmware tweaks, add dry_run mode
2019-02-26 14:46:12 +01:00
matejcik
cfb19dfb15
firmware: recognize, verify and handle firmware v1.8.0 and up
...
Also reorganize firmware validation code somewhat, so that trezorctl
consumes a unified interface.
2019-02-25 19:40:26 +01:00
matejcik
11f399230f
trezorctl: support signing JSON-encoded transaction data in sign-tx
2019-02-19 17:52:36 +01:00
Tomas Susanka
f81bc61316
ethereum: update tests to new message format (addresses are strings)
2019-01-29 17:17:05 +01:00
strmci
4afec2f3f3
trezorctl: use ChoiceType for set_passphrase_source ( #356 )
...
resolves #355
2019-01-28 16:17:02 +01:00
Tomas Susanka
7288700b86
eth: add get public key
2019-01-15 12:46:20 +01:00
matejcik
1f2db3666b
ui: smarter ClickUI prompts only once
...
This also fixes #331 by moving the PIN matrix from trezorctl into the UI
class
2018-11-26 15:30:42 +01:00
matejcik
ecf62ac43c
trezorctl: allow beta firmware
2018-11-26 15:30:42 +01:00
matejcik
eb50d54ec2
device: add reasonable defaults for reset/recovery
2018-11-26 15:30:42 +01:00
matejcik
1233feb358
style: fix imports
2018-11-06 13:36:25 +01:00
matejcik
c269d67cde
trezorlib: finalize BTC API changes
...
- drop set_tx_api method and its usage from trezorctl
- drop _prepare_sign_tx which is not used anymore
- adapt trezorctl to new signing API
- make trezorctl signing smarter, ahead of moving it elsewhere
2018-11-06 13:36:25 +01:00
Pavol Rusnak
b4e34b98fc
trezorlib: add monero getaddress/getwatchkey + tests
2018-11-04 15:27:45 +01:00
Tibor Arpas
e9b540e6b6
altcoin: Capricoin support tests and minor trezorctl addition. ( #325 )
2018-10-24 15:05:59 +02:00
Tibor Arpas
1a239201d8
trezorctl: fix bip115 handling
2018-10-21 01:18:21 +02:00
matejcik
e1efd493fd
trezorctl: updated firmware update flow
...
We can now locally verify firmware signatures and hashes. We also
recognize min_firmware_version, so this resolves #308
This also helps with #273 , as trezorlib is now mostly usable for signing
firmware images.
2018-10-12 15:58:55 +02:00
matejcik
ca7cbad1cf
trezorctl: variable referenced before assignment ( fixes #313 )
2018-10-10 13:15:28 +02:00
matejcik
2b02af1126
trezorctl: bad call to click.echo ( fixes #304 )
2018-10-10 13:15:28 +02:00
matejcik
2d7c74c535
switch to click 7.0
2018-10-10 13:15:28 +02:00
matejcik
ffff11a462
style: isort & autopep
2018-10-10 13:15:28 +02:00
matejcik
06927e003e
trezorlib: get rid of TextUIMixin
...
This also moves DebugLinkMixin to debuglink.py and converts the mixin to
a subclass of TrezorClient (which is finally becoming a
reasonable-looking class). This takes advantage of the new UI protocol
and is ready for further improvements, namely, queuing input for tests
that require swipes.
The ui.py module contains a Click-based implementation of the UI
protocol. Use of callback_* methods has been limited and will probably
be cleaned up further (The contract has changed so we'll try to make
third party code fail noisily. It is unclear whether a backwards
compatible approach will be possible).
Furthermore, device.recovery() now takes a callback as an argument. This
way we can get rid of WordRequest callbacks, which are only used in the
recovery flow.
2018-10-10 13:15:28 +02:00
Pavol Rusnak
c395501d2d
trezorctl: add no-backup option to reset-device
2018-10-08 14:17:07 +02:00
Jonathan Cross
ed633dcbb5
Fixing typo in firmware_update ( #317 )
2018-10-05 13:19:47 +02:00
matejcik
4fb3acb029
style: uppercase hex constants to conform with black 18.9b0 style
2018-10-01 14:01:33 +02:00
Pavol Rusnak
4a0ca873eb
trezorlib+tools: remove usage of binascii
2018-09-27 16:52:28 +02:00
Adrián Matejov
15df848b05
added Tezos support ( #302 )
...
* also added device tests for tezos
Signed-off-by: Adrian Matejov <adrian.matejov@simplestaking.com>
We also pushed signed operations to betanet network and they got accepted.
Here's the list of them
* transaction tz1 http://tzscan.io/ong8MQBX595Ld4dteHCbPqd6uzmEorEft6ZvfiX5vQMX4WHRh7K
* transaction tz2 http://tzscan.io/ooHZ2vbFX1M1fmr9KpLPWQ8r6oZB2RikpGBXsoQSZfbV1hWVjCP
* transaction tz3 http://tzscan.io/op79uLwaFqNB6SgcaAaJtoHFBQk3mL5bC1BQTvYzwX2DVSr8RJG
* origination tz1 http://tzscan.io/ooJg7qXtUjh16AtdSvv5kgaQnxjtAiBysFkG3EaG5qPAuDT1Cym contract http://tzscan.io/KT1VakcExcig27ZAuoLTExgGXtvUsykQSf5R
* origination tz2 http://tzscan.io/opDrUvCGUwKeu86b7GbRLeVzAkyKkdfnV9aSGAzGDLYYS11m6Qr contract http://tzscan.io/KT1LdQeHBSpvvzdRH495qHmtagavZcZ9Z5GW
* origination tz3 http://tzscan.io/opVWtfwvSvHzC6hsSGG31G23Q6nBov8SSvmA2nYXBNc5fWGk3Bg contract http://tzscan.io/KT1VfKfsgKFEfZ5vZUaZNaZyGrQf1gr1MEqr
* delegation tz1 http://tzscan.io/onws37YkYRnUvwYiPqYATZFtBVhBwbS2rdPkQjFGbAfLzt82MGa
* delegation tz2 http://tzscan.io/oocKfbotJwN5Zvmoybhb9LUJ6VhmeS42G2oZHaXQ2mXm98Rzx8r
* delegation tz3 http://tzscan.io/ooFQBcoMzwseJHnFgQ9fEPxAXhtgifuvvEH1CtmyAtnK5R7Drik
* transaction+reveal tz2 http://tzscan.io/ooEyN4FxP8RYh98RJgQxposDUuWHLWT8fUzWawNRCsMGxaNAN9c
* transaction+reveal tz3 http://tzscan.io/ooLaWQzZj1cbkMjZAifV71QCu5bdbMtET5CabrzLWQmnGMMhwmE
2018-09-10 16:40:31 +02:00
Dušan Plavák
bd6bcf7dfa
Add network param to cardano sign tx ( #306 )
2018-09-06 17:25:55 +02:00
Pavol Rusnak
434f279069
use implicit encoding in encode/decode
2018-09-06 16:22:38 +02:00
Matus Zamborsky
21326d3a41
add Ontology support ( #301 )
...
* add Ontology support
Signed-off-by: Matus Zamborsky <zamborsky@gmail.com>
2018-09-06 15:36:44 +02:00
Tomas Susanka
4f572f9e15
cardano: remove sign/verify functions
2018-09-06 14:54:06 +02:00
Pavol Rusnak
555bb62e3f
btc: add script_type to get_public_node
2018-09-05 15:21:11 +02:00
Dušan Plavák
fb22b894ba
Add cardano support to trezorctl and some tests ( #300 )
...
Add cardano support to trezorctl and some tests
2018-09-05 14:56:31 +02:00
Tomas Susanka
88a02822d3
stellar: public key methods removed
2018-09-03 14:57:10 +02:00
matejcik
88b50ac2ff
style: add makefile with style targets, final touchups
2018-08-21 16:30:22 +02:00
matejcik
3d3e9b67b4
style: apply black/isort
2018-08-13 18:22:19 +02:00
matejcik
29f928e4f2
style: bare excepts, left-over bad imports
2018-08-10 16:05:14 +02:00
matejcik
5259146a0b
style: remove unused imports with autoflake
2018-08-10 15:48:39 +02:00
matejcik
ca608d0a98
flake8: fix complaints (for the last time, hopefully)
2018-08-10 15:24:21 +02:00
matejcik
045ad85ecd
trezorctl: use new API
2018-08-10 15:18:26 +02:00
matejcik
2bb7088281
Merge branch 'master' into matejcik/client-split
2018-08-06 16:13:04 +02:00
D.Matskevych
5a677c3782
Added Zencash supporting
2018-07-26 11:34:51 +02:00
Tomas Susanka
61e63c6a02
ripple: ripple prefix dropped in functions
2018-07-12 16:36:33 +02:00
Tomas Susanka
c0f29bf4fd
ripple: proper sign_tx command
2018-07-12 16:36:33 +02:00
Tomas Susanka
37847fb56f
ripple: client functions moved to ripple.py
2018-07-12 16:36:33 +02:00
Tomas Susanka
147e7e21cb
ripple: get address command including tests
2018-07-12 16:36:33 +02:00