Pavol Rusnak
7a3a45321c
import requests just in firmware_update function
2016-05-25 02:16:06 +02:00
Pavol Rusnak
f8a743c652
Merge pull request #87 from jhoenicke/storagefix
...
Bugfix: restore storage.
2016-05-25 01:57:39 +02:00
Jochen Hoenicke
87bfd5a829
Bugfix: restore storage.
...
Storage restore was broken due to my previous patch.
2016-05-25 01:14:32 +02:00
Pavol Rusnak
4607cdfb58
Merge pull request #86 from jhoenicke/master
...
Bootloader update: Faster flashing, smoother animation.
2016-05-25 00:57:37 +02:00
Jochen Hoenicke
af442d17e0
Faster flashing, smoother animation.
...
Compute sha256 hahsum at the end.
Display progress bar for flash erase.
2016-05-25 00:41:13 +02:00
Nick Johnson
67bd1c223e
Add support for get_ethereum_address to trezorlib and trezorctl.
2016-05-24 20:33:17 +01:00
Nick Johnson
1dce3088f3
Update PB for Ethereum message types
2016-05-24 20:32:31 +01:00
Pavol Rusnak
a59eb22bcd
use env for python
2016-05-24 20:47:57 +02:00
Pavol Rusnak
c691f9b5e9
fix python shebangs
2016-05-24 20:31:01 +02:00
Pavol Rusnak
94b6733a6e
fix ar usage
2016-05-24 20:27:45 +02:00
Jochen Hoenicke
053fe7cb66
Remove Cancel Option
...
U2F doesn't allow cancellation on device.
Also fix button state in protect. This fixes the following bug:
1. wipe device
2. press and hold right button, click left button to cancel.
3. release all buttons.
4. wipe device again, now automatic.
2016-05-24 01:59:37 +02:00
Jochen Hoenicke
68b34af19e
More standard conform behaviour
...
Tested with u2f-ref-code/u2f-tests.
Known incompatibility:
- changed challenge invalidates button press.
2016-05-24 01:16:55 +02:00
Pavol Rusnak
0b5c08a166
Merge pull request #11 from axic/ethereum-protocol
...
RFC: Ethereum support (GetEthereumAddress and SignEthereumTx)
2016-05-24 00:32:39 +02:00
Alex Beregszaszi
072ca020cf
Clarify field limits in EthereumSignTx
2016-05-23 21:08:37 +01:00
Alex Beregszaszi
2b72edf8f3
Include initial data chunk (<= 1024 bytes) in EthereumSignTx
2016-05-23 20:43:40 +01:00
Alex Beregszaszi
4d8cf6f8dd
Add support for Ethereum with two new messages: EthereumGetAddress and EthereumSignTx
2016-05-23 20:43:40 +01:00
Alex Beregszaszi
4e7da75c6e
Rewrite ecdsa_uncompress_pubkey() using ecdsa_read_pubkey()
2016-05-23 19:10:06 +01:00
Alex Beregszaszi
aecf8671a1
Add sha3 to cmake
2016-05-23 19:10:06 +01:00
Alex Beregszaszi
1b8e3d557f
Implement ecdsa_get_ethereum_pubkeyhash()
2016-05-23 19:10:06 +01:00
Pavol Rusnak
27b3c63d85
cleanup usb in bootloader
2016-05-23 19:42:36 +02:00
Jochen Hoenicke
a1ba431d94
Use more sensible HID descriptor
2016-05-23 19:20:21 +02:00
Pavol Rusnak
54c8bfd1d4
import print function from future
2016-05-20 22:27:20 +02:00
Jochen Hoenicke
bc92fb95a5
Clear pinarea on storage_init if upgrade fails
...
This also cleans up the code a bit and resets storage_uuid if upgrade fails.
2016-05-20 20:13:43 +02:00
Pavol Rusnak
1fe94e7fa5
more python3 fixes
2016-05-20 19:18:33 +02:00
Pavol Rusnak
021389efe8
more fixes
2016-05-20 17:20:11 +02:00
Pavol Rusnak
46119bd007
clear pin failures on wipe and when in debug mode
2016-05-20 17:00:10 +02:00
Pavol Rusnak
52ad4e9f0d
update get_public_key and get_address tests to reflect reality
2016-05-20 16:34:49 +02:00
Pavol Rusnak
fdc3cff1d6
use requests instead of urllib mess
2016-05-20 16:09:14 +02:00
Pavol Rusnak
61579deff6
update signidentity tests
2016-05-20 15:28:52 +02:00
Pavol Rusnak
f7cc1cd3a1
remove FIXME :)
2016-05-20 13:55:43 +02:00
Pavol Rusnak
de9b10fd90
more python3 stuff
2016-05-20 13:46:51 +02:00
Roman Zeyde
c567ceec94
transport_hid: fix buffer handling for Python 3
2016-05-20 13:46:51 +02:00
slush0
64fadde3e0
Passes first unit tests (against trezor-emu over transport_pipe).
...
WIP: Issue with console printing of protobuf messages (probably bug in protobuf for python3 itself).
WIP: Disabled Bridge transport because of json_protobuf incompatibility with python3.
WIP: Broken expectations of returned objects in unit tests
2016-05-20 13:46:51 +02:00
slush0
6ec2ff3eac
Preparation for python3 support (WIP)
2016-05-20 13:46:51 +02:00
Pavol Rusnak
79a64abd24
Merge branch 'master' of github.com:trezor/python-trezor
2016-05-20 13:31:22 +02:00
Jochen Hoenicke
96f30a0ba7
Don't ask for passphrase with u2f.
2016-05-20 01:49:20 +02:00
slush0
ab514b6bb5
Fixed UDP transport
2016-05-19 18:59:23 +02:00
Pavol Rusnak
828026dd40
Merge branch 'segwit' of github.com:jhoenicke/python-trezor
2016-05-19 11:59:19 +02:00
Pavol Rusnak
ec870f3a57
update protobuf, disable filecache
2016-05-19 11:50:33 +02:00
Jochen Hoenicke
a0571e02a7
Removed more magic numbers.
...
`KEY_PATH_LEN`: length of the derivation path in the key handle
`KEY_PATH_ENTRIES`: number of entries in derivation path including
initial BIP-43 selector.
`KEY_HANDLE_LEN`: length of key handle (derivation path + HMAC checksum)
2016-05-18 03:05:04 +02:00
Alex Beregszaszi
7d68a6ee17
Add ecdsa_uncompress_pubkey()
...
Code based on @Arachnid's PR, but has more strict checks
2016-05-17 19:38:14 +01:00
Alex Beregszaszi
d68906ec4e
Use proper option for USE_KECCAK via options.h
2016-05-17 18:45:08 +01:00
Pavol Rusnak
d20671b517
handle various signed_message_headers correctly
2016-05-17 18:13:08 +02:00
Pavol Rusnak
36a574056d
add coin to VerifyMessage
2016-05-17 18:06:00 +02:00
Pavol Rusnak
85e1c80cfc
fix last commit
2016-05-17 18:00:03 +02:00
Pavol Rusnak
70482c82ac
add CoinType.signed_message_header
2016-05-17 17:35:03 +02:00
Pavol Rusnak
041eaa5e4b
refactor u2f dialogs into a separate function
2016-05-16 18:58:13 +02:00
Pavol Rusnak
ad2bab0186
Merge branch 'u2f' of github.com:jhoenicke/trezor-mcu into u2f
2016-05-16 18:22:03 +02:00
Pavol Rusnak
c123db71b9
Merge branch 'master' into u2f
2016-05-16 18:19:31 +02:00
Pavol Rusnak
9006c90a59
use MEMSET_BZERO and U2F_APPID_SIZE macros
2016-05-16 18:18:21 +02:00