1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-30 03:18:20 +00:00
Commit Graph

327 Commits

Author SHA1 Message Date
matejcik
872e0fb0e0 core: lower scheduler resolution to milliseconds
This avoids problems with large timeouts causing the scheduler queue to
think the time counter has overflown, and ordering the autolock task before
immediate tasks.

The maximum reasonable time difference is 0x20000000, which in
microseconds is ~8 minutes, but in milliseconds a more reasonable ~6
days.
2020-06-04 16:18:46 +02:00
matejcik
02565f3bfb core/loop: introduce spawn syscall 2020-06-04 16:18:46 +02:00
Tomas Susanka
9a59b99fa9 docs: add few more third-parties 2020-05-19 08:43:07 +00:00
Tomas Susanka
6ec27d09ca docs: link to master UI report 2020-05-18 12:59:59 +00:00
Tomas Susanka
445f56d387 core/bitcoin: finalize bitcoin refactor
- core/bitcoin: move common files to the app's root
- core/bitcoin: use require_confirm instead of confirm
- core: move bitcoin unrelated functions from 'bitcoin' to a new 'misc' app
- core/bitcoin: use relative imports inside the app
- core: rename wallet app to bitcoin
- core/wallet: replace SigningErrors and the other exception classes with wire.Errors
2020-05-18 14:31:51 +02:00
Pavol Rusnak
922a33e946
docs: add storage/addon-block documentation draft 2020-05-13 17:30:42 +02:00
Pavol Rusnak
2ad4554d69
docs: better typo in contributing.md 2020-05-12 13:57:49 +02:00
Tomas Susanka
3e07382a0e docs: add coinmate and liskish wallet to third parties 2020-05-05 11:37:19 +00:00
Tomas Susanka
05aabc64bb docs: document CI jobs 2020-05-04 08:51:57 +02:00
Tomas Susanka
3096a5caa6 docs: add PR workflow info; move CONTRIBUTING to docs 2020-04-30 14:49:47 +02:00
Tomas Susanka
2ccb3aa04e docs/third-parties: explain connect dependencies 2020-04-29 09:46:38 +02:00
Tomas Susanka
f054bf6e95 docs/third-parties: remove Augur
It does not use Trezor anymore, Connect will be removed from theirs
dependencies. See https://github.com/AugurProject/augur/issues/7421.
2020-04-24 15:32:31 +00:00
Tomas Susanka
65b0eae89d docs: document affected third parties by a breaking change 2020-04-22 15:16:55 +02:00
matejcik
9e90294f24 docs: add event loop to TOC 2020-04-17 15:08:16 +02:00
matejcik
c16f54ad04 docs: document trezor-core event loop 2020-04-17 15:08:16 +02:00
Tomas Susanka
38599e3364 docs: document when firmware wipes storage 2020-03-25 19:06:57 +01:00
Tomas Susanka
8ddf799cad docs/tests: update UI tests reporting 2020-03-23 17:22:56 +00:00
Tomas Susanka
8b5aab522c docs/core: add info about exceptions usage 2020-02-27 20:04:42 +00:00
matejcik
b916072389 common: restore PassphraseAck.state 2020-02-24 15:15:09 +01:00
Tomas Susanka
cd90d2b792 docs: add link to ui tests doc 2020-02-24 11:17:47 +00:00
Tomas Susanka
2e2f5fd421 docs/legacy: MEMORY_PROTECT needs to be 0 for custom built 2020-02-18 14:28:44 +00:00
Tomas Susanka
394fad9d6d docs/common: add note on session id / state size 2020-02-18 13:55:55 +00:00
Tomas Susanka
171067ffff docs/common: add link to passphrase migration 2020-02-18 12:54:42 +00:00
Tomas Susanka
02f2158c1d docs: passphrase migration info 2020-02-18 12:44:33 +00:00
Tomas Susanka
577daf09fe tests: introduce --ui-check-missing to test/remove missing tests 2020-02-18 09:33:21 +01:00
Tomas Susanka
b4846e484a docs/common: add links and fix some typos 2020-02-12 09:45:33 +00:00
Tomas Susanka
2c0504ad1c
Merge pull request #803 from trezor/passphrase
Passphrase Redesign
2020-02-11 16:01:59 +01:00
matejcik
05a1d6f771 core/debug: add "show arbitrary screen" capability, for easier prototyping 2020-02-11 11:53:34 +01:00
Tomas Susanka
e4077e0634 docs/core: improve build section 2020-02-10 13:05:41 +01:00
Tomas Susanka
fc565765cd
finalize docs 2020-02-07 11:40:59 +00:00
Tomas Susanka
90d5cdfd5b
all: rework passphrase
The `on_device` field is being moved to PassphraseAck, State messages
are removed. Features newly contain `session_id`.
2020-02-07 11:40:58 +00:00
Tomas Susanka
afa6bb77bf docs: fix hash1 field in firmware header 2020-02-05 10:32:53 +00:00
Tomas Susanka
3664d7b37b docs: fix link to headertool 2020-02-04 09:03:57 +00:00
Tomas Susanka
50521bb16b tests/ui: add readme 2020-01-29 12:24:26 +00:00
Tomas Susanka
d2f8a83057 docs: fix title and trezorlib readme link
By adding it to SUMMARY.md.
2020-01-28 09:30:04 +00:00
matejcik
a1ed52c702 docs: add link to Python README 2020-01-27 19:41:50 +01:00
matejcik
6cf48bf485 ci: use explicit trezor.log location 2020-01-23 18:43:20 +01:00
matejcik
d28caf990e docs: update emulator documentation 2020-01-23 18:43:20 +01:00
matejcik
2294fb0453 core: drop unused env variables (TREZOR_TEST, TREZOR_SAVE_SCREEN) 2020-01-23 18:43:20 +01:00
Tomas Susanka
7c41b40dff
tests: introduce UI tests for core with diffs (#784)
tests: introduce UI tests for core with diffs
2020-01-10 20:39:31 +01:00
matejcik
f491239c26 core: add documentation for SLIP-39 handling in Trezor 2020-01-09 16:00:33 +01:00
Milan Rossa
33b7e378c2
core/ci: add coverage target, introduce posttest stage 2020-01-09 15:26:40 +01:00
Milan Rossa
42f1af3aa4
core: add build target for debug unix build 2020-01-09 13:44:46 +01:00
Tomas Susanka
51ef963738 tests: introduce UI tests for core 2020-01-03 14:28:27 +00:00
Pavol Rusnak
bd707a31b8
docs: fix typo 2019-12-15 08:49:15 +00:00
matejcik
0ae2cdf756 docs: update legacy build instructions (fixes #658) 2019-12-11 14:21:07 +01:00
matejcik
be29f20159 core: minor documentation fix 2019-12-09 16:31:46 +01:00
Tomas Susanka
1b88840f53 docs: move docs to root 2019-12-06 12:24:20 +00:00
matejcik
93062c4cc2 docs: improve docs, add random.md 2019-10-24 13:36:54 +02:00
Tomas Susanka
7b5b58ccad git/hooks: do not suppress output 2019-08-02 10:39:55 +02:00
Tomas Susanka
43f9448960 docs: set hook as executable 2019-07-12 12:55:48 +02:00
Tomas Susanka
baaba41447 docs: move git hooks to core docs and update 2019-07-12 12:53:32 +02:00
matejcik
e5670856a2 MONOREPO CREATE FROM trezor-core 2019-04-15 19:14:40 +02:00
matejcik
118ca37304 docs: fix curve names 2019-03-19 15:44:42 +01:00
matejcik
29cfdfad2f docs: add EOS, Tron and Ontology (WIP) 2019-03-15 19:06:33 +01:00
matejcik
28dd517668 docs: refactor and update coins README 2019-03-15 18:59:55 +01:00
Tim Ruffing
6e736b764c docs: Use proper make targets for code style (#499) 2019-03-15 11:58:36 +01:00
Pavol Rusnak
ce834d4074
docs: update otp table 2019-02-19 14:00:44 +01:00
Tomas Susanka
c6f9c04365 docs: contributing file (#464) 2019-01-19 16:06:13 +01:00
Tomas Susanka
a15d4a81d5 Makefile: use style command for formatting; style_check for checking 2019-01-17 14:51:16 +01:00
Tomas Susanka
e2649076c6 docs: add git pre-push hook 2019-01-08 17:22:43 +01:00
Tomas Susanka
31f987e988 coins: validate derivation paths
Based on SLIP-44 ids and other checks. See docs/coins/README for info.
2018-11-12 12:10:32 +01:00
Vladimir Volek
ab25381646 Update build.md (#408) 2018-11-12 12:04:56 +01:00
Milan Rossa
fc9bc85ea3
unix: user profiles support for emulator 2018-10-11 16:51:04 +02:00
Milan Rossa
32fe5d20af
unix: emulator debug build options 2018-10-11 16:33:45 +02:00
Pavol Rusnak
715151a7b0
docs: update emulator screenshot 2018-09-28 19:51:31 +02:00
Pavol Rusnak
25d00ab08c
docs: add info about image dimensions in vendor header 2018-09-25 18:12:05 +02:00
Tomas Susanka
ccde69b5ff docs: coin paths modifications (yup, it wasn't final) 2018-08-29 17:22:31 +02:00
Tomas Susanka
fc4b71ae06 docs: coin paths final modifications (hopefully) 2018-08-29 17:03:58 +02:00
Tomas Susanka
f8f1a62563 docs: coin paths modifications 2018-08-29 15:54:48 +02:00
Pavol Rusnak
92eb6b8fe1
docs: fix markdown syntax in coins/readme 2018-08-28 16:16:43 +02:00
Tomas Susanka
af63104d21 docs: list of used derivation paths 2018-08-28 16:12:13 +02:00
Pavol Rusnak
7b6e8a1158
docs: add GC9307 to hardware.md 2018-08-04 21:53:55 +02:00
Pavol Rusnak
20237ace5c
docs: update hardware.md to use jpgs 2018-07-18 20:15:55 +02:00
Pavol Rusnak
0123e4a155
docs: convert pngs to jpgs where it makes sense (photos) 2018-07-18 20:14:28 +02:00
mcudev
59c7159a29 docs: hardware: add photos, add more pin info, other related updates 2018-07-16 11:11:09 +02:00
mcudev
9541662902 build: update to use latest arm none eabi toolchain gcc-arm-none-eabi-7-2018-q2-update 2018-07-13 00:13:39 +02:00
Pavol Rusnak
6ce106b544
trezorhal: turn sdcard/cpt circuitry on/off using PC0/PB10 pin 2018-07-11 17:41:12 +02:00
Marcel O'Neil
565d60d004 fix: emulator docs link (#242) 2018-06-15 10:29:01 +02:00
Pavol Rusnak
9e16eb4122
docs: fix markdown issues 2018-06-05 23:42:26 +02:00
Pavol Rusnak
fb4b2aa608
unix: drop the 32bit build 2018-06-05 23:30:43 +02:00
Karel Bílek
56e15625d6 readme: Add scons to build dependency (#211) 2018-06-02 13:06:24 +02:00
Pavol Rusnak
9fa4ac2c13
docs: add emulator page 2018-05-31 13:11:36 +02:00
Pavol Rusnak
bfcabb7175
docs: update upload instructions 2018-05-30 11:42:18 +02:00
matejcik
003d77b209 testing: configure pytest.ini and update testing documentation
as per https://github.com/trezor/python-trezor/pull/263
2018-05-22 17:28:52 +02:00
Pavol Rusnak
df967821e7
emu.sh: rename OPTLEVEL to PYOPT (to match variable name used in the C source) 2018-05-22 16:36:24 +02:00
matejcik
a8351d1bda docs: testing instructions 2018-05-04 17:47:44 +02:00
matejcik
75fb38f63c docs: make build instructions more compact, reflect use of pipenv 2018-05-04 17:47:44 +02:00
Pavol Rusnak
81e676be6d
docs: add photo, schematic, bom, etc. 2018-03-21 16:50:00 +01:00
Roman Zeyde
cfb50f751e docs: fix 'vendorheader' to 'vendor' at build.md 2018-03-10 21:17:29 +01:00
Pavol Rusnak
21d07ec99d
docs: use make vendor to refresh submodules 2018-03-05 13:08:42 +01:00
Pavol Rusnak
34e60899c0
docs: add info about git submodule update 2018-03-02 16:36:41 +01:00
Pavol Rusnak
248f479d68
docs: add emulator screenshot 2018-02-28 16:11:29 +01:00
Pavol Rusnak
7504366a02
bootloader: simplify vtrust code 2017-12-15 20:57:54 +01:00
Pavol Rusnak
965aa73b63
trezorhal: introduce fix_version in image header (version of last critical bugfix) 2017-12-14 21:29:13 +01:00
Jochen Hoenicke
9f2bbb0e1a Removed references to pin fail area 2017-12-14 17:18:45 +01:00
Pavol Rusnak
2f719526e7
bootloader: implement vendor keys lock 2017-12-13 23:08:15 +01:00
Pavol Rusnak
e4360a7296
bootloader: change upgrade criteria to vendor keyset comparison 2017-11-07 13:46:18 +01:00
Pavol Rusnak
3636a5f1b1
bootloader/vendorheader: vtrust is bitmap not scalar 2017-11-06 16:31:09 +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
a067dca054
hardware: add interrupt/reset pins to touch panel description 2017-11-03 19:48:13 +01:00
Pavol Rusnak
9e82a4d348
bootloader, firmware: introduce chunk hashes in the image header 2017-10-26 14:25:10 +02:00
Pavol Rusnak
3c974095aa
trezorhal: increase image header size from 512 to 1024 bytes 2017-10-26 02:11:40 +02:00
Pavol Rusnak
ebaeb52b62
docs: fix last commit 2017-10-24 18:07:23 +02:00
Pavol Rusnak
ad71fc1578
docs: update trezor logo 2017-10-24 18:06:40 +02:00
Pavol Rusnak
35a3c32935
docs: document OTP area usage 2017-10-20 15:33:34 +02:00
mcudev
7910c88f28 docs: pip to pip3 no cache, add some hardware details (#60) 2017-10-19 15:20:24 +02:00
Pavol Rusnak
001298a90e
boardloader: erase storage on failed option_bytes 2017-10-16 14:22:10 +02:00
Pavol Rusnak
403a92cb7f
docs: crop clock-tree.png 2017-10-16 13:59:49 +02:00
mcudev
e2b66436df display: tearing effect cleanup 2017-10-15 21:38:16 +02:00
mcudev
6cde2d8378 docs: bootloader microsd creation note and typo fix (#47) 2017-10-15 19:27:44 +02:00
mcudev
96b57efbfe docs: dev kit hardware updates related to mcu upgrade (#45) 2017-10-14 12:26:34 +02:00
Pavol Rusnak
3982c19378
fix whitespace 2017-10-11 23:37:28 +02:00
mcudev
61e0f6c818 stm32f427 sram bigger (#39) 2017-10-11 23:36:07 +02:00
Pavol Rusnak
6413c2c23e
embed: rework memory layout, enable stack protector 2017-10-11 21:19:52 +02:00
mcudev
61db821c7a docs: dev kit hardware updates mainly usb (#37) 2017-10-11 12:50:10 +02:00
mcudev
4897dc2139 doc: STLINK_VER and boardloader description (#35) 2017-10-10 20:56:15 +02:00
Pavol Rusnak
78f57d083c
add vendor trust to vendorheader 2017-10-05 17:31:39 +02:00
mcudev
ef353f7bc6 docs: hardware updates 2017-09-27 18:49:56 +02:00
mcudev
7535fb74ea fix minor compile time bug and update docs 2017-09-05 22:44:21 +02:00
mcudev
36598b8e20 rough draft 2017-08-30 15:31:43 +02:00
Pavol Rusnak
6b96a91d52
docs: update markdown according to lint 2017-04-12 14:45:58 +02:00
Pavol Rusnak
0c060b6d4a
rename loader to bootloader 2017-04-10 19:24:21 +02:00
Pavol Rusnak
0633506166
rename bootloader to boardloader 2017-04-10 19:11:44 +02:00
Jochen Hoenicke
e0fd890661 Implemented vendor header.
Header is generated with

    ./tools/build_vendorheader 'key1,key2,key3' 2 1.1 SatoshiLabs assets/satoshilabs.png micropython/firmware/vendorheader.bin

where

- keyN is a 64 character hex string encoding the public key
- 2 encodes 2/3 key scheme
- 1.1 is the version number (major, minor)
- SatoshiLabs is the vendor name
- satoshilabs.png is the vendor image

Updated the firmware compilation that it adds vendor header and updated loader
that it handles vendor header to be present.
2017-04-01 17:01:59 +02:00
Pavol Rusnak
435e96e1b3
build: refactor binctl and firmware/loader image stuff 2017-04-01 02:53:52 +02:00
Pavol Rusnak
b5ff140256
trezorhal: fix alignment in headers to 512 bytes 2017-03-31 23:54:59 +02:00
Pavol Rusnak
dd69929ce1
tools: rename firmwarectl to binctl, minor reformat 2017-03-30 22:58:00 +02:00
Pavol Rusnak
e313234fe3
bootloader/loader: use blake2s instead of sha256 for digests 2017-03-23 15:54:34 +01:00
Pavol Rusnak
cbaca604f3
bootloader+loader: rework build, make clear what is bootloader and what is loader in docu 2017-03-20 16:00:10 +01:00
Pavol Rusnak
cc525e97ce
markdown: follow commonmark spec 2017-03-20 15:49:11 +01:00
Pavol Rusnak
5bdfbb3469
bootloader: work in progress 2017-02-09 20:04:21 +01:00
Pavol Rusnak
7d4414000e
tools: join check_bootloader and check_firmware into firmwarectl tool 2017-02-09 16:26:15 +01:00
Pavol Rusnak
2d7c6b0c34
bootloader: cleanup, more documentation, added scripts for checking 2017-02-08 19:43:47 +01:00
Pavol Rusnak
d65b6b35d9
update bootloader documentation 2017-02-08 15:51:13 +01:00
Pavol Rusnak
cae5fbe434
docs: add RAMs to memory layout 2016-10-10 12:48:30 +02:00
Pavol Rusnak
3857ff4139
docs: fix table 2016-10-10 12:33:10 +02:00
Pavol Rusnak
9f3cb279b3
docs: add memory layout 2016-10-10 12:30:41 +02:00
Pavol Rusnak
2e39c86b42
cleanup 2016-10-05 19:48:08 +02:00
Pavol Rusnak
63d4cb3a29
add bootloader ideas 2016-09-27 17:26:04 +02:00
Pavol Rusnak
9f40362482
remove homebrew docu generator, use docstring syntax 2016-09-27 17:25:50 +02:00
Pavol Rusnak
35b26651ba
add trezor.crypto.random 2016-09-27 17:25:47 +02:00
Pavol Rusnak
6f08f3f6a8
update docu 2016-09-27 17:25:46 +02:00
Pavol Rusnak
627f547fcb
update docu 2016-09-27 17:24:20 +02:00
Pavol Rusnak
8f374f728b
new logo :) 2016-09-27 17:24:17 +02:00
Pavol Rusnak
8f7fc96301
add trezor.crypto.bip39.seed 2016-09-27 17:24:17 +02:00
Pavol Rusnak
910926e25c
add trezor.crypto.bip39 2016-09-27 17:24:17 +02:00
Pavol Rusnak
01fb1dcbf2
fix name in api.template 2016-09-27 17:24:14 +02:00
Pavol Rusnak
5fe006f41d
update info about bootloader format 2016-09-27 17:24:13 +02:00
Pavol Rusnak
e1450e3f7f
os -> core 2016-09-27 17:24:13 +02:00
slush0
e00abf4d18
Updated vendor/firmware structures 2016-09-27 17:24:12 +02:00
Pavol Rusnak
f24dd6b42f
add validity timestamp 2016-09-27 17:24:12 +02:00
Pavol Rusnak
d268cf3b57
document python crypto apis 2016-09-27 17:24:11 +02:00
Pavol Rusnak
7fb1d7247c
remove self from documentation where it should not be 2016-09-27 17:24:11 +02:00
Pavol Rusnak
c5b5955539
add more docu 2016-09-27 17:24:10 +02:00
Pavol Rusnak
08009cbeb6
update docu 2016-09-27 17:24:10 +02:00
Pavol Rusnak
3d8f8a659a
rework documentation, proof of concept api docu generator 2016-09-27 17:24:10 +02:00
Pavol Rusnak
bc7cb88cdf
use little endian for toif, fix random 2016-09-27 17:23:22 +02:00
Pavol Rusnak
250e35348e
rework note about endianity 2016-09-27 17:23:21 +02:00
Pavol Rusnak
4b9d3bffc6
add firmware format documentation 2016-09-27 17:23:20 +02:00
Pavol Rusnak
6a3cf02396
add documentation about toif 2016-09-27 17:23:20 +02:00
Pavol Rusnak
b41c1c3e4d
add data size to toi format header 2016-09-27 17:23:18 +02:00
Pavol Rusnak
0f2670f12e
add trezor.crypto
split modTrezorUi into more files
2016-09-27 17:22:48 +02:00
Pavol Rusnak
a5e861e0aa
introduce trezor.msg and trezor.protobuf 2016-09-27 17:22:48 +02:00
Pavol Rusnak
d0e179e090
rename touch.callback functions 2016-09-27 17:22:48 +02:00
Pavol Rusnak
a447cb5492
refactor display_rawcmd into display_raw 2016-09-27 17:22:47 +02:00
Pavol Rusnak
1f4230dc20
implement trezor.ui.qrcode 2016-09-27 17:22:47 +02:00
Pavol Rusnak
089409c995
update docu, add display.backlight 2016-09-27 17:22:46 +02:00
Pavol Rusnak
ced1a8fdef
introduce toi format 2016-09-27 17:19:50 +02:00
Pavol Rusnak
fa8fdb683a
add reed solomon 2016-09-27 17:19:50 +02:00
Pavol Rusnak
89dff71612
simplify types 2016-09-27 17:19:50 +02:00
Pavol Rusnak
c0748d265b
pip 3107 -> 0484 2016-09-27 17:19:50 +02:00
Pavol Rusnak
9d493e358a
update 2016-09-27 17:19:50 +02:00
Pavol Rusnak
8a0868c1f7
more changes to api 2016-09-27 17:19:49 +02:00
Pavol Rusnak
0c954769d5
update api 2016-09-27 17:19:49 +02:00
Pavol Rusnak
a8d5432fd5
init 2016-09-27 17:19:47 +02:00