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
3f35475e7b
build: preprocess messages and assets in setup.py
...
This enforces presence of the trezor-common submodule, copies coins.json to the
package directory (from where we can install it with bdist) and if possible,
regenerates protobuf messages.
That currently doesn't work on Windows, because it's a shell script. Also it
relies on presence of `protoc` protobuf compiler. Therefore the regeneration
step is optional and converted protobuf messages should still be commited to
this repo.
coins.json, OTOH, is gitignored in trezorlib, and must be copied from
trezor-common every time. This works because sdist includes the vendor
directory.
2018-04-10 15:58:34 +02:00
matejcik
16b0727b4b
build: include tools in sdist
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
c844430363
build: include relevant vendored files in sdist
2018-04-10 15:58:34 +02:00
matejcik
f96dfe5dba
add submodule trezor-common
2018-04-10 15:58:34 +02:00
Tomas Susanka
edbcd2012d
tests/device/nem: multisig tests
2018-04-10 14:50:01 +02:00
mcudev
14233fcc26
mpu_config: depend on MEMORY_PROTECT
2018-04-10 14:19:27 +02:00
mcudev
e907cb87bc
check_bootloader: depend on MEMORY_PROTECT
2018-04-10 14:19:27 +02:00
mcudev
56ff88a08f
update bootloader padding/alignment and integrate build process for bootloader and firmware
2018-04-10 14:19:27 +02:00
motty
45cde2249c
mod fujicoin SegWit
2018-04-10 14:14:39 +02:00
ZuluCrypto
8ac9068e02
Stellar - add protobuf messages and types
2018-04-10 14:12:07 +02:00
matejcik
233456f077
coins: add bitcore URL for Decred Testnet (copied from python-trezor)
2018-04-09 22:07:54 +02:00
Tomas Susanka
891865f948
tests/device/nem: tests fixes due to layout changes
2018-04-09 13:40:23 +02:00
Saleem Rashid
63a549aefb
coin_info: Prepend space to coin_shortcut
2018-04-09 12:43:26 +02:00
slush
46bc119962
coins_details: better erc20 parsing
2018-04-06 23:10:35 +02:00
slush
11e7af3a39
ethereum_tokens: Store ipfs_hash used for generating the list
2018-04-06 22:48:32 +02:00
slush
ddc7918c83
Generator of list of coins and tokens supported by Trezor.
2018-04-06 22:11:14 +02:00
Pavol Rusnak
24dc617f36
disable bcash tests for T2
2018-04-05 17:03:36 +02:00
Jan Pochyla
ebf4d2035e
src/trezor/utils: fix warnings in unimport_end
2018-04-05 17:01:21 +02:00
onvej-sl
8b61a7e365
python3 migration ( #149 )
2018-04-05 16:02:07 +02:00
Pavol Rusnak
7ea31aecf7
use python3 in travis
2018-04-05 14:52:59 +02:00
Pavol Rusnak
7111431890
move tests into tests/
2018-04-05 13:26:59 +02:00
Jan Pochyla
60bec0b4d1
src/trezor/wire: allow passing MessageType classes to register()
2018-04-05 12:34:51 +02:00
Jan Pochyla
2731742d34
src/trezor/messages: allow registration of custom messages
2018-04-05 12:34:51 +02:00
Pavol Rusnak
27702ea26a
fix build after cashaddr merge
2018-04-05 11:56:25 +02:00
Pavol Rusnak
e81fb38ab4
fix cashaddr test
2018-04-05 11:53:00 +02:00
Jochen Hoenicke
059555039c
cashaddr: Don't show coin prefix on the display.
...
While technically part of the address, the coin prefix, e.g., bitcoincash:
is implicit and doesn't need to be checked by the user. We still
include it in the QR-code though.
Also set case-insensitive flag for QR-code.
2018-04-05 11:28:06 +02:00
Jochen Hoenicke
1e91f92271
Increased address size to 130.
2018-04-05 11:28:06 +02:00
Jochen Hoenicke
cb6022ce04
Added support for cashaddr.
2018-04-05 11:28:05 +02:00
Jochen Hoenicke
e43a62cb03
Updated unit tests for cashaddr. ( #195 )
2018-04-05 11:20:08 +02:00
Jochen Hoenicke
e65adcf5ca
Added cashaddr support ( #120 )
...
The new bitcoincash address format.
2018-04-05 11:15:05 +02:00
Jochen Hoenicke
c61ab76ad7
Reworked bn_format.
...
- Fix off-by-one in buffer size.
- Don't return uninitialized stack if number too large.
2018-04-05 09:24:41 +02:00
Jochen Hoenicke
9add21439a
Adapted sha1 to match sha2 code.
...
Also fixes an unaligned uint32 access.
2018-04-05 09:24:41 +02:00
Jochen Hoenicke
2350bb015c
Fix another undefined shift.
...
Note that `(1 << j)` is undefined for j == 31, so `(1u << j)` should be
used.
2018-04-05 09:24:41 +02:00
Jochen Hoenicke
e1ad1512d0
Avoid division by zero.
...
Check that there is no overflow in `inputs_count + outputs_count`.
Check that previous transaction contains at least the spent output.
2018-04-05 09:23:23 +02:00
Jochen Hoenicke
f216328987
Fix initialisation of word_pincode
2018-04-05 09:23:23 +02:00
Pavol Rusnak
9c9b4bf5cb
messages: code cleanup after emulator change
2018-04-04 16:49:04 +02:00
matejcik
8851863f81
emulator: open a second socket for debuglink, same as T2
2018-04-04 16:21:43 +02:00
Tomas Susanka
0631a0a5b1
tests/device/nem: transfer multiple mosaics
2018-04-04 15:18:21 +02:00
Pavol Rusnak
5633207a43
bump bootloader version to 1.5.0, firmware version to 1.7.0
2018-04-04 15:04:46 +02:00
Tomas Susanka
7b1b9d3069
nem: IV is not copied
...
The IV copy was moved to trezor-crypto
(https://github.com/trezor/trezor-crypto/pull/140 ) so it is not needed
in trezor-mcu anymore
2018-04-04 15:02:39 +02:00
Tomas Susanka
51d9a809bc
tests: pytest xfail is used instead of skipping
2018-04-04 13:18:22 +02:00
Pavol Rusnak
399706ae22
storage: implement unfinished_backup flag
2018-04-04 12:42:52 +02:00
ZuluCrypto
7eef1df6b0
stellar - added some unit tests
2018-04-03 19:50:38 -06:00
ZuluCrypto
1d722f838a
add Stellar support
2018-04-03 19:50:22 -06:00
ZuluCrypto
0902aefd62
update generated protobuf files with Stellar changes
2018-04-03 19:49:56 -06:00
ZuluCrypto
b03d93c182
pb2py - add support for INT64
2018-04-03 19:47:54 -06:00
Pavol Rusnak
eff139e4fc
style: fix flake8 warning
2018-04-04 01:22:40 +02:00
Pavol Rusnak
a6e8a37239
src/apps/common/storage: add autolock_delay_ms variable
2018-04-04 01:19:14 +02:00