1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-21 05:48:23 +00:00
Commit Graph

9423 Commits

Author SHA1 Message Date
Pavol Rusnak
29154811bd Merge pull request #67 from jhoenicke/master
Fix ethereum_sign_tx
2016-08-22 11:06:39 +02:00
Saleem Rashid
a17bac1ab3 gitignore: ignore *.d files
Makefile in trezor/trezor-mcu uses dependency generation now, without
ignoring these files, git marks the submodules as dirty.
2016-08-21 20:25:35 +01:00
Jochen Hoenicke
05a73593f6
No special case encoding for '\x0', cleanups
The encoding for data '\x00' was tested here:
http://testnet.etherscan.io/tx/0x05d6f97de3ecd33ad4059fa9bd342a10ef99d580a2d881b0c5a0c9e8c55ff975
2016-08-19 23:35:11 +02:00
Jochen Hoenicke
c85600b9bd
Fix ethereum_sign_tx
- Workaround bug in rlp.utils.int_to_big_endian
- Command line tool now expects data to be a hexlified string
2016-08-19 23:15:38 +02:00
Jochen Hoenicke
22d0e7a053 Incorporated changes for updated master 2016-08-19 03:16:59 +01:00
Pavol Rusnak
efd443abe8 implement ethereum signing check 2016-08-19 03:14:38 +01:00
Pavol Rusnak
4e0a69b6ea refactor ethereum methods, show progress properly 2016-08-19 03:14:38 +01:00
Pavol Rusnak
1558d77ea0 split rlp_encode_length into rlp_encode_length and rlp_encode_list_length 2016-08-19 03:14:38 +01:00
Pavol Rusnak
3db323c599 fix printing of ethereum value and address 2016-08-19 03:14:38 +01:00
Pavol Rusnak
3d1ab24d92 simplify ethereum code, EthereumSignTx.data_length is the total length now 2016-08-19 03:14:38 +01:00
Pavol Rusnak
48008ddd8e implement layoutEthereumConfirmTx 2016-08-19 03:14:38 +01:00
Pavol Rusnak
7d9a56e678 fix curly braces in if statements 2016-08-19 03:14:38 +01:00
Nick Johnson
4a195ebd86 Don't include 0x in address display, so everything fits 2016-08-19 03:14:38 +01:00
Alex Beregszaszi
7432805b6a Fix special RLP case for length=1 firstbyte=0 2016-08-19 03:14:38 +01:00
Alex Beregszaszi
079d282541 Simplify send_request_chunk() 2016-08-19 03:14:38 +01:00
Alex Beregszaszi
78b1370de9 More input sanity checks in EthereumSignTx 2016-08-19 03:14:38 +01:00
Alex Beregszaszi
a617200c9c Add confirmation dialog to EthereumSignTx 2016-08-19 03:14:38 +01:00
Alex Beregszaszi
e0a1743003 Add sanity checks for data fields in EthereumSignTx 2016-08-19 03:14:38 +01:00
Alex Beregszaszi
ab49a7cb45 Calculate data length based on the initial chunk and the supplied length 2016-08-19 03:14:38 +01:00
Alex Beregszaszi
e0395b13eb Fix RLP length calculation 2016-08-19 03:14:38 +01:00
Alex Beregszaszi
2b6c991179 Split out send_signature and support short requests 2016-08-19 03:14:38 +01:00
Alex Beregszaszi
1d2f9b6ecd Initial signing implementation for Ethereum 2016-08-19 03:14:38 +01:00
Alex Beregszaszi
a9449520b8 Ethereum signing skeleton 2016-08-19 03:14:38 +01:00
Alex Beregszaszi
9c7e41f15b Reorder fsm.c for logical grouping of signing methods 2016-08-19 03:14:38 +01:00
Nick Johnson
a031b79e24 Add sha3.o to OBJS 2016-08-19 03:14:38 +01:00
Nick Johnson
352d296f77 Return the correct MessageType from EthereumGetAddress 2016-08-19 03:14:38 +01:00
Alex Beregszaszi
3c2d9111e2 Implement EthereumGetAddress 2016-08-19 03:14:38 +01:00
Alex Beregszaszi
bf465357ee Include placeholder handlers for the Ethereum protocol 2016-08-19 03:14:38 +01:00
Jochen Hoenicke
f4ed55377d Moved get_ethereum_address from ecdsa to bip32
The new name of the function is `hdnode_get_ethereum_address`
and it gets a hdnode as input as opposed to a public key.  This
also avoids first computing the compressed public key and then
uncompressing it.

Test cases were adapted to work with new function.  The test-vectors
are the same as for bip32 and independently checked with an adhoc
python implementation.
2016-08-18 16:21:33 +02:00
Pavol Rusnak
3be88e69ff
add unit tests for ethereum messages 2016-08-16 17:22:30 +02:00
Pavol Rusnak
245e2cc23d
update bip39bruteforce tool 2016-08-15 15:21:26 +02:00
Pavol Rusnak
78c6328b36
fix ethereum_sign_tx 2016-08-10 18:30:04 +02:00
Pavol Rusnak
6a1564ba87
fix firmware_update fetching firmware 2016-08-10 16:51:06 +02:00
slush0
a8ed2d41e8 Merge pull request #16 from trezor/chrome-extension-patch
Adding chrome extension to white-listed domains
2016-08-10 16:44:21 +02:00
Karel Bílek
6d0f3083f3 Adding chrome extension to white-listed domains 2016-08-10 15:59:28 +02:00
Jan Pochyla
e9427b04f3 fixes for latest V2 format, add checksum 2016-08-05 13:14:30 +02:00
Pavol Rusnak
c29457337b Merge pull request #100 from schinzelh/patch-1
add python-ecdsa dependency
2016-07-31 20:11:20 +02:00
Holger Schinzel
1dfca212f1 add python-ecdsa dependency 2016-07-23 10:06:19 +02:00
Pavol Rusnak
8bb7f550ad Merge pull request #65 from jhoenicke/master
Fix for older python version
2016-07-19 22:24:40 +02:00
Jochen Hoenicke
90122cf29a Fix for older python version 2016-07-19 21:37:54 +02:00
Pavol Rusnak
4d6d9fe8ba Merge pull request #62 from jhoenicke/pbkdf2_fast
Faster PBKDF2
2016-07-19 16:43:49 +02:00
Pavol Rusnak
e25fcc8d91 Merge pull request #99 from jhoenicke/master
Ask for confirmation on ECDH Session (gpg decrypt)
2016-07-19 16:38:33 +02:00
Jochen Hoenicke
7d8cb9018e
Ask for confirmation on ECDH Session (gpg decrypt)
Also fix abort to send a reply (a cancel failure)
2016-07-14 18:12:55 +02:00
Jan Pochyla
a129b072d3 ignore socket.recv timeout in udp transport 2016-07-14 15:57:05 +02:00
Jochen Hoenicke
d8e17d5d4d
Test cases for sha256 and sha512 2016-07-13 22:17:58 +02:00
Jochen Hoenicke
9101c050aa
Smoother progress bar for wakeup
Call interrupt twice as often; makes progress bar smoother.
2016-07-13 22:17:49 +02:00
Jochen Hoenicke
32bda8d1d9
Faster PBKDF2 by reusing intermediate results.
The old implementation needed 6 sha transformations per iterations:

- 2 for computing sha512 of seed,
- 2 for computing digests of ipads/opads,
- 2 for computing digests of intermediate hashes.

The first 4 transformations are the same in every iteration so we cache
them.  A new function hmac_sha512_prepare computes these digests.
We made sha512_Transform visible in pbkdf2 and prevent unneccessary
big/little endian conversions back and forth.
2016-07-13 22:17:23 +02:00
Jan Pochyla
0f48e15c48 fix v2 transport 2016-07-13 17:41:08 +02:00
Pavol Rusnak
b29db007f9 Merge pull request #15 from jhoenicke/segwit
Prepare protocol for segwit.
2016-07-11 16:07:32 +02:00
Jochen Hoenicke
1a66454066
GetAddress with scripttype
Added script_type field to GetAddress, which can later be
used to display segwit addresses on the Trezor.
2016-07-10 15:21:00 +02:00