1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00
Commit Graph

1269 Commits

Author SHA1 Message Date
Dušan Plavák
060a8cbdfd cardano: replace derivation scheme v1 for v2 (#342) 2018-09-07 19:07:15 +02:00
Tomas Susanka
c0770ad131 cardano: remove sign/verify functions (#347) 2018-09-06 14:49:11 +02:00
Tomas Susanka
12a7996364 vendor: trezor-common updated; protobuf regen 2018-09-06 14:46:24 +02:00
Jan Pochyla
38bbb9dd83 apps: remove split_words, use Text layout functionality 2018-09-06 13:52:38 +02:00
Pavol Rusnak
b296d627fa
vendor: update trezor-common 2018-09-05 17:00:39 +02:00
Pavol Rusnak
ebdd8c9b07
src/apps/wallet: implement script_type handling in get_public_key; update vendor/trezor-common 2018-09-05 15:43:26 +02:00
Tomas Susanka
fc427fa726 templates: forgotten build 2018-09-05 12:21:18 +02:00
Tomas Susanka
f75f315dbc ripple: style 2018-09-05 10:45:03 +02:00
Tomas Susanka
19bbe707f7 ripple: validate fix 2018-09-05 10:31:09 +02:00
Tomas Susanka
a3f8ace253 vendor: trezor-common updated; protobuf regen 2018-09-04 14:04:53 +02:00
Pavol Rusnak
30b96a0f07
style: fix trezor.utils 2018-08-31 17:15:10 +02:00
Pavol Rusnak
8d9d4816da
embed/extmod/modtrezorutils: remove utils.symbol, use constants directly 2018-08-31 16:55:01 +02:00
Pavol Rusnak
e3607156d8
embed: make model and emulator orthogonal, update macros to match this logic 2018-08-31 16:55:01 +02:00
Dusan Klinec
5b5b593eb3 workflow: allow more arguments to the import workflow
Allows to use stateful message handlers

```python
wire.add(MessageType.MoneroTransactionSign, __name__, "get_address", STATE)
```
2018-08-30 14:12:03 +02:00
Tomas Susanka
b23077b707 cardano: cardano prefix removed from functions 2018-08-30 12:15:25 +02:00
matejcik
348b99b8dc build: generate code with Mako templates 2018-08-29 12:04:37 +02:00
Tomas Susanka
ed963743e9 nem: trim fix 2018-08-28 14:36:51 +02:00
Tomas Susanka
9477cd15ea nem: trims removed 2018-08-28 10:55:46 +02:00
Jan Pochyla
c1b284cdfa apps: use {app}.layout for common layouts 2018-08-27 15:36:02 +02:00
Jan Pochyla
8421fa4fdb apps: unify wire registering, load modules automatically 2018-08-27 14:56:21 +02:00
Tomas Susanka
a08a1a5e2a apps: split_address moved to show only (#307) 2018-08-24 16:45:27 +02:00
Jan Pochyla
f7c1465d57 apps: unify common writer logic 2018-08-23 20:06:00 +02:00
Jan Pochyla
2f910839fe ui.text: optimize font detection 2018-08-23 14:42:13 +02:00
Tomas Susanka
889315ba00 wallet: total amount fix (#318) 2018-08-23 11:23:58 +02:00
Tomas Susanka
e6486ad90a ripple: note on which curve is used 2018-08-22 16:21:45 +02:00
Tomas Susanka
e657397c83 cardano: signing returns CardanoSignedTx 2018-08-21 20:15:56 +02:00
Tomas Susanka
4305c1da1b stellar: get public key removed 2018-08-21 20:15:56 +02:00
Tomas Susanka
db71e919b7 cardano: message renamed 2018-08-21 20:15:56 +02:00
Tomas Susanka
0323355299 vendor: trezor-common update; protobuf: regen 2018-08-21 20:15:56 +02:00
Tomas Susanka
cb105c015f stellar: get public key simplified 2018-08-21 13:48:23 +02:00
Tomas Susanka
a5a7b9a1af cardano: show public key 2018-08-21 13:48:23 +02:00
Tomas Susanka
afa8fe1567 common: display_address -> show 2018-08-21 13:48:23 +02:00
Tomas Susanka
e13a3a70c8 common: show pubkey moved to common 2018-08-21 13:48:23 +02:00
Tomas Susanka
0acd9d8918 protobuf: regen 2018-08-20 19:37:47 +02:00
Pavol Rusnak
1bf1a76973
src/apps/ethereum: implement Ethereum canonical signatures, fix max_chain_id 2018-08-20 15:49:56 +02:00
Aleksey Popov
af494a65b8 lisk: fix raw transaction fields update 2018-08-19 19:00:16 +02:00
Pavol Rusnak
3a2c1eecdb
embed/extmod/modtrezorui: add MONO_BOLD font 2018-08-16 20:59:24 +02:00
hackyminer
9a5c38dad4 src/apps/ethereum: support full 32bit chain_id
* remove chain_id restriction to support full 32bit chain_id.
 * for chain_id > MAX_CHAIN_ID(2147483630) case, simply return v signature parity.
 * see also https://github.com/trezor/trezor-mcu/pull/399
2018-08-14 19:46:27 +02:00
Tomas Susanka
25f14f6695 cardano: bip32 path is not displayed (#306) 2018-08-14 15:30:41 +02:00
Pavol Rusnak
1a6e0f053a
embed/extmod/modtrezorcrypto: refactor AES API, use test from NIST SP 800-38A 2018-08-14 14:42:19 +02:00
Pavol Rusnak
ebf912c8f1
src/trezor/crypto: introduce SecureContext
usage:

from trezor.crypto import SecureContext

with SecureContext() as sc:
    sc.var1 = ...
    sc.var2 = ...

SecureContext will call destructors of all variables assigned
to sc in the block. It will also call gc.collect()
2018-08-06 17:05:58 +02:00
Pavol Rusnak
cc3882abf1
vendor: update trezor-common; regenerate messages 2018-08-03 19:14:29 +02:00
Pavol Rusnak
bfbc6d5ab9
src: cleanup "utf8" madness 2018-08-03 18:52:20 +02:00
Tomas Susanka
92e4c60237 ripple: README 2018-07-30 16:37:49 +02:00
Tomas Susanka
66b8bbb1a5 ripple: style fixes 2018-07-30 16:37:49 +02:00
Tomas Susanka
08945c48e1 ripple: simple tx serializer; signing
This supports only fraction of the whole binary format Ripple uses. This
is focused on the Payment transaction type, which is currently solely
supported.
2018-07-30 16:37:49 +02:00
Tomas Susanka
b5c2ae49dd ripple: get address 2018-07-30 16:37:48 +02:00
Pavol Rusnak
51d810b6da
vendor: update trezor-common 2018-07-27 12:34:59 +02:00
jmuravsky
09ddcc7ac9 cardano: add Cardano currency support 2018-07-25 17:56:29 +02:00
Jan Pochyla
a932816a25 fido_u2f: unify handling of bogus app ids 2018-07-24 15:05:40 +02:00
Jan Pochyla
934b32707c fido_u2f: parse and serialize keypath as LE 2018-07-24 15:05:40 +02:00
Pavol Rusnak
cb9e7b5885
embed: cleanup Keccak API (drop keccak arg from digest() func) 2018-07-23 15:19:38 +02:00
Pavol Rusnak
3067339b41
src: fix ethereum sign for chain_id >= 0x100 2018-07-19 18:05:26 +02:00
Pavol Rusnak
324d82507e
vendor: update trezor-common 2018-07-16 15:10:50 +02:00
Pavol Rusnak
ca7a911033
vendor: update trezor-common 2018-07-16 12:38:29 +02:00
Tomas Susanka
c1bf6abbee stellar: README 2018-07-11 17:20:25 +02:00
Tomas Susanka
f892a79e48 stellar/layout: multiple variables called 'text' fixed 2018-07-11 17:20:25 +02:00
Tomas Susanka
306531f29b stellar: get public key - show on display fix 2018-07-11 17:20:25 +02:00
Tomas Susanka
0666533ca0 stellar: typos based on code review 2018-07-11 17:20:25 +02:00
Jan Pochyla
b46ce034d6 stellar: style and text api changes 2018-07-11 17:20:25 +02:00
Tomas Susanka
b722fddc58 stellar: typos 2018-07-11 17:20:25 +02:00
Tomas Susanka
2e04dbb2a6 stellar: ProcessError 2018-07-11 17:20:25 +02:00
Tomas Susanka
96a91b56e9 apps: move ed25519 prefix common function 2018-07-11 17:20:25 +02:00
Tomas Susanka
7f767eec46 stellar: accounts are addresses 2018-07-11 17:20:25 +02:00
Tomas Susanka
bcf77bd347 stellar: get address
including show_display var
2018-07-11 17:20:25 +02:00
Tomas Susanka
93571e469f protobuf: regen (StellarGet{Address,PublicKey}) 2018-07-11 17:20:25 +02:00
Tomas Susanka
501ea6bb2c stellar: refactoring 2018-07-11 17:20:25 +02:00
Tomas Susanka
2af33a6893 stellar: operations layout 2018-07-11 17:20:25 +02:00
Tomas Susanka
a26aaec953 stellar: Context is used instead of loop 2018-07-11 17:20:25 +02:00
Tomas Susanka
8d75fad50c stellar: memo confirms 2018-07-11 17:20:25 +02:00
Tomas Susanka
44ce832163 stellar: layout 2018-07-11 17:20:25 +02:00
Tomas Susanka
1d3490a278 stellar: account check 2018-07-11 17:20:25 +02:00
Tomas Susanka
17a4ccd268 stellar: transaction operations 2018-07-11 17:20:25 +02:00
Tomas Susanka
00fb252063 stellar: signing init 2018-07-11 17:20:25 +02:00
Tomas Susanka
4cfcfb4ff4 stellar: init; get public key 2018-07-11 17:20:25 +02:00
Tomas Susanka
12d622a496 protobuf: build (Ripple, Stellar drop protocol version) 2018-07-11 13:44:53 +02:00
Jan Pochyla
2f6386e041 ethereum: fix get_address for very short paths 2018-07-10 14:53:39 +02:00
Jan Pochyla
808b67ff43 apps.common: simplify address_type 2018-07-10 13:05:16 +02:00
Jan Pochyla
dcb15f77c3 src: run black 2018-07-10 13:05:15 +02:00
Jan Pochyla
ead154b907 src: run isort 2018-07-10 13:05:15 +02:00
Jan Pochyla
bf9f503c3c apps: remove unused imports 2018-07-10 11:17:12 +02:00
Jan Pochyla
6751d84236 style: skip formatting in special cases 2018-07-10 11:17:12 +02:00
Pavol Rusnak
1628521ef2
vendor: update trezor-common 2018-07-09 21:33:35 +02:00
Yura Pakhuchiy
d09547fec3 Introduce coininfo.b58_hash 2018-07-09 21:30:10 +02:00
Yura Pakhuchiy
b48cc1d6f8 Use single SHA256 for groestl curve for tx and msg signing 2018-07-09 21:30:10 +02:00
Yura Pakhuchiy
a3542a6441 wallet: use coin's .curve_name 2018-07-09 21:30:10 +02:00
Yura Pakhuchiy
7db1061123 Add .curve_name and Groestlcoin to coininfo.py 2018-07-09 21:30:10 +02:00
Pavol Rusnak
2ee57da5d8
src/apps/wallet/sign_tx: fix last commit, add bip115 test 2018-07-04 18:08:05 +02:00
Pavol Rusnak
622eb001a6
src/apps/wallet/sign_tx: correct processing of block_height in bip115 2018-07-04 17:54:13 +02:00
Pavol Rusnak
13c659c202
vendor: update trezor-common, regenerate messages 2018-07-04 17:13:46 +02:00
Pavol Rusnak
6d5a8645fd
src/apps/wallet/sign_tx: don't append bip115 replay protection script if no arguments provided 2018-07-04 12:59:19 +02:00
Jan Pochyla
2b66deb3d6 ui.text: type -> normal 2018-07-03 16:49:52 +02:00
Jan Pochyla
ec06ccf43f apps: use default icon from Text API 2018-07-03 16:49:52 +02:00
Jan Pochyla
f74a29b56a ui.text: remove old API 2018-07-03 16:49:52 +02:00
Jan Pochyla
b3d3da7f7a apps: use mutable Text API 2018-07-03 16:49:52 +02:00
Jan Pochyla
49e75851c7 ui.text: add mutable API 2018-07-03 16:49:52 +02:00
Pavol Rusnak
ac5e3f200a
src: rename wire_types to MessageType, drop copy in tools/build_protobuf 2018-07-02 20:40:51 +02:00
matejcik
28e2970cfb vendor: update trezor-common, regenerate messages 2018-07-02 20:19:16 +02:00
Jan Pochyla
6e13a1475b ui: introduce LazyWidget
Used in Button and Text.
2018-07-02 15:30:32 +02:00
Jan Pochyla
f9d77479d4 fido_u2f: wait until previous u2f workflow ends 2018-07-02 15:30:32 +02:00
Pavol Rusnak
9f90ca21a9
src/apps/wallet/sign_tx: fix bip115 code in last commit 2018-07-02 14:29:58 +02:00
idimon4uk
3b345f3c76 src/apps/wallet/sign_tx: add Zencash support (#252) 2018-07-02 14:16:26 +02:00
Pavol Rusnak
4b58162b54
vendor: update trezor-common, enable Zencash 2018-06-28 14:15:28 +02:00
Pavol Rusnak
6ab2b5d6ee
vendor: update trezor-common 2018-06-28 14:00:53 +02:00
Pavol Rusnak
3d796b971a
src/apps/wallet/sign_tx: refactor address_short function 2018-06-28 11:21:07 +02:00
Jochen Hoenicke
37ae7c06a4 signtx layout: check if address starts with prefix
Only addresses starting with bitcoincash: should get their prefix
skipped. This fixes a bug where it skips the first bytes of legacy
addresses.
2018-06-28 11:07:38 +02:00
Pavol Rusnak
3b0808035c
vendor: update trezor-common 2018-06-22 14:31:38 +02:00
Pavol Rusnak
b4b9c4a930
vendor: update trezor-common, add new coins 2018-06-21 18:05:36 +02:00
Pavol Rusnak
f550229899
src/apps/homescreen: show PIN not set error only on initialized device 2018-06-21 17:31:25 +02:00
Pavol Rusnak
d38d4d2b36
style: fix flake8 warnings 2018-06-21 17:04:06 +02:00
Pavol Rusnak
ac0bdd5902
src/apps/wallet: fix address_n_matches_coin function 2018-06-21 17:01:46 +02:00
Pavol Rusnak
43891692ab
ethereum: update tokens 2018-06-21 16:42:46 +02:00
Jan Pochyla
88744d2450 wire: remove codec_v2.py 2018-06-21 15:51:36 +02:00
Jan Pochyla
270d85f249 seed: cleanup 2018-06-21 14:00:29 +02:00
Jan Pochyla
51df249949 sign_tx: require confirmation of inputs from other chains 2018-06-21 14:00:29 +02:00
Jan Pochyla
fd35b4c5c9 coins: add slip44 2018-06-21 14:00:29 +02:00
Pavol Rusnak
ab98322d4d
src/apps/homescreen: show warning if PIN is not set 2018-06-20 17:44:29 +02:00
Tomas Susanka
f41b14e935 nem: show qr 2018-06-20 12:05:27 +02:00
Tomas Susanka
9329b0e16b apps: show_qr and show_address moved to common 2018-06-20 12:05:26 +02:00
Jan Pochyla
1bfbb34f88 src/trezor/loop: avoid closing task from within 2018-06-19 18:26:43 +02:00
Jan Pochyla
7630201a57 debug: do not rely on mp_optimise_value
Reflects micropython commit 3f420c0c27bd6daa5af39517925be55b9b9a9ab3

Replaces usage of mp_optimise_value with calls from python code.
2018-06-19 18:26:43 +02:00
Pavol Rusnak
97bb26b7f3
embed/extmod/modtrezorcrypto: use kwargs for Blake2b/Blake2s 2018-06-19 18:15:58 +02:00
Jan Pochyla
8e270fbabd src/trezor/ui/text: fix layout issues 2018-06-18 17:49:16 +02:00
Ilan
270bf73212 Update RSKIP-60 checksum separator (#244) 2018-06-16 13:08:17 +02:00
Ilan
3e2e5fa7b8 Apply RSKIP-60 in require_confirm_tx (#241) 2018-06-13 23:21:19 +02:00
Ilan
0c13a43518
src/apps/ethereum: implement RSKIP-60 checksum in get_address 2018-06-13 18:59:46 +02:00
Pavol Rusnak
0a6d890335
src/apps/wallet/sign_tx: refactor writers.get_tx_hash usage 2018-06-13 17:19:56 +02:00
Tomas Susanka
5910ebf279 nem: wire.ProcessError instead of ValueError 2018-06-13 14:00:15 +02:00
Pavol Rusnak
9910fef423
vendor: update trezor-common 2018-06-12 17:48:13 +02:00
Pavol Rusnak
285c845e9b
src+test: fix flake8 warning 2018-06-12 17:41:49 +02:00
Pavol Rusnak
da4bea34a0
src/apps/wallet: small docu fix in Bip143 class 2018-06-12 17:41:49 +02:00
Pavol Rusnak
ad1e0e81b2
src/apps/ethereum: refactor networks module 2018-06-11 18:03:38 +02:00
Pavol Rusnak
6c2c99688b
src/apps/wallet: drop cashaddr prefix from the ui 2018-06-11 13:48:15 +02:00
Jan Pochyla
2603c477c5 embed/extmod/modtrezorui: distinguish font ids from colors 2018-06-08 14:53:46 +02:00
Jan Pochyla
c9a58ba22c trezor.ui.text: add work break and configurable new_lines
Now it is possible to combine multiple font styles per line,
a nd to manually control line breaks with trezor.ui.text.BR.
2018-06-08 14:53:46 +02:00
Jan Pochyla
f72667c761
Merge pull request #217 from alepop/restore-lisk-sign-verify-message
Lisk sign/verify functionality
2018-06-07 15:55:21 +02:00
Jan Pochyla
1513578737 app.lisk: fix code style 2018-06-07 15:48:47 +02:00
Aleksey Popov
de552b19f5
app.lisk: update LiskVerifyMessage message 2018-06-07 15:26:59 +03:00
Aleksey Popov
caffef2e0a
app.lisk: restore sign and verify functions with correct message digest (with prefix) 2018-06-06 23:53:15 +03:00
Jan Pochyla
1b495324e7 nem: remove star-imports, fix some style 2018-06-06 17:24:07 +02:00
Tomas Susanka
9855a50526 nem: readme 2018-06-06 17:24:07 +02:00
Tomas Susanka
e0014a76d5 nem: xem amount and mosaic levy fix 2018-06-06 17:24:07 +02:00
Tomas Susanka
3422474811 nem: mosaics definitions are generated from trezor-common 2018-06-06 17:24:07 +02:00
Tomas Susanka
0093d21bb6 nem: correct mosaic quantities 2018-06-06 17:24:07 +02:00
Tomas Susanka
616d117648 nem: mosaics are checked against definition and user is asked appropriately 2018-06-06 17:24:07 +02:00
Tomas Susanka
a45ac4ad4b nem: refactored to have a common message as an argument 2018-06-06 17:24:07 +02:00
Tomas Susanka
1355b19c77 nem: multisig correct serialization fix 2018-06-06 17:24:07 +02:00
Tomas Susanka
9a52039b25 nem/layout: trim and levy fee 2018-06-06 17:24:07 +02:00
Tomas Susanka
85c904cbf7 nem: layout refactoring and fixes 2018-06-06 17:24:07 +02:00
Tomas Susanka
8de3cd7cac nem: refactored to directories 2018-06-06 17:24:07 +02:00