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
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