1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-10-13 11:29:11 +00:00
Commit Graph

59 Commits

Author SHA1 Message Date
matejcik
e0d850df7d protobuf: update generators and messages to be identical with trezor-core 2018-05-09 17:15:13 +02:00
matejcik
df8c3da1a2 protobuf: properly implement signed types (fixes #249) 2018-05-07 14:10:34 +02:00
matejcik
688fe06e93 tools: remove forgotten debug statements in encfs_aes_getpass 2018-04-16 17:29:57 +02:00
matejcik
9255507529 tools: update encfs_aes_getpass to work with Py3
probably fixes #169
2018-04-16 17:21:29 +02:00
matejcik
d7fb363ffb build: take an optional argument specifying protobuf output directory 2018-04-10 15:58:34 +02:00
matejcik
40ff849228 flake8: make flake8 better and more strict
this removes some unused variables and also catches a couple bugs
2018-04-10 15:58:34 +02:00
matejcik
04326749f4 build: generate protobuf messages in tempdir
This way, if the process fails, the files in trezorlib/messages remain
untouched. This is important because "setup.py build" now runs the
build_protobuf tool, and it can easily fail on a system without protoc.
2018-04-10 15:58:34 +02:00
matejcik
ae0cb0478e build: use trezor-common from submodule 2018-04-10 15:58:34 +02:00
matejcik
a4306a00fa tools: add deserialize_tx.py to decode contents of hex-encoded signed BTC transaction.
This code will probably come in handy if/when we implement a microwallet.
2018-04-03 19:24:31 +02:00
Saleem Rashid
4ec8b38d4a pb2py: Use logging module instead of print 2018-03-19 13:48:55 +01:00
Saleem Rashid
d32cbe3466 pb2py: Use generators instead of lists 2018-03-19 13:48:55 +01:00
matejcik
61a2ab4303 pb2py: keep imports sorted 2018-03-15 19:55:26 +01:00
matejcik
e7a01b827b build_protobuf: fix paths for protoc 2018-03-15 19:55:06 +01:00
matejcik
2375a8f516 fix merge conflicts with updated python-trezor 2018-03-15 19:28:34 +01:00
matejcik
f75b90d260 Merge branch 'upstream' into refactor-transport-nicediff 2018-03-05 19:56:47 +01:00
matejcik
967d479a19 update tools to use the new transport API
also drop some python2 compatibility things
2018-03-05 17:30:44 +01:00
matejcik
55641dd8b5 make flake8 happy (#225) 2018-03-02 16:47:29 +01:00
Pavol Rusnak
cb47dbd284
chmod +x tools/mem_flashblock.py 2018-02-21 16:48:40 +01:00
Pavol Rusnak
a0c85bed12
tools: add pwd_reader from SLIP-0016 2018-02-21 16:46:18 +01:00
slush
562a19c812 Make examples working for all available transports. 2018-02-02 18:29:52 +01:00
Pavol Rusnak
7b844f0379
add Sint64 to protobuf 2018-01-30 15:04:24 +01:00
Pavol Rusnak
c78c548752
protobuf: delete old messages first 2018-01-12 13:10:36 +01:00
Pavol Rusnak
694bc7ac11
protobuf: don't generate storage protobuf 2018-01-12 13:06:43 +01:00
Pavol Rusnak
8f6b2449be
sort imports in pb2py 2018-01-12 12:58:39 +01:00
Pavol Rusnak
78d2c07d34
regenerate pb messages 2018-01-12 12:54:06 +01:00
Saleem Rashid
bbed79f658 build_protobuf: Refactor
* Use `set -e` to fail on error
* Change into script directory automatically
2017-12-24 12:16:24 +00:00
Saleem Rashid
ff5999162a pb2py: Add pb2/ to sys.path
This removes the need for sed (which was problematic on OS X as it ships
with BSD Sed instead of GNU Sed)
2017-12-24 12:04:36 +00:00
Saleem Rashid
fd5f232fdd pb2py: Refactor 2017-12-24 11:51:13 +00:00
Saleem Rashid
6e81c91443 pb2py: Clean up argparse usage 2017-12-24 11:51:13 +00:00
slush
a27217811b Rework from Google's protobuf to pure-python protobuf implementation 2017-12-17 02:19:16 +01:00
Jochen Hoenicke
6186822f14 Added tool to flash a sector
... and fixed some python3 stuff.
2017-12-12 21:44:30 +01:00
Pavol Rusnak
a5fc76d8c9
don't use generic Exception, but rather specific subclass 2017-11-06 11:10:23 +01:00
Pavol Rusnak
23d75bfc10
trezorctl: sign_tx command based on tx_sign_tool by mruddy 2017-10-24 00:50:01 +02:00
Jan Pochyla
259a61878b tools: update to new transport api 2017-09-04 13:36:31 +02:00
Pavol Rusnak
0ee1667c6f
trezorctl: cleanup 2017-07-05 12:55:38 +02:00
Pavol Rusnak
7f0f73d1c6
tests: fix style in tools/signtest.py 2017-06-25 18:10:05 +02:00
Pavol Rusnak
33f274d145
style: use flake8 2017-06-23 21:52:53 +02:00
mruddy
3ccc412de4
add tool to aid in rng testing and evaluation (#104) 2017-02-28 19:11:28 +01:00
Pavol Rusnak
5e1526d286
refactor tx_sign_tool.py 2017-02-26 17:11:31 +01:00
mruddy
72ab93bd87 add a tx signing tool that handles bitcoin, testnet, and litecoin 2017-02-26 16:44:49 +01:00
mruddy
71d0c483f8 add tools support for reading bootloader from debug link enabled device (#99) 2017-02-20 14:36:00 +01:00
Pavol Rusnak
2e1da5f337
-> trezor.io 2017-01-10 15:25:13 +01:00
Pavol Rusnak
d1bfc76d91
tools: fix signtest.py 2016-11-09 12:39:25 +01:00
Jochen Hoenicke
08511d3f81
tools/signtest: Added P2SH segwit inputs 2016-11-05 21:56:48 +01:00
Pavol Rusnak
16b6289c50
unclutter root dir by moving scripts into tools subdirectory 2016-07-02 20:47:18 +02:00
Pavol Rusnak
b497cffb1d
whitespace 2016-06-22 14:51:46 +02:00
Pavol Rusnak
f2c35e9d13
show usage if run outside of extfs context 2016-06-01 14:07:48 +02:00
Pavol Rusnak
3a108ee8a5
fix pylint warnings 2016-05-26 17:20:44 +02:00
Pavol Rusnak
54c8bfd1d4
import print function from future 2016-05-20 22:27:20 +02:00
Pavol Rusnak
de9b10fd90
more python3 stuff 2016-05-20 13:46:51 +02:00