Saleem Rashid
59147463e2
coins: Update DigiByte
2018-04-11 10:14:00 +02:00
Pavol Rusnak
783f1c0323
storage: refactor default/minimum lock storage, change default values
2018-04-10 23:46:41 +02:00
matejcik
ab62f5db6f
flake8: delete trailing lines
2018-04-10 16:01:22 +02:00
matejcik
928498c666
coins: wrap JSON errors in an ImportError
2018-04-10 15:58:34 +02:00
matejcik
bd43363b1c
coins: refactor, use data from coins.json instead of hardcoded lists
2018-04-10 15:58:34 +02:00
matejcik
c4f38fd740
trezor-common: update to version with Decred Testnet API URL
2018-04-10 15:58:34 +02:00
matejcik
4b0e057d4e
docs: contributing info for the new submodule
2018-04-10 15:58:34 +02:00
matejcik
b82551ce0d
travis: check that generated protobuf messages are identical to the commited ones
2018-04-10 15:58:34 +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
e3d59eedfb
tx_api: drop completely unused Smartbit API
2018-04-10 15:58:34 +02:00
matejcik
71129fffbf
travis: run flake8 as one command
...
also exclude vendor subdir over which we possibly don't have control
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
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