1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-25 15:58:08 +00:00
Commit Graph

150 Commits

Author SHA1 Message Date
Saleem Rashid
79da872316 trezorctl: Guess script type from BIP-32 in sign_tx
Also add change output to sign_tx
2017-12-27 01:16:46 +01:00
Saleem Rashid
881015ae5f trezorctl: Ask for input script type in sign_tx 2017-12-27 01:16:46 +01:00
Saleem Rashid
35db3c5efb trezorctl: Add ChoiceType to replace click.Choice 2017-12-27 01:16:46 +01:00
Saleem Rashid
f20fd0d8cf trezorctl: Remove broken default in address_n click.prompt 2017-12-19 15:48:17 +01:00
Saleem Rashid
36c479c2c2 trezorctl: Change InputScriptType to OutputScriptType 2017-12-19 15:48:17 +01:00
Saleem Rashid
d446e56375 trezorctl: Fix sign_tx default BIP-32 path 2017-12-17 22:12:57 +01:00
Saleem Rashid
496bfc74fd trezorctl: Refactor sign_tx to use click.prompt
Fixes UnboundLocalError on Python 3
2017-12-17 22:12:57 +01:00
slush
a27217811b Rework from Google's protobuf to pure-python protobuf implementation 2017-12-17 02:19:16 +01:00
Pavol Rusnak
de95c44ad1
trezorctl: cleanup set_homescreen call 2017-12-16 21:29:52 +01:00
Pavol Rusnak
b42fc6fb1f
trezorctl: set homescreen for T2 2017-12-13 02:37:59 +01:00
Pavol Rusnak
45835733bc
more cleanup 2017-12-02 22:06:44 +01:00
Pavol Rusnak
8b9cba832c
cleanup last commit 2017-12-02 22:02:39 +01:00
slush
f5c1587396 Version moved from version.py to __init__.py 2017-12-02 18:48:44 +01:00
slush
59ef832424 Add 'trezorctl version' to track version of installed package 2017-12-02 18:31:57 +01:00
Pavol Rusnak
116c3c0575
trezorctl: use click.echo instead of stderr.write 2017-12-02 15:34:06 +01:00
Jonathan Cross
ab3d17b3df Better handling of user input for --coin in sign_tx 2017-12-02 15:27:40 +01:00
Pavol Rusnak
a5fc76d8c9
don't use generic Exception, but rather specific subclass 2017-11-06 11:10:23 +01:00
Pavol Rusnak
6a777788ab
trezorctl: use better detection if raw_input replacement is needed 2017-10-25 21:33:33 +02:00
Pavol Rusnak
23d75bfc10
trezorctl: sign_tx command based on tx_sign_tool by mruddy 2017-10-24 00:50:01 +02:00
Pavol Rusnak
a71c33d123
trezorctl+client: add support for CoSi commit/sign 2017-10-03 18:43:28 +02:00
Jan Pochyla
8202971109 rework lazy connecting in client 2017-09-04 13:36:08 +02:00
Saleem Rashid
eb1d66e27f trezorlib: Add nem_get_address 2017-09-03 19:05:29 +02:00
Saleem Rashid
58b56bead6 trezorctl: Add nem_sign_tx 2017-09-03 19:05:29 +02:00
Jan Pochyla
bc42eb68d6 transports: refactor, split protocol code 2017-08-24 14:29:27 +02:00
Jochen Hoenicke
7019438a49 Make -n/--address parameter required.
If you really want to have the master public key, you can still just
give the empty string.
* Changed -address to --address everywhere.
* Added help for this parameter.
* Added required flag.
2017-08-20 16:33:49 +02:00
Pavol Rusnak
a4a7aa8d85
trezorctl: fix hexlify calls on python3 2017-08-17 21:18:49 +02:00
Pavol Rusnak
ff157264a2
trezorctl: print message name to output 2017-08-09 00:52:52 +02:00
Pavol Rusnak
8133317172
add SignMessage.script_type 2017-07-24 16:11:38 +02:00
Pavol Rusnak
de6402e95e
implement set_flags (aka ApplyFlags) 2017-07-17 18:37:15 +02:00
Pavol Rusnak
afdd27c551
trezorctl: fix set_homescreen for python3 2017-07-16 15:03:01 +02:00
Pavol Rusnak
d865c0ea31
trezorctl: load_device -s now loads SLIP-0014 mnemonic, --skip-checksum renamed to --ignore-checksum 2017-07-16 14:54:50 +02:00
Pavol Rusnak
23ab43d612
ethereum: implement EthereumSignMessage/EthereumVerifyMessage 2017-07-12 18:35:54 +02:00
Pavol Rusnak
20aebed394
trezorctl: seems that click.Choice is not friends with ints 2017-07-12 15:45:16 +02:00
Pavol Rusnak
ee5f53d4be
fix ethereum_get_address for python3 2017-07-11 19:37:25 +02:00
Pavol Rusnak
5ffc700f0c
use isinstance to detect whether result is protobuf message 2017-07-10 18:20:32 +02:00
Pavol Rusnak
f73fc33439
drop internal use of protobuf_json, use json_format provided by google.protobuf 2017-07-10 15:36:44 +02:00
Pavol Rusnak
5a89a15935
trezorctl: use more idiomatic approach using resultcallback 2017-07-05 12:55:39 +02:00
Pavol Rusnak
b335d30b8d
use click in trezorctl 2017-07-05 12:55:38 +02:00
Pavol Rusnak
0ee1667c6f
trezorctl: cleanup 2017-07-05 12:55:38 +02:00
Pavol Rusnak
bcf54dbe94
trezorctl/client: add self_test 2017-07-03 18:49:03 +02:00
Pavol Rusnak
71996c1e43
update protobuf, update tox.ini, prepare for BackupDevice 2017-06-23 19:26:35 +02:00
Pavol Rusnak
c51089803d
trezorctl: add newline to failure print 2017-06-23 17:06:22 +02:00
Roman Zeyde
0d76936174 Allow testing recovery with an initialized device 2017-06-23 00:08:59 +02:00
Pavol Rusnak
e435920d6a
support v2 firmware in trezorctl 2017-06-20 17:19:37 +02:00
Pavol Rusnak
609b8d4a4a
fix stderr.write usage 2017-06-20 16:36:40 +02:00
Pavol Rusnak
de2f9e7c14
protob: regenerate, fix using old failure codes 2017-06-18 23:18:23 +02:00
Pavol Rusnak
2363db721a
fix stderr.write to use bytes 2017-05-03 17:50:37 +02:00
Peter Banik
44b51af1d8 -c <coin> CLI argument (#110) 2017-04-24 16:31:18 +02:00
Peter Banik
a99e29a05f
Added coin_name argument to get_public_node and trezorctl (#108) 2017-04-21 19:23:59 +02:00
Pavol Rusnak
127d76a913
enable/disable passphrase protection via trezorctl 2017-02-23 11:56:54 +01:00
mruddy
a2792cda19 load_device_by_mnemonic and recovery_device: expand unique mnemonic word prefix matches (#96) 2017-02-11 20:15:09 +01:00
Jochen Hoenicke
1105490cb3 Ethereum: trezorctl updates
- Allow nonce, gas_limit, gas_price to be explicitly set to 0.
- Updated usage info.
2017-01-22 19:13:21 +01:00
Jochen Hoenicke
607893f9ac Ethereum: EIP-155 replay protection
Added chain_id parameter to sign tx (and updated protobuf).
Added a unit test with chain_id for Ropsten testnet.
trezorctl:
 - Fixed compatibility with new ethjsonrpc
 - added chain_id parameter
2017-01-22 19:13:21 +01:00
Jochen Hoenicke
3e2cccf225 SegWit: Display address on Trezor 2017-01-02 21:43:49 +01:00
Pavol Rusnak
6eee9c7499
old recovery method is default (scrambled) 2016-12-08 15:36:51 +01:00
Pavol Rusnak
3da5b48054
fix double import 2016-12-02 16:23:17 +01:00
Santiago Rodríguez
b3c298d87c Added support for signing Ethereum transactions without node connection (#89)
* Added support for signing without node connection

* Removed transaction details output
2016-12-01 15:23:38 +01:00
Pavol Rusnak
0bba092741
add LGPLv3 headers to sources files 2016-11-25 22:53:55 +01:00
Pavol Rusnak
1dd4cd78f5
fix whitespace 2016-11-23 13:55:08 +01:00
Jochen Hoenicke
c935b51849
Support for matrix recovery
See issue trezor/trezor-mcu#96
2016-11-23 11:42:20 +01:00
Pavol Rusnak
b494b2d3a0
trezorctl: cleanup old stuff 2016-11-11 19:18:52 +01:00
Pavol Rusnak
ae3f4823ae
trezorctl: remove unused PinMatrixThread 2016-11-11 19:12:30 +01:00
Pavol Rusnak
897d57803a
add choices to words argument for recovery_device 2016-11-01 13:20:37 +01:00
Pavol Rusnak
c6094dc9ad
verify_message now requires coin_name 2016-10-10 11:02:04 +02:00
Pavol Rusnak
92810a287f
import requests only when really needed 2016-10-03 10:42:02 +02:00
Dominik Kozaczko
a5f9d86076 Fix trezorctl (#75) 2016-09-28 14:34:50 +02:00
Dominik Kozaczko
300bf5801d
fix exceptions - writeout errors instead of throwing tracebacks 2016-09-28 11:37:15 +02:00
Pavol Rusnak
05c243d29b
add possibility to skip check in firmware_update 2016-09-26 12:28:06 +02:00
Jochen Hoenicke
d9df63ad89 Allow leading 0x in data. Handle new contracts.
Specify 0x or "" as destination to create a new contract.
Leading 0x in data is just ignored (data must always be given in hex).
2016-08-23 01:19:22 +02:00
Jochen Hoenicke
c85600b9bd
Fix ethereum_sign_tx
- Workaround bug in rlp.utils.int_to_big_endian
- Command line tool now expects data to be a hexlified string
2016-08-19 23:15:38 +02:00
Pavol Rusnak
6a1564ba87
fix firmware_update fetching firmware 2016-08-10 16:51:06 +02:00
Pavol Rusnak
e00453661d
remove trezorctl-emu.sh script, trezorctl now uses default pipe path if not provided 2016-07-02 20:50:04 +02:00
Pavol Rusnak
ef9eaf4553
rename ethereum_send_tx to ethereum_sign_tx, add --publish option 2016-07-02 20:26:58 +02:00
slush0
39e827a90a Reworked get_transport for hid/bridge. 2016-06-30 16:47:17 +02:00
Pavol Rusnak
3b4f226d48
cleanup transports 2016-06-30 16:23:07 +02:00
Jochen Hoenicke
e51fb2078f
new message SetU2FCounter 2016-06-28 00:55:46 +02:00
Pavol Rusnak
6696dcb985 Merge pull request #62 from Arachnid/ethereum_send_tx
Implement ethereum_send_tx
2016-05-27 20:49:21 +02:00
Nick Johnson
8d2f33d8b5 Implemented ethereum_send_tx 2016-05-27 19:34:54 +01:00
Pavol Rusnak
3a108ee8a5
fix pylint warnings 2016-05-26 17:20:44 +02:00
Pavol Rusnak
cbbd7004a8 Merge pull request #60 from Arachnid/ethereum
Add support for get_ethereum_address to trezorlib and trezorctl
2016-05-26 11:13:40 +02:00
Nick Johnson
593406ef46 Rename to ethereum_get_address, use binascii.hexlify 2016-05-26 07:47:04 +01:00
Pavol Rusnak
7a3a45321c
import requests just in firmware_update function 2016-05-25 02:16:06 +02:00
Nick Johnson
67bd1c223e Add support for get_ethereum_address to trezorlib and trezorctl. 2016-05-24 20:33:17 +01:00
Pavol Rusnak
54c8bfd1d4
import print function from future 2016-05-20 22:27:20 +02:00
Pavol Rusnak
021389efe8
more fixes 2016-05-20 17:20:11 +02:00
Pavol Rusnak
fdc3cff1d6
use requests instead of urllib mess 2016-05-20 16:09:14 +02:00
Pavol Rusnak
de9b10fd90
more python3 stuff 2016-05-20 13:46:51 +02:00
Pavol Rusnak
828026dd40
Merge branch 'segwit' of github.com:jhoenicke/python-trezor 2016-05-19 11:59:19 +02:00
Jochen Hoenicke
ead2781aff added --curve argument for get_public_node 2016-05-01 14:19:30 +02:00
slush0
413ed2259a Added UDP Socket transport 2016-04-30 02:37:18 +02:00
Pavol Rusnak
f3449fcbd7
fix spelling of TREZOR 2016-02-10 16:48:13 +01:00
Pavol Rusnak
c2c70c5c6c
implement get_public_node.arguments --ecdsa-curve-name --show-display 2015-11-19 11:47:19 +01:00
Pavol Rusnak
8b0610c16a
add skip checksum option to load device 2015-10-19 19:48:14 +02:00
Chris Rico
6475f98b1e
Allow firmware update by version or latest from releases.json 2015-10-19 15:38:39 +02:00
Pavol Rusnak
d8f3a47eaf cleanup and release 0.6.5 2015-06-03 16:47:01 +02:00
Pavol Rusnak
16c07561b5 don't assign tx_api when not needed 2015-06-03 14:53:53 +02:00
Michael Dance
d995059656 Update hashbang to use /usr/bin/env python 2015-05-13 11:55:39 +12:00
slush0
2f2ffd5239 Minor fixes of firmware_update 2015-04-09 21:13:35 +02:00
slush0
4ffadc2216 trezorctl firmware_update: allow updating from URL, detects hex and converts to binary 2015-04-02 19:05:51 +02:00
Pavol Rusnak
06ed6a27a7 rename cmdtr.py to trezorctl (but keep symlink for now) 2015-02-22 14:23:39 +01:00