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
Pavol Rusnak
18d8cb3c56
add project website (trezor.io) to license header
2017-11-05 17:47:23 +01:00
Pavol Rusnak
8190e0909e
boardloader: set BOR level to 2
2017-11-05 16:42:20 +01:00
mcudev
1737f17f43
boardloader: flash option bytes, production changes
2017-11-05 16:42:20 +01:00
mcudev
15bdc59b46
touch: reset touch panel
2017-11-05 16:20:37 +01:00
mcudev
d9a64fbb6a
touch: app note related updates and exit loop upon detection
2017-11-05 16:20:37 +01:00
mcudev
2ae1c99b06
touch: address simplification
2017-11-05 16:20:37 +01:00
mcudev
6aeccd5ee1
touch: make i2c_handle static and trivial simplification
2017-11-05 16:20:37 +01:00
mcudev
d1ed02fb98
touch: use full 12-bit X and Y values
2017-11-05 16:20:37 +01:00
Pavol Rusnak
dcb09012fb
docs: reorganize files
2017-11-05 04:00:05 +01:00
Pavol Rusnak
15b926dbbd
docs: small changes
2017-11-05 03:42:43 +01:00
Pavol Rusnak
2869d4cbcb
build: cosmetic changes to travis and docker build
2017-11-04 15:01:44 +01:00
Pavol Rusnak
396a25401a
docs: update readme
2017-11-04 02:18:18 +01:00
Pavol Rusnak
e0f83a5fb4
update license (use GPLv3)
2017-11-04 02:02:04 +01:00
Pavol Rusnak
ad517f376a
build: add build using docker
2017-11-04 01:56:05 +01:00
Pavol Rusnak
a067dca054
hardware: add interrupt/reset pins to touch panel description
2017-11-03 19:48:13 +01:00
mcudev
edd95d9b65
secbool: add unsigned literal suffixes
2017-11-03 19:38:18 +01:00
mcudev
7e01a733a3
shutdown: reorder operations
2017-11-03 19:33:15 +01:00
mcudev
5be5e19f99
clear_otg_hs_memory: remove unpredictable write
2017-11-03 19:33:15 +01:00
Jochen Hoenicke
a24e8a0484
Remove magic constants
...
Use defines for wallet depth and change chain. Updated some comments
to clarify what is checked.
2017-11-03 19:12:41 +01:00