1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-20 21:38:26 +00:00
Commit Graph

12623 Commits

Author SHA1 Message Date
Karel Bílek
4ba387d4f8 Adding genesis block hash 2016-09-23 14:33:52 +02:00
Pavol Rusnak
fb8e76d8f6
add coins.json (extracted from trezor-mcu coins.s) 2016-09-23 13:24:41 +02:00
Pavol Rusnak
153405b843
update udev rules 2016-09-22 17:54:13 +02:00
Jan Pochyla
80ffa27052 enable crc32, update protocol, add session closing 2016-09-21 16:51:29 +02:00
slush0
531350d6ba Merge pull request #71 from sp4ke/sp4ke-patch-1
Avoid repeating keyword argument
2016-09-19 01:41:11 +02:00
Chakib Benziane
fc2cc7a284 Avoid repeating keyword argument
Repeating the keyword argument breaks package build with the following error: "SyntaxError: keyword argument" repeated
2016-09-18 23:58:10 +02:00
Pavol Rusnak
ea98665d83
update readme 2016-09-14 21:36:16 +02:00
Jan Pochyla
4d3e4574ef add session request to TransportV2, add @session helper 2016-09-13 12:25:06 +02:00
Saleem Rashid
db1b638cdf gui: update for newer HDNode API (#68) 2016-09-11 00:35:02 +02:00
bitcartel
e0e190b3dc
Update coins.c for Zcash mainnet (#111) 2016-08-31 14:02:53 +02:00
Pavol Rusnak
5fc6dc3155 Merge pull request #69 from jhoenicke/master
Unit Test: PIN protection timeout
2016-08-30 13:03:57 +02:00
Pavol Rusnak
8d7c1ec543 Merge pull request #110 from jhoenicke/master
More alignment fixes
2016-08-30 12:55:37 +02:00
Jochen Hoenicke
ad5b693ffa Unit Test: PIN protection timeout
Don't expect any minimum timeout on the first PIN entry.
2016-08-30 12:55:18 +02:00
Jochen Hoenicke
6d65551b82
More alignment fixes 2016-08-30 12:39:37 +02:00
Pavol Rusnak
dec9484a17
update version 2016-08-30 10:33:13 +02:00
Pavol Rusnak
fd79570aaf
fix unaligned access in serialno; update trezor-crypto 2016-08-29 22:37:27 +02:00
Pavol Rusnak
d7c0fbc379
add const where possible (for message parsing) 2016-08-29 22:36:18 +02:00
Pavol Rusnak
62b8f845f2 Merge pull request #67 from jhoenicke/master
sha2: fix unaligned access.
2016-08-29 22:03:32 +02:00
Jochen Hoenicke
19a1f501c4
Simplified sha256_Final/sha512_Last
- Fix the bug where we zero too many bytes in sha512_Last
  (SHORT_BLOCK_LENGTH != BLOCK_LENGTH -2).
- Get rid of an if branch.
- Don't reverse the last two words in 512_Last that are written later.
- make 256_Final and 512_Last look the same.
2016-08-29 21:55:57 +02:00
Jochen Hoenicke
b3e6eecfce
sha2: Fix unaligned access 2016-08-29 21:55:11 +02:00
Pavol Rusnak
aaf2631dd6
sign firmware inside docker container 2016-08-29 19:20:50 +02:00
Pavol Rusnak
0a55a9e415
update to nanopb 0.2.9.3 2016-08-29 12:59:29 +02:00
Pavol Rusnak
fff16e813a
add link to protobuf definition in coins.c 2016-08-29 10:44:40 +02:00
Pavol Rusnak
6f342816e1 Merge pull request #108 from jhoenicke/fastspi
Faster SPI communication
2016-08-29 10:39:09 +02:00
Pavol Rusnak
10a2a0014b Merge pull request #66 from axic/bignum
Bignum: add bn_one
2016-08-28 14:28:27 +02:00
Alex Beregszaszi
7e7e462be7 bignum: introduce bn_one 2016-08-27 13:15:20 +01:00
Alex Beregszaszi
e1dfa81ec5 tests: add bn_is_less 2016-08-27 13:07:10 +01:00
Jochen Hoenicke
5dae02bbbf
Faster SPI communication
According to specs, the display can handle up to 10 MHz SPI traffic
(minimum cycle time is 100 ns). This patch sets the SPI port to
7.5 MHz (60 MHz clock with divisor 8).  In my tests the display works
even fine with SPI frequency at 60 MHz.  I also minimized the delays
(the spec doesn't require a long setup time) and use the registers to
check when transfer is done instead of using a fixed delay.

This patch also changes the swipe function to swipe pixel by pixel.
Otherwise, the swipe would happen too fast to be seen.

This changes the display update time from 11 ms to 1.5 ms.
2016-08-26 18:43:16 +02:00
Pavol Rusnak
2bd84028c5 Merge pull request #65 from axic/bignum
Bignum: add tests and support little endian mode
2016-08-26 15:44:04 +02:00
Alex Beregszaszi
8581614d66 bignum: introduce write uint32/uint64 2016-08-26 12:41:54 +01:00
Alex Beregszaszi
7956c2f2f1 bignum: implement bitcount 2016-08-26 12:31:51 +01:00
Alex Beregszaszi
29e82018cd bignum: rename bn_load_uint* to bn_read_uint* 2016-08-26 12:14:01 +01:00
Alex Beregszaszi
4eb2bd239c tests: add bn_zero/bn_is_zero 2016-08-26 12:12:54 +01:00
Alex Beregszaszi
97454d9cbc bignum: use the compiler's built in memory copy for bn_copy 2016-08-26 12:12:54 +01:00
Alex Beregszaszi
d061139da9 bignum: introduce load uint32/uint64 2016-08-26 12:12:54 +01:00
Alex Beregszaszi
339d2f44a9 bignum: introduce is_even/is_odd 2016-08-26 12:12:54 +01:00
Pavol Rusnak
4c379e36ec Merge pull request #103 from axic/ethereum
Implement Ethereum support
2016-08-26 11:01:45 +02:00
Alex Beregszaszi
dd25a2ee5a bignum: introduce copy 2016-08-26 01:08:55 +01:00
Alex Beregszaszi
62a0db8c4e bignum: introduce read/write_le 2016-08-25 23:18:24 +01:00
Alex Beregszaszi
ec316b6afc tests: add bn_is_equal 2016-08-25 23:07:28 +01:00
Alex Beregszaszi
8eebfb1986 tests: add bn_write_be 2016-08-25 22:51:34 +01:00
Alex Beregszaszi
d890f4d859 tests: include bn_read_be 2016-08-25 22:48:06 +01:00
Jochen Hoenicke
bc55013942
Simplified one-byte encodings 2016-08-25 13:02:14 +02:00
Jochen Hoenicke
91dcead35e
Gas estimate screen, tweaked display of value 2016-08-23 22:05:24 +02:00
Jochen Hoenicke
195b7e47e1
More unit tests for ethereum signing 2016-08-23 22:00:50 +02:00
Pavol Rusnak
39f8d57b7e Merge pull request #68 from jhoenicke/master
Ethereum: Allow leading 0x in data. Handle new contracts.
2016-08-23 11:08:25 +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
a37a2e3612
Confirm data, streamlining code
Set all size fields to 0, if fields was not given to avoid the conditions
later.

Display data and ask for confirmation.
2016-08-22 23:18:38 +02:00
Pavol Rusnak
7ce6b8b147 Merge pull request #63 from jhoenicke/master
Moved get_ethereum_address from ecdsa to bip32
2016-08-22 11:09:02 +02:00
Pavol Rusnak
3661b04936 Merge pull request #64 from spudowiar/ignore-dependency-generation
Add generated dependency files to .gitignore
2016-08-22 11:07:37 +02:00