Pavol Rusnak
e7832b2beb
Bitcoin Cash -> Bcash
2017-07-30 23:37:02 +02:00
Pavol Rusnak
3ec5d354ba
coins: change coin_name for TBCH, add coin.firmware flag
2017-07-30 23:14:34 +02:00
Jochen Hoenicke
3440ead4c9
Fix multisig for BCC
2017-07-30 22:58:26 +02:00
Jochen Hoenicke
5f6948e66b
Remove progress update
2017-07-30 22:57:44 +02:00
Jochen Hoenicke
3c75d28c78
Check input bip32 path again on second pass.
2017-07-30 22:51:18 +02:00
Jochen Hoenicke
6b615ce405
No quadratic hashing for hardfork
...
Don't hash the whole transaction if forkid is set. Instead use the
same codepath as for segwit.
Rename segwit_to_spend to authorized_amount and use it for forkid
amount and segwit amount validity checks.
Removed some duplicated code.
2017-07-30 22:51:18 +02:00
Saleem Rashid
979a6ef266
signing: Skip TX_META with SIGHASH_FORKID
2017-07-30 22:51:18 +02:00
Saleem Rashid
a34554b091
signing: Add SIGHASH_FORKID support
2017-07-30 22:51:18 +02:00
Saleem Rashid
841af54061
vendor: Update trezor-common
2017-07-30 22:51:18 +02:00
Pavol Rusnak
469073b350
vendor: update trezor-crypto
2017-07-30 21:57:32 +02:00
Pavol Rusnak
91c4cbdbd0
setup: move stack protector variable to setup.h
2017-07-30 21:56:30 +02:00
Pavol Rusnak
c8ddd90409
setup: enable Clock Security System interrupt
2017-07-30 21:40:07 +02:00
Pavol Rusnak
0760ff0468
setup: move stack smashing protection code to setup.c
2017-07-30 21:40:07 +02:00
Saleem Rashid
e33e1ec0b1
fsm: Do not wipe msg_resp in DebugLinkGetState
2017-07-30 18:00:01 +02:00
Saleem Rashid
dc1ed85c96
coins: Change BCC to BCH
2017-07-30 17:49:26 +02:00
Pavol Rusnak
3a35a5a5be
tests: rework device tests to checkout just device_tests subdirectory from python-trezor repo
2017-07-28 19:45:58 +02:00
Pavol Rusnak
596d41e68c
build: fix one missing change of micropython->embed
2017-07-28 19:24:26 +02:00
Pavol Rusnak
3f29925c1c
travis: install python-trezor from master
2017-07-28 19:12:36 +02:00
Pavol Rusnak
fe5b5c1940
tests: update to pytest, regenerate protobuf
2017-07-28 18:58:31 +02:00
Pavol Rusnak
81d5170c10
tests: start rewriting device tests to pytest
2017-07-28 18:07:20 +02:00
Jan Pochyla
bab1303b1b
tools/build_mocks: adapt to micropython -> embed rename
2017-07-28 16:36:14 +02:00
Jan Pochyla
803e39c2a8
make: adapt to micropython -> embed rename
2017-07-28 16:33:40 +02:00
Jan Pochyla
55bd4a0806
rename /micropython to /embed
2017-07-28 16:23:45 +02:00
Pavol Rusnak
8a1d211ee9
tests: fix flake8 errors
2017-07-28 16:08:33 +02:00
Jan Pochyla
6df01fbfa3
TransportV2: adapt to recent changes
...
- remove checksum
- add sequence numbers
2017-07-28 15:58:20 +02:00
Pavol Rusnak
5309baf48e
tests: reduce unhexlify reuse
2017-07-28 15:24:18 +02:00
Pavol Rusnak
11bfacc9b3
tests: bytes are not necessary in unhexlify
2017-07-28 15:17:19 +02:00
Pavol Rusnak
f3010097c3
reformat coins.json
2017-07-28 15:13:26 +02:00
Saleem Rashid
1d0399d0b0
coins: Add Bitcoin Cash
2017-07-28 15:06:03 +02:00
Saleem Rashid
dd8ec3231f
coins: Add forkid
2017-07-28 15:06:03 +02:00
Jochen Hoenicke
9917d9ebfc
New unit tests for signing (bitcoin cash)
2017-07-27 21:51:00 +02:00
Saleem Rashid
6580044196
test_check: Clean up test_bignum tests
...
This also tests zero
2017-07-27 21:20:43 +02:00
Saleem Rashid
85cb0b4f2c
bignum: Fix bn_digitcount
...
bn_digitcount used to use bn_bitcount. This would give the maximum
digits, which would often be higher than the actual number. This would
result in leading zeroes in bn_format.
2017-07-27 21:20:43 +02:00
Saleem Rashid
43ea1392f2
bignum: rename bn_maxdigitcount to bn_digitcount
...
This reverts commit 5dbdf18b6c
.
2017-07-27 21:20:43 +02:00
Pavol Rusnak
5e1a3ad6e0
tests: add more tests for bn_format{,_uint64}
2017-07-27 19:57:04 +02:00
Pavol Rusnak
ea7e1b860d
test: reorder function in source
2017-07-27 19:28:00 +02:00
Pavol Rusnak
5dbdf18b6c
bignum: rename bn_digitcount to bn_maxdigitcount (can return value one higher than the real result)
2017-07-27 19:21:56 +02:00
Pavol Rusnak
fd78df0e57
test: add more tests for bitcount and digitcount
2017-07-27 18:43:26 +02:00
Saleem Rashid
11d424cdef
vendor: Update trezor-crypto
2017-07-27 18:11:26 +02:00
Saleem Rashid
38b6332db5
layout2: Extract BITCOIN_DIVISIBILITY constant
2017-07-27 18:11:26 +02:00
Saleem Rashid
66993f9e92
bignum: Add bn_format_uint64
2017-07-27 17:55:33 +02:00
Saleem Rashid
da586bb37a
test_check: Add more bn_format tests
2017-07-27 17:55:33 +02:00
Saleem Rashid
88527dde7a
bignum: Add exponent and trailing to bn_format
2017-07-27 17:55:33 +02:00
Saleem Rashid
22ebd62b85
test_check: Update bn_format tests
2017-07-27 17:55:33 +02:00
Saleem Rashid
558bc429ec
bignum: Add bn_digitcount
2017-07-27 17:55:33 +02:00
Pavol Rusnak
efe36b3a2f
unit_tests: rewrite from unittest to pytest
2017-07-26 14:48:20 +02:00
Pavol Rusnak
c3bf0e4086
enable segwit for bitcoin \o/
2017-07-25 19:32:20 +02:00
Pavol Rusnak
b5f9a5738f
segwit support for SignMessage, VerifyMessage
2017-07-25 19:32:20 +02:00
Pavol Rusnak
d8ad44f60a
protob: add SignMessage.script_type
2017-07-25 19:32:20 +02:00
Pavol Rusnak
11b686a9f2
tests: add tests for Segwit SignMessage/VerifyMessage
2017-07-25 19:29:28 +02:00