Karel Bílek
e1fbae35d4
Renaming BTC->B2X
2017-11-08 14:50:37 +01:00
Pavol Rusnak
879a3e85bd
trezorhal: reorder stuff in common.{c,h}; remove unnecessary externs for functions
2017-11-07 20:44:30 +01:00
Pavol Rusnak
d9574bf131
trezorhal: enable BOR level 3, PVD level 5, turn off display in PVD handler
2017-11-07 18:06:42 +01:00
Jonathan Cross
972459281b
Fixing Bitcoin usage & adding note this is non-SegWit
2017-11-07 15:00:02 +01:00
Pavol Rusnak
e4360a7296
bootloader: change upgrade criteria to vendor keyset comparison
2017-11-07 13:46:18 +01:00
Jan Pochyla
88b1222ad0
tests: ignore new segwit tests
2017-11-06 18:36:05 +01:00
mcudev
e3a87b8ea4
firmware: get_entropy text wrapping
2017-11-06 18:03:01 +01:00
Jan Pochyla
237740de9c
storage: implement change_pin
2017-11-06 17:47:05 +01:00
Jan Pochyla
5e643e9195
modtrezorconfig: fix has_pin
2017-11-06 17:26:25 +01:00
Jan Pochyla
df77e74988
storage: fix unlock
2017-11-06 17:26:13 +01:00
Pavol Rusnak
f8c6043325
makefile: use build_dir variables where possible
2017-11-06 16:44:34 +01:00
Pavol Rusnak
3636a5f1b1
bootloader/vendorheader: vtrust is bitmap not scalar
2017-11-06 16:31:09 +01:00
Pavol Rusnak
5444410e04
unix: use return value from fread properly
2017-11-06 15:44:35 +01:00
Pavol Rusnak
e40c436b82
emu: increase heap size
2017-11-06 14:56:41 +01:00
mcudev
430900ea2c
boardloader: ensure check_sdcard fails when read fails
2017-11-06 14:36:56 +01:00
Pavol Rusnak
2e3b8336c2
unix: fix unused-result warning
2017-11-06 11:12:43 +01:00
Pavol Rusnak
a5fc76d8c9
don't use generic Exception, but rather specific subclass
2017-11-06 11:10:23 +01:00
Pavol Rusnak
1ab602423c
requirements: add pyblake2
2017-11-06 11:10:23 +01:00
Pavol Rusnak
ee7d260d2f
trezorhal: use const where possible for flash
2017-11-05 23:51:10 +01:00
Pavol Rusnak
30363305f4
modtrezorconfig: use secbool, not bool
2017-11-05 23:32:32 +01:00
Jan Pochyla
a255938903
main: unlock storage after boot
2017-11-05 21:04:47 +01:00
Jan Pochyla
8288255048
storage: use new api, remove pin
2017-11-05 21:04:47 +01:00
Jan Pochyla
1f6cc70480
flash: remove flash_set_option_bytes
2017-11-05 21:00:38 +01:00
Jan Pochyla
0376ff7f48
storage, norcow: use secbool
2017-11-05 20:46:59 +01:00
Jan Pochyla
662cfc1b2c
unix/flash: use secbool
2017-11-05 20:46:59 +01:00
Jan Pochyla
418f035811
storage: add has_pin and change_pin
...
TODO: finish change_pin
2017-11-05 20:46:59 +01:00
Jan Pochyla
c2ec40bebf
flash: flash_init returns bool
2017-11-05 20:46:58 +01:00
Jan Pochyla
353883e0f3
storage: rename constant
2017-11-05 20:46:11 +01:00
Jan Pochyla
b6ba95625c
norcow: port on top of flash.c, remove config
2017-11-05 20:46:11 +01:00
Jan Pochyla
27bfcfe1af
norcow: import into tree
2017-11-05 20:46:11 +01:00
Jan Pochyla
d4443a4f7f
unix/flash: start with 0xff
2017-11-05 20:46:11 +01:00
Jan Pochyla
12708b4987
unix/flash: default FLASH_FILE
2017-11-05 20:46:11 +01:00
Jan Pochyla
c78babdc12
flash: add flash_get_address
2017-11-05 20:46:11 +01:00
Jan Pochyla
f07b4dda0b
modtrezorconfig: extract pin & unlocking to storage.c
2017-11-05 20:46:11 +01:00
Jan Pochyla
fdc2f6a39d
modtrezorconfig: use new flash API
2017-11-05 20:46:11 +01:00
Jan Pochyla
543e8c5007
flash: add unix/flash.c
2017-11-05 20:46:11 +01:00
Jan Pochyla
4cabe40220
storage: pin checking in c proof of concept
...
TODO: move out of modtrezorconfig
TODO: flash unix mock
2017-11-05 20:46:11 +01:00
mcudev
2ebd2b1b6b
jump_to: clear out before the next stage NMI exception handler can run
2017-11-05 19:37:05 +01:00
mcudev
ffc16a98b5
rng: header cleanup, loop codestyle
2017-11-05 19:37:05 +01:00
mcudev
816f78c052
builds: refer to CMSIS header which includes HAL due to USE_HAL_DRIVER
2017-11-05 19:37:05 +01:00
mcudev
cc9aa8c197
cleanup: do not use reserved identifiers for header guards
2017-11-05 19:37:05 +01:00
Pavol Rusnak
892bb8501a
fsm: ignore case for NEM addresses
2017-11-05 19:30:33 +01:00
Jochen Hoenicke
600c61b3dc
Updated trezor-crypto.
2017-11-05 19:28:07 +01:00
Jochen Hoenicke
bbf6b1b097
Implemented VerifyMessage for bech32
2017-11-05 19:28:07 +01:00
Jochen Hoenicke
0f50b816e6
Wrap long addresses in three lines
2017-11-05 19:28:07 +01:00
Jochen Hoenicke
97581928de
Enable Segwit Bech32 addresses
...
Increase the size of the addresses in protobuf.
Fix layout2.c to handle longer addresses.
Add a field bech32_prefix to coins.h
Adapted the coins-gen script.
Added bech32 support in signing.c and transaction.c
2017-11-05 19:28:07 +01:00
Jochen Hoenicke
cf3dc6051c
Omit leading space in shortcut in GetFeatures
2017-11-05 19:23:34 +01:00
Jochen Hoenicke
1566631023
Improved backwards compatibility of GetFeatures
...
Set all CoinType fields except signed_message_header.
Move static assert into the function where it is needed.
2017-11-05 19:23:34 +01:00
Jochen Hoenicke
b5fa8a266a
New CoinInfo separated from protobuf structures
...
Having CoinType using the protobuf structures has several disadvantages.
- We always need to change trezor-common if we need a new field (like
bech32 prefix)
- Every time Trezor initializes it sends all this information out and
nobody cares.
- The protobuf structures add storage overhead due to their fixed size.
I also removed most of the `has_` fields except for forkid:
- `has_segwit` was merged with segwit
- `has_coin_shortcut` can be replaced by test for NULL if necessary.
The fields were reordered for better padding.
2017-11-05 19:23:34 +01:00
Pavol Rusnak
77cc62644d
firmware: don't return CYCCNT contents as it is always zero anyway (cycle counter is disabled)
2017-11-05 18:02:47 +01:00