Pavol Rusnak
4979e17e86
core/webauthn: improve metadata
2019-10-30 17:53:09 +01:00
Tomas Susanka
26e2960532
core/webauthn: move boot to regular firmware block
2019-10-30 15:20:21 +01:00
Tomas Susanka
809b30ddcf
core/webauthn: set webauthn interface in its app not in main.py
...
This way the other messages (WebAuthnListResidentCredentials etc.) get
registered in device debug build and can be tested.
Updates #591
2019-10-30 14:38:04 +01:00
Pavol Rusnak
727b7f8cd3
core/webauthn: add u2f/ctap2 metadata
2019-10-28 21:33:15 +01:00
Tomas Susanka
64a218eea0
bitcoin: simplify if expression
2019-10-28 15:35:58 +00:00
Pavol Rusnak
0f1e30b235
core: fix typo in get_address
2019-10-24 11:42:40 +02:00
Pavol Rusnak
5fe2f7e59c
common/protob: remove ButtonRequest.data field
2019-10-24 11:11:43 +02:00
Pavol Rusnak
9a3d8ef2c4
core: show xpubs in GetAddress for multisig
...
also fix not showing MultisigRedeemScriptType.nodes correctly
2019-10-24 09:11:01 +00:00
Pavol Rusnak
322417d9ed
core/tezos: refactor bytes constants
2019-10-23 16:29:21 +00:00
Adrian Nagy
384275ac73
core/tezos: support the new protocol update (005-BABYLON)
2019-10-23 17:53:10 +02:00
matejcik
a5ccf95260
core: fix mypy problems
2019-10-22 17:06:49 +02:00
matejcik
8d2ae142f3
core/debug: at start, wait for first layout to show up
2019-10-22 17:06:49 +02:00
matejcik
a8fc569016
debug: add support for general layout waiting
2019-10-22 17:06:49 +02:00
matejcik
97525654bb
core/debug: avoid running a handler when waiting for layout change
...
otherwise a running handler would prevent the default task from
starting, which would deadlock a test waiting for the default task
2019-10-22 17:06:49 +02:00
matejcik
3664a5f06f
core/debug: reading layouts, inserting synthetic events
2019-10-22 17:06:49 +02:00
matejcik
8c3d93619e
core: allow inserting synthetic touch events into event loop
2019-10-22 16:55:30 +02:00
matejcik
a1a543f781
core: boot debuglink in recovery homescreen
2019-10-22 16:55:30 +02:00
matejcik
06e10f948d
protobuf: send x/y coordinates, allow waiting for layout change
2019-10-22 16:55:30 +02:00
matejcik
b25537f6b0
core: nicer output for cancellations
2019-10-22 16:54:49 +02:00
matejcik
d17f879d97
mypy: use GenericContext protocol to work-around DummyContext
2019-10-22 14:36:25 +00:00
matejcik
ed190c772c
core: avoid circular import in sd_salt
2019-10-22 14:36:25 +00:00
Tomas Susanka
0511cc8b8c
core: add final mypy fixes!
2019-10-22 14:36:25 +00:00
Tomas Susanka
8f34b4c5de
Merge pull request #628 from trezor/tsusanka/sdprotect-fix
...
Skip sd protect test on device
2019-10-22 15:40:03 +02:00
Pavol Rusnak
ddd9bee059
common/defs: regenerate coins
2019-10-22 09:03:32 +00:00
Pavol Rusnak
c2aa8a04c0
common/defs: update tokens
2019-10-22 10:59:52 +02:00
Pavol Rusnak
178d58c763
common/defs: remove BTDX as it has no Trezor compatible wallet
2019-10-21 09:48:19 +00:00
Pavol Rusnak
4e5b60ec2b
common/defs: remove BITC per maintainer request
2019-10-20 17:11:43 +00:00
Pavol Rusnak
3ebc79f9b2
common/defs: remove MEC per maintainer request
2019-10-19 17:14:32 +00:00
Andrew Kozlik
60f6ab9087
core: Fix mypy warnings.
2019-10-18 14:36:40 +02:00
Andrew Kozlik
39b4376b65
core/sd-protect: If writing to the SD card fails in request_sd_salt(), inform the user and allow them to retry or abort.
2019-10-18 14:34:43 +02:00
Pavol Rusnak
7644cb4c79
core: rework exception handling in boot.py
2019-10-18 10:20:11 +00:00
Pavol Rusnak
9b7a2095b3
common/defs: update coins info
2019-10-18 10:14:33 +00:00
Tomas Susanka
0f34b50c05
core/features: add sd card and protection
2019-10-17 16:04:11 +02:00
Tomas Susanka
f0cd99c545
common/protob: add sd card/protection to Features
2019-10-17 15:58:12 +02:00
Pavol Rusnak
d17ced9305
common/defs: remove ZCL as per maintainer request
2019-10-16 20:50:45 +00:00
Pavol Rusnak
d28bc3c3a6
common/defs: remove BSD - website does not exist, maintainer not reachable
2019-10-16 10:18:33 +00:00
Pavol Rusnak
3e20c51dbf
common/defs: remove MTNS - maintainer not reachable
...
website does not exist, backends don't work
2019-10-16 10:15:19 +00:00
apollo
74bcc05e2e
common/defs: add ZCR ( #611 )
2019-10-11 21:01:11 +02:00
Pavol Rusnak
ab534c18d3
Merge pull request #612 from trezor/andrewkozlik/sd-protect-ui
...
SD-protect error handling
2019-10-10 15:48:27 +02:00
Andrew Kozlik
564b24191e
debug: Add left and right swipe direction to DebugLinkDecision message and unify terminology around swipe direction.
2019-10-10 14:56:49 +02:00
Andrew Kozlik
9a641b6b01
core/sd-protect: Allow user to retry if write fails.
2019-10-10 12:17:36 +02:00
Andrew Kozlik
795fa07822
core/sd-protect: Add SD_CARD_HOT_SWAPPABLE option and improve error handling.
2019-10-10 12:17:36 +02:00
Andrew Kozlik
710866074b
core/webauthn: Fix mypy warnings.
2019-10-09 18:13:48 +02:00
Andrew Kozlik
c25a41aa57
core: Fix mypy warnings in FatFS and SD salt code.
2019-10-09 17:07:25 +02:00
Andrew Kozlik
5401f88d52
core/webauthn: Fix user input timeout bug.
2019-10-09 15:18:25 +02:00
Tomas Susanka
a2fed79f7e
Merge pull request #603 from trezor/tsusanka/groups-info
...
Small refactor in Info dialog
2019-10-09 10:15:34 +02:00
Andrew Kozlik
e385eae433
core/webauthn: Use popups for webauthn error messages instead of confirmation dialogs to simplify device testing.
2019-10-08 13:29:15 +02:00
Andrew Kozlik
8ce8916beb
core/webauthn: Remove AUTOCONFIRM option.
2019-10-08 13:29:04 +02:00
Sirak Ghazaryan
8317774e06
common/defs: enable CRW ( #600 )
2019-10-07 14:39:37 +02:00
Tomas Susanka
29bb2dcb95
Add unit test for process_slip39 function ( #601 )
...
Add unit test for process_slip39 function
2019-10-04 21:57:37 +02:00
Tomas Susanka
74a283c271
core/recovery: small refactor in Info dialog
2019-10-04 15:21:39 +02:00
Andrew Kozlik
ba9eee3b8f
core, legacy: Don't allow change_pin if device is not initialized.
2019-10-04 13:54:43 +02:00
Tomas Susanka
75dfcacc21
core/tests: add unit test for process_slip39 function
...
updates #542
2019-10-03 16:54:35 +02:00
Tomas Susanka
07b4f6e399
core/recovery: remove unused get/set_slip39_threshold
2019-10-03 09:57:35 +00:00
Pavol Rusnak
adbec13779
core/sd_salt: fix bug introduced in ede1a0bae3
2019-10-02 16:46:42 +00:00
Pavol Rusnak
04466402ce
core/monero: use const where possible
2019-10-02 15:45:36 +00:00
Pavol Rusnak
ed0336c0a9
core/monero: add gc.collect before large allocations in bulletproof code
2019-10-02 15:45:33 +00:00
Pavol Rusnak
5f980b50a0
core/monero: refactor bulletproof look-up-tables
2019-10-02 15:43:03 +00:00
Pavol Rusnak
ede1a0bae3
core/sd_salt: introduce _get_device_dir, _get_salt_path
...
prefix dialog functions with underscore
2019-10-02 15:39:42 +00:00
Pavol Rusnak
2e877b5762
core: refactor fido2 stuff into webauthn/fido2
2019-10-01 14:02:28 +00:00
matejcik
3c62db2696
stellar: fix ManageDataOp value padding
2019-10-01 15:12:37 +02:00
Andrew Kozlik
18998ff42f
core/webauth: Remove "alg" parameter validation for key-agreement public keys to avoid compatibility issues.
2019-10-01 12:05:14 +02:00
Andrew Kozlik
4a81101c84
core/webauthn: Modify error handling to match fido2-tests.
2019-10-01 11:55:36 +02:00
Andrew Kozlik
9537bc40a5
core/webauthn: Use ECDH_ES_HKDF_256 instead of ES256 as the algorithm type for key-agreement keys.
...
ECDH_ES_HKDF_256 is the wrong type to use, since the key-agreement does not use HKDF, but ES256 is even more wrong, because it is an ECDSA type rather than an ECDH type. Currently there is no correct algorithm type defined. ES256 is used by libfido2, whereas ECDH_ES_HKDF_256 is used by Chrome, YubiKey and SoloKey, so it has the majority.
2019-09-30 19:37:46 +02:00
Andrew Kozlik
500401d81f
core/webauthn: Place a 500 ms timeout on CTAP HID continuation packets.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
0495d18b1e
core/webauthn: Fix CTAP HID protocol to correctly handle invalid channel IDs and interleaving packets from different channels.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
9ea8136545
u2f: Add keepersecurity.eu to knownapps.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
e4c13b6357
u2f: Store hashes of U2F application parameters instead of pre-images.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
6a33889706
common/webauthn: Add new URLs for gandi.net and Slush Pool.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
528ee9ccf1
core/webauthn: Ensure user-presence option is not present in MakeCredential requests.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
e341f133a3
core/webauthn: Add length checks in CTAPHID protocol.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
ae70741e48
core/webauthn: Add more type checking for CBOR command parameters and return CTAP2_ERR_CBOR_UNEXPECTED_TYPE.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
5ca4ed2347
core/webauth: Add _AUTOCONFIRM option for testing.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
7ad1467dbf
core/webauthn: Process debuglink signals in Fido2ConfirmGetAssertion.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
3d91cb5c5b
core/webauthn: Return ERR_MISSING_PARAMETER instead of generic error.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
eaf63fff45
core/webauthn: In GetAssertion do not return user ID for server resident credentials.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
f54c968039
core/webauthn: Validate U2F key handle length.
2019-09-25 21:06:36 +02:00
Andrew Kozlik
638a861137
core/webauthn: Add U2F_V2 to authenticatorGetInfo supported versions.
2019-09-25 20:00:11 +02:00
Andrew Kozlik
cf6949332f
core/webauthn: Claim that PIN is set even when it's not, because login.live.com shows an error, but doesn't instruct the user to set a PIN.
2019-09-25 20:00:11 +02:00
Andrew Kozlik
5e99058832
common/webauthn: Add webauthn RP ID for google.com.
2019-09-25 19:59:59 +02:00
Pavol Rusnak
40c66e6d85
core: handle removal of non-existing PIN in require_confirm_change_pin
2019-09-25 17:35:37 +00:00
Pavol Rusnak
6c14ee7ec0
core: initialize fatfs only after we know the SD card is powered
2019-09-25 12:13:52 +02:00
Pavol Rusnak
7394ecfa77
core: add exist_ok parameter to fatfs.mkdir
2019-09-25 12:13:52 +02:00
Pavol Rusnak
d393fc6e85
Revert "core: replace BITCOIN_ONLY with a constant only in src/trezor/utils.py"
...
This reverts commit b9e7e93bcf
.
Unfortunately this does not work, compiler cannot see it is a literal constant,
so it won't get optimized out, even when we use const(0). Also const(False)
is not supported at all.
2019-09-25 12:05:13 +02:00
Tomas Susanka
f53694c3fe
core/recovery: rename variable and add a comment in Info button
2019-09-24 16:12:19 +02:00
Tomas Susanka
6c6bd44ee8
core/recovery: fix Info button when the threshold was reached ( #566 )
2019-09-24 16:10:09 +02:00
matejcik
65d2a55bff
core/recovery: improve comment
2019-09-24 14:07:46 +02:00
matejcik
02ee0b63c0
core/recovery: fix type signature of _process_words
2019-09-24 14:07:08 +02:00
matejcik
1c53c2bdf2
core/recovery: allow changing word count again ( fixes #554 )
2019-09-24 14:04:51 +02:00
Tomas Susanka
7f959250e7
Merge pull request #563 from trezor/tsusanka/562-fix-info-btn
...
core/recovery: fix Info dialog
2019-09-24 13:20:14 +02:00
ciny
1337ff97b7
core: fixed confirmation screen during advanced slip39 reset flow
2019-09-24 12:11:18 +02:00
Tomas Susanka
51bf0dde12
core/recovery: fix Info dialog
...
closes #562
2019-09-24 11:23:29 +02:00
Pavol Rusnak
78041d261b
crypto: refactor bip39 api
2019-09-23 17:56:36 +02:00
Andrew Kozlik
524a2ac721
core: Show success dialogs in sd-protect.
2019-09-23 10:38:58 +02:00
Andrew Kozlik
a7485c0840
core: In sd-salt and webauthn error dialogs replace "X" button with "Close" button.
2019-09-23 10:38:58 +02:00
Andrew Kozlik
de74750569
core: Show success and failure dialogs in change-pin.
2019-09-23 10:38:58 +02:00
Pavol Rusnak
b9e7e93bcf
core: replace BITCOIN_ONLY with a constant only in src/trezor/utils.py
2019-09-22 15:07:04 +02:00
matejcik
03f1403c93
core: clean up backup type handling in reset_device
2019-09-20 18:00:14 +02:00
matejcik
78ecc38b1b
core: fix BIP39 backup
...
Refers to #550 . Not marking fixed because we need more tests.
2019-09-20 17:14:59 +02:00
Pavol Rusnak
702f865e8d
core/webauthn: let's use Self Attestation for now
2019-09-20 12:07:49 +02:00
Andrew Kozlik
576a211c3d
core: Clarify the messages on the screens and get rid of overflows.
2019-09-20 12:06:32 +02:00
Tomas Susanka
bf518665a0
Merge pull request #546 from trezor/tsusanka/1of1
...
core: enable 1of1 in reset device
2019-09-20 10:37:37 +02:00
Tomas Susanka
e25686e079
core: enable 1of1 in reset device
...
updates #500
2019-09-20 10:12:33 +02:00
Tomas Susanka
871e159bee
core/recovery: remove group threshold from storage
2019-09-20 09:47:15 +02:00
Tomas Susanka
6731d1bbf2
core/recovery: remove word count and backup type
2019-09-20 09:46:49 +02:00
Tomas Susanka
cf5a794436
core/storage: swap arguments in recovery_shares.set
2019-09-20 09:22:30 +02:00
Tomas Susanka
6938d2b238
Merge pull request #541 from trezor/ciny/slip39_various_fixes
...
core: various fixes to slip39
2019-09-20 09:20:31 +02:00
Pavol Rusnak
39a1e308a0
core/webauthn: change the default icon
2019-09-20 00:33:48 +02:00
Andrew Kozlik
9efc3b4431
core/webauthn: Use basic attestation in FIDO2 MakeCredential responses.
2019-09-19 20:28:51 +02:00
Pavol Rusnak
8da121ff5c
core+python: regenerate coins
2019-09-19 20:17:35 +02:00
matejcik
e14edd77a9
core: simplify confirm_share_words
2019-09-19 17:34:02 +02:00
matejcik
e4ac47b0b3
core: simplify fetch_slip39_remaining_shares
2019-09-19 17:27:23 +02:00
Andrew Kozlik
8024f6d069
core/storage: Rename APP_FIDO2 to APP_WEBAUTHN.
2019-09-19 17:17:22 +02:00
Pavol Rusnak
68513a0b39
Merge pull request #538 from trezor/andrewkozlik/fido2-signcount
...
Disable FIDO2 signature counter for some relying parties
2019-09-19 17:00:51 +02:00
ciny
cb029fa905
core: various fixes to slip39
2019-09-19 16:42:10 +02:00
Tomas Susanka
cefb1cf4fd
core: refactor slip39
2019-09-19 16:38:29 +02:00
Andrew Kozlik
315a30b42b
core/webauthn: Disable FIDO2 signature counter for some relying parties
2019-09-19 16:16:58 +02:00
Andrew Kozlik
f5ea81f905
core: Move some PIN-related functions to apps.common.request_pin and implement verify_user_pin().
2019-09-18 18:55:58 +02:00
Andrew Kozlik
262434ea1b
python/tests: Add SD protection device test.
2019-09-18 18:55:58 +02:00
Andrew Kozlik
6350b1c61c
core: Implement SD card protection.
2019-09-18 18:55:58 +02:00
Andrew Kozlik
06fc676cc9
common/messages: Add SdProtect message.
2019-09-18 18:53:42 +02:00
Tomas Susanka
5c9fd5875a
core/recovery: inform about ToS
...
updates #495
2019-09-18 12:26:53 +02:00
Andrew Kozlik
b89a9dc590
core: Implement credential management.
2019-09-17 18:32:31 +02:00
Andrew Kozlik
091053507d
common/messages: Add credential management message.
2019-09-17 18:32:31 +02:00
Andrew Kozlik
5472499326
core/webauthn: Process debuglink signals in dialogs ( #519 )
2019-09-13 18:34:23 +02:00
Ciny
a0180d233e
Merge pull request #494 from notatestuser/improve-binance-ux
...
Binance UX improvements
2019-09-13 15:05:55 +02:00
Tomas Susanka
e4c8cb1315
core: move public_key_to_wif to helpers
2019-09-13 12:55:04 +02:00
Tomas Susanka
adedb7df97
core: remove underscores in symbols used externally
...
closes #504
2019-09-13 12:55:04 +02:00
Andrew Kozlik
58c2691ad9
core/pin: Avoid flicker in remaining time message.
2019-09-12 12:04:01 +02:00
Andrew Kozlik
6ee1ea0fde
core/webauthn: Add README.md.
2019-09-12 12:04:01 +02:00
Andrew Kozlik
26193245d4
core/webauthn: Generate random part of U2F key handles with uniform distribution.
2019-09-12 12:04:01 +02:00
Andrew Kozlik
70fe14e84c
core/webauthn: Implement CTAP2 protocol for FIDO2 support.
2019-09-12 12:04:01 +02:00
Andrew Kozlik
6366f3ac0d
core/storage: Implement storage of FIDO2 resident credentials.
2019-09-12 11:46:19 +02:00
Andrew Kozlik
de183849b9
core/webauthn: Implement SLIP-0022 FIDO2 credential ID format.
2019-09-12 11:46:13 +02:00
Andrew Kozlik
f658958057
core/ui: Add ui.alert() for CTAP WINK command.
2019-09-11 15:33:16 +02:00
Andrew Kozlik
509a815f73
core/ui: Implement multi-page confirmation screen.
2019-09-11 15:33:16 +02:00
Andrew Kozlik
1f58ee7ae9
core/ui: Add text_center_trim_left() and text_center_trim_right().
2019-09-11 15:33:16 +02:00
Andrew Kozlik
5cbbcd0ce7
core/ui: Add offset parameter to ui.pulse() and specify the pulse rate in terms of period.
2019-09-11 15:33:16 +02:00
Pavol Rusnak
6ad3294f31
core: fix visibility of apps.common.device.U2F_COUNTER
2019-09-11 09:51:51 +02:00
Pavol Rusnak
e7955357b0
core: fix style
2019-09-10 13:48:25 +02:00
Pavol Rusnak
898c421752
core: enable debuglink+webauth together in the emulator firmware
2019-09-09 17:59:49 +02:00
Tomas Susanka
c66a1e7780
Merge pull request #497 from romanz/segwit-multisig
...
core/wallet: fix segwit multisig comment
2019-09-05 10:59:21 +02:00
Roman Zeyde
cb04f5774b
core/wallet: fix segwit multisig comment
2019-09-04 13:34:30 +03:00
Luke Plaster
9c2d911dcb
core: improve binance ux
2019-09-04 12:21:25 +08:00
Luke Plaster
3eff86d17b
core: fix the "coin" blueprint ( #488 )
2019-09-03 14:47:29 +02:00
ciny
ec4dd38888
core: #482 fix binance divisibility
2019-09-03 09:12:04 +02:00
Pavol Rusnak
7c74f1c54c
core: fix style
2019-09-02 13:49:46 +02:00
Jan Pochyla
355cebf8bf
core: wait for the default layout after closing a workflow
...
Fixes #469
2019-09-02 12:52:09 +02:00
Jan Pochyla
ccb926af53
core: improve log messages in workflow and wire
2019-09-02 12:52:09 +02:00
Andrew Kozlik
c1f0c642df
core: cache seed without passphrase ( #478 )
2019-09-02 12:09:03 +02:00
TheCreator
64034c6d7d
common: enable UNO ( #472 )
2019-09-01 09:47:58 +02:00
Roman Zeyde
680e18a4ba
core/seed: add SLIP-0077 derivation to Keychain ( #398 )
...
Following #66 and #317 , it would allow deriving confidential addresses and
unblinding confidential transactions' outputs.
2019-08-31 19:04:00 +02:00
Pavol Rusnak
1a71c7a3e8
common: rename Features.features to Features.capabilities
2019-08-28 15:02:30 +02:00
Jan Pochyla
34ec1ed294
core/webauthn: fix bug introduced in bb2556
...
Fixes #448
2019-08-28 14:27:32 +02:00
Pavol Rusnak
dde4c12796
common: add Feature.ShamirGroups to features
2019-08-28 09:25:11 +02:00
Pavol Rusnak
93f18b09bd
core+python: regenerate Features
2019-08-27 17:30:49 +02:00
Pavol Rusnak
74bc83726c
common: add Feature.Shamir to features
2019-08-27 17:17:26 +02:00
Andrew Kozlik
90bd453d0a
core: Improve Super Shamir texts.
2019-08-27 16:03:11 +02:00
Tomas Susanka
fd53c72a3c
Merge pull request #428 from trezor/ciny/super_shamir
...
UI for multi level Shamir reset and recovery
2019-08-27 13:22:32 +02:00
ciny
9595800158
core: store correct backup type during recovery
2019-08-27 13:10:08 +02:00
Pavol Rusnak
908bbfffef
core: remove remaning utility code for Bitcoin only firmware
2019-08-27 12:38:28 +02:00
Pavol Rusnak
c815bc410c
core: remove remaning Decred/Zcash code for Bitcoin only firmware
2019-08-27 12:38:28 +02:00
ciny
81f5cbef93
core + tests: Super shamir reset and recovery UI and tests
2019-08-27 11:50:42 +02:00
matejcik
6481316ac5
core/ethereum: fix typo in wanchain detection (in template also)
2019-08-26 14:43:43 +02:00
matejcik
b0b286aafe
core/ethereum: fix typo in wanchain detection
...
Reason it worked before: this function would fail to find a network
for wanchain, but the `network` value is only used to determine if
RSKIP60 should be used. That is almost never the case, so missing
network info did not cause an issue.
2019-08-26 14:28:05 +02:00
matejcik
2022c39ef9
core/ethereum: add support for wanchain slip44 id ( #440 )
2019-08-25 16:36:14 +02:00
Pavol Rusnak
9ae319211f
core: fill in Features.features
2019-08-23 13:52:14 +02:00
Pavol Rusnak
07ef01f3e4
core: introduce BITCOIN_ONLY flag
2019-08-23 13:52:10 +02:00
Tomas Susanka
566753e551
core: fix style
2019-08-23 12:35:17 +02:00
Pavol Rusnak
e1f0c238cf
core: fix utils.format_amount for negative amounts
2019-08-23 12:24:17 +02:00
Ryxor
2c709ee162
common/defs: add Umbru ( #433 )
2019-08-23 11:59:30 +02:00
matejcik
3467cbe236
core/cardano: do not force-show homescreen
2019-08-22 18:33:13 +02:00
Jan Pochyla
29153f0e51
core/log: be less noisy with ui.Cancelled exceptions
2019-08-22 17:37:31 +02:00
Jan Pochyla
7789a29d50
core/loop: fix last commit
2019-08-22 17:36:04 +02:00
Jan Pochyla
2c8b90f86e
core/loop: properly cleanup task waiting on a chan
2019-08-22 17:29:21 +02:00
Jan Pochyla
29cca614f0
core/workflow: properly reset the default task global
2019-08-22 17:23:35 +02:00
Jan Pochyla
6d1a315b0e
core/homescreen: render homescreen in a layout
...
FIxes a bug introduced in bb25562
2019-08-22 16:08:38 +02:00
Tomas Susanka
16b44b6f7b
core: improve log output for ui.Result exception ( #429 )
...
* core: improve log output for ui.Result exception
updates #373
* core: avoid importing ui module
2019-08-22 15:31:20 +02:00
Tomas Susanka
b65cabc67c
Merge pull request #425 from trezor/tsusanka/iss387-init-fix
...
core: fix initialized to be unrelated to recovery
2019-08-21 15:51:45 +02:00
Tomas Susanka
ba7b5c7232
core/ui: add note on yield usage
2019-08-21 15:14:33 +02:00
Tomas Susanka
c9a78d7bcb
core: fix docs typos
2019-08-21 15:12:21 +02:00
Tomas Susanka
d0ce2b9e39
core: fix initialized to be unrelated to recovery
...
closes #387
2019-08-21 14:10:36 +02:00
Tomas Susanka
4323b0ac2a
core: rename recovery keyboards
...
closes #301
2019-08-21 13:48:24 +02:00
Tomas Susanka
ba74cc2880
core: change pubkeys to List
2019-08-21 11:14:11 +02:00
Pavol Rusnak
0f6e06e1e5
common/tools: reorder coins in coin_info.py so Regtest appears at the beginning
2019-08-21 11:06:02 +02:00
Tomas Susanka
debb8ec478
Merge pull request #422 from romanz/typing
...
core/wallet: fix 'pubkeys' type to be list
2019-08-21 10:48:00 +02:00
Roman Zeyde
5b3427a21d
core: ensure multisig (m,n) parameters are valid ( #423 )
2019-08-20 19:18:34 +02:00
Pavol Rusnak
1eb823be03
core: fix permissions of apps/eos source files
2019-08-20 18:08:00 +02:00
Roman Zeyde
acfd6b7771
core/wallet: fix 'pubkeys' type to be list
2019-08-20 17:55:13 +03:00
Jan Pochyla
bb2556a22c
core: improve code documentation, simplify wire package
...
* docs: improve loop.py, ui.init
* docs: improve trezor.loop, rename spawn to race
* docs: wire
* core/wire: simplify and document the session handler
* core/wire: improve documentation
* core/wire: improve docs
* core/docs: document ui.grid function
* core: decouple ui and workflow, document both
* core: improve docs
Co-authored-by: Tomas Susanka <tsusanka@gmail.com>
2019-08-20 16:20:02 +02:00
Pavol Rusnak
cc184a0a30
common: introduce Features.features enum
2019-08-20 14:38:31 +02:00
Roman Zeyde
588998cb85
apps/wallet: support Signify Ed25519 signatures ( #348 )
2019-08-19 15:20:39 +02:00
omtns
1bb77b81c0
common/defs: enable MTNS ( #415 )
2019-08-16 17:29:50 +02:00
Tomas Susanka
e119e8de96
core/slip39: fix UI for 33 words
...
closes #395
2019-08-14 11:16:15 +02:00
Tomas Susanka
542f156b4f
core/slip39: remove _encrypt
...
(cherry picked from commit 53ca61ab00
)
2019-08-13 17:25:53 +02:00
Tomas Susanka
1b666804c0
core/shamir: fix EMS vs MS
...
(cherry picked from commit cb94454618
)
2019-08-13 17:25:47 +02:00
Roman Zeyde
7210a2f56d
common/defs: add 'confidential_assets' section to coin definitions ( #399 )
...
Enable 'confidential_assets' for Elements (following #66 and #317 ) to allow
deriving confidential addresses and signing confidential transactions.
The following Python helper script was used to update the JSON files:
```
import json
import sys
for f in sys.argv[1:]:
d = json.load(open(f))
d["confidential_assets"] = None
with open(f, "w") as o:
json.dump(d, o, indent=2)
o.write("\n")
```
Set it to `{'address_prefix': 4, 'blech32_prefix': 'el'}` for Elements.
`coins.json` and `coininfo.py` were re-generated using:
```
$ pipenv run make gen gen_check
```
2019-08-12 12:52:20 +02:00
matejcik
c285bbba7a
core: dispatch DebugLinkDecisions from a common queue
2019-08-09 16:53:12 +02:00
matejcik
741bfd5c53
core: remove loop.signal in favor of chan, change usage
2019-08-09 16:53:12 +02:00
matejcik
f680f0c0d3
core: unify NEM pager confirm with rest of codebase
2019-08-09 16:53:12 +02:00
matejcik
cf70f82d90
core: debug messages when reading from wire
...
fixes #373
2019-08-09 16:53:12 +02:00
matejcik
0890f68c0c
core: use channels to give feedback over debuglink
...
all debug input signals are now channels, and DebugLinkDecision handler
waits until the input was consumed. This means that the input events are
queued; originally, if an input event arrived before the previous was
consumed, the previous input would be lost.
reset words and their positions are now also channels, and
DebugLinkGetState can wait for their updates, if required
2019-08-09 16:53:12 +02:00
matejcik
6e7fc5f601
core: implement channels for sending messages
2019-08-09 16:53:12 +02:00
Pavol Rusnak
e23bb10ec4
core+legacy: fix KMD signing (introduce negative_fee coin field)
2019-08-09 16:47:24 +02:00
Tomas Susanka
024f4d64af
core/reset: modify confirmation sentence
2019-08-09 15:50:56 +02:00
Tomas Susanka
35ecfbcb3d
build
2019-08-09 13:34:46 +02:00
Andrew Kozlik
cb7bc8f410
core: Fix mypy warnings.
2019-08-09 12:52:55 +02:00
Andrew Kozlik
1d56b8b9a1
webauthn: Add login.microsoft.com to knownapps. Add Microsoft icon.
2019-08-09 12:46:28 +02:00
Jan Pochyla
6835748bbf
core/protobuf: fix 5b6fa113
2019-08-07 10:59:22 +02:00
Tomas Susanka
e897f7cf7f
core: fix unit tests
...
test_protobuf.py is failing because of `del ffields` introduced by 5b6fa1136a
2019-08-07 10:04:38 +02:00
Jan Pochyla
943ed73166
core/ui: remove workaround, fixed properly in c9096d9
2019-08-06 15:43:17 +02:00
Jan Pochyla
5b6fa1136a
core: improve typing annotations
2019-08-06 15:42:23 +02:00
Andrew Kozlik
0a594ea1e9
Merge pull request #280 from trezor/andrewkozlik/slip-0021
...
Add SLIP-0021 implementation and tests.
2019-08-06 14:26:34 +02:00
Jan Pochyla
c9096d9a0a
core/ui: mark Controls as dirty in the beginning
2019-08-05 15:41:44 +02:00
matejcik
aa9860fdb7
protobuf: add enum value validation ( #363 )
2019-08-02 19:06:01 +02:00
Pavol Rusnak
007f3aa6de
core: use uppercase for cashaddr QR codes
2019-08-01 17:48:07 +02:00
Tomas Susanka
46c10e9402
core/shamir: end recovery mode after Success screen
2019-07-31 17:43:51 +02:00
Ciny
90b91a7fb5
#28 - binance implementation ( #189 )
...
- placeOrder, cancelOrder, transfer messages
- cli support
- unit and device tests
2019-07-31 17:02:41 +02:00
Tomas Susanka
ac2acb0b5a
core: mnemonic mypy
2019-07-30 11:22:56 +02:00
Tomas Susanka
4030874c7e
core: some mypy in recovery-related modules
2019-07-29 17:24:59 +02:00
Tomas Susanka
4da54f95d6
core/shamir: remove checked icon from future items in Backup checklist
2019-07-29 13:42:20 +02:00
Tomas Susanka
81a1b26fad
core/shamir: fix texts
2019-07-29 12:51:02 +02:00
Tomas Susanka
4117f3506c
core/shamir: text improvements
2019-07-26 16:51:56 +02:00
Tomas Susanka
a8c9a4ddc4
core/shamir: send boolean flag in Features that Recovery is in progress
2019-07-26 16:38:05 +02:00
Tomas Susanka
5bd8ad321e
core/shamir: increase default iteration exponent to 1
2019-07-26 15:56:53 +02:00
Pavol Rusnak
c288514a4f
core+legacy: fix display of non-divisible OMNI amounts
2019-07-26 12:59:10 +02:00
Tomas Susanka
c735299bd0
core/backup: fix mnemonic_module to mnemonic_type
2019-07-26 12:06:00 +02:00
Andrew Kozlik
217c910b4b
cardano: Implement SLIP-0023 and add SLIP-0039 support for Cardano.
2019-07-25 19:43:05 +02:00
Tomas Susanka
2b6a14cb5f
core: support load device with SLIP-39
...
updates #356
2019-07-24 15:45:52 +02:00
Tomas Susanka
e95a97f281
common/protobuf: set mnemonic as repeated in LoadDevice for SLIP-39 support
2019-07-24 15:45:52 +02:00
Jan Pochyla
ebe883e4a9
core: support rebooting into default mode
2019-07-24 15:12:04 +02:00
Tomas Susanka
d2597d54c1
core/shamir: persistence
...
updates #270
2019-07-24 15:12:04 +02:00
Tomas Susanka
8f4bbb8825
core/homescreen: move err and warn to ui module
2019-07-24 12:55:12 +02:00
Tomas Susanka
539379bd55
core: alter reset_device to use enum
2019-07-22 15:43:15 +02:00
Tomas Susanka
1480f754f4
build
2019-07-22 15:32:41 +02:00
Tomas Susanka
7c0a20b5bb
core: add common page for success and warning
2019-07-16 14:49:23 +02:00
Andrew Kozlik
58e06ba22c
core/seed: Ensure ed25519 paths are hardened in Keychain.derive().
2019-07-16 14:30:30 +02:00
andrew
5f604b5fea
core/seed: Add SLIP-0021 implementation and tests.
2019-07-16 14:30:28 +02:00
Tomas Susanka
db0847282a
core/reset: check three words
...
closes #289
2019-07-16 09:58:44 +02:00
Tomas Susanka
96cdd886bc
core: fix Hold To Confirm button
2019-07-15 14:16:49 +02:00
Tomas Susanka
d073102422
core/ripple: increase the maximum amount allowed to be sent
...
The maximum amount is defined in [Ripple's docs](https://xrpl.org/basic-data-types.html#currencies ) but it's most likely in XRP and not in drops ("satoshi" equivalent). This commit increase the value to the drops equivalent.
closes #327
2019-07-15 13:34:14 +02:00
Tomas Susanka
5134cd0b80
core: add backup warnings at correct place; add backup success page
...
closes #287
2019-07-15 11:17:40 +02:00
Andrew Kozlik
b9f63c3f55
webauthn: Add Binance to knownapps. Add Binance icon.
2019-07-12 11:38:44 +02:00
Tomas Susanka
ce312e484b
Show total number of words during device recovery ( #320 )
...
Show total number of words during device recovery
2019-07-09 16:30:28 +02:00
Tomas Susanka
841a27257e
Shamir reset device tests ( #319 )
...
Shamir reset device tests
2019-07-09 15:43:53 +02:00
ciny
11b9f1c4e8
core: show total number of words during device recovery
2019-07-09 15:40:41 +02:00
ciny
bdfdaa9bb1
core: added device tests for shamir reset
2019-07-09 14:09:12 +02:00
Jan Pochyla
081e459075
core: fix various types
2019-07-09 14:05:35 +02:00
Jan Pochyla
758a1a2528
core/typing: add annotations
2019-07-09 12:51:48 +02:00
Jan Pochyla
86e16bbf31
messages: add types
2019-07-09 12:51:48 +02:00
Dusan Klinec
67212a0d2e
PaginatedWithButtons fix, fixes #306
2019-07-08 16:59:13 +02:00
Tomas Susanka
46e4c02602
core: refactor storage
...
Each namespace now has its own file in apps.common.storage and
storage/__init__ serves as an entry point.
Updates #274 .
2019-07-08 15:24:56 +02:00
Tomas Susanka
f04f190a02
core/ui: enlarge backspace button
...
closes #288
2019-07-02 14:27:03 +02:00
Tomas Susanka
049c5211f3
Restore progress_bar parameter in mnemonic.seed ( #297 )
...
Restore progress_bar parameter in mnemonic.seed
2019-07-02 12:14:46 +02:00
Pavol Rusnak
3c40ab8d96
core/src: remove unused num_pad.py
2019-07-02 00:01:31 +02:00
Pavol Rusnak
bf3c257f96
core/messages: don't generate unused messages
2019-07-01 15:52:36 +02:00
Tomas Susanka
f94bc26110
core/mnemonic: return progress_bar parameter
2019-07-01 15:08:23 +02:00
Tomas Susanka
5aa592a69a
core/slip39: modify wording on success screen
2019-06-28 12:26:34 +02:00
Tomas Susanka
f78e75bc38
core/slip39: add different wording for BIP/SLIP39 in backup warining
2019-06-28 11:57:02 +02:00
Tomas Susanka
390bef00ca
core/slip39: catch exception also when finding out threshold in recovery
2019-06-27 15:42:09 +02:00
Tomas Susanka
6c50b155de
core: remove unused variables in Shamir recovery
2019-06-27 14:10:33 +02:00
Tomas Susanka
c205acd3e1
core/slip39: do not populate MnemonicError's message; do not throw exceptions with mnemonic inside the message
2019-06-27 14:00:45 +02:00
Tomas Susanka
4f8022c5cd
core/slip39: remove partial persistance in Shamir recovery
2019-06-27 13:47:02 +02:00
Roman Zeyde
f3e3ebe1d8
core: unify exception handling at wallet.sign_tx ( #255 )
2019-06-26 16:53:26 +02:00
Roman Zeyde
99e21f2a96
core: keep BIP143 hashes as bytes ( #258 )
...
AFAIU, there is no need to convert them to bytearray.
2019-06-26 16:52:31 +02:00
Tomas Susanka
bc3a4a69be
core: style
...
I'm sorry about this, I'll add a git hook for pre-push I promise.
2019-06-26 13:20:41 +02:00
Tomas Susanka
8f3e648497
core/slip39: remove note on T9 keyboard
2019-06-26 13:18:47 +02:00
Tomas Susanka
582910732a
core/slip39: one more typo
2019-06-26 11:40:33 +02:00
Tomas Susanka
2f0a5adac6
core/slip39: hopefully final version of slip39 texts
2019-06-26 11:11:50 +02:00
Tomas Susanka
4fbac3ec63
style
2019-06-26 10:23:32 +02:00
Tomas Susanka
5394d5a5a5
core/slip39: add texts from copy and add success screen in recovery
2019-06-26 06:59:45 +02:00
Jan Pochyla
487cc19750
core/recovery_device: fix dry_run
2019-06-25 18:25:32 +02:00
Tomas Susanka
240440550a
style
2019-06-25 16:56:35 +02:00
Tomas Susanka
4124ad3ccd
core/slip39: return ProcessError when mnemonic processing fails
2019-06-25 16:49:46 +02:00
Jan Pochyla
a4039f9459
core/management: fix word check, add icons to checklist
2019-06-25 15:47:19 +02:00
Tomas Susanka
10e5ec6135
core/slip39: generate and store slip39 identifier during reset
2019-06-25 14:43:20 +02:00
Jan Pochyla
07de336586
core/pin: do not allow empty pin
2019-06-25 13:23:48 +02:00
Jan Pochyla
4d0fe4d064
core/management: fix various reset/backup/recovery ui bugs
2019-06-25 13:23:48 +02:00
Tomas Susanka
989fb1491f
core/slip39: suggest word sooner when a single one is left
2019-06-25 10:35:19 +02:00
Tomas Susanka
0daf2bf6b6
core/reset device: remove unnecessary check
2019-06-24 15:25:21 +02:00
Jan Pochyla
03f23fe940
core/mnemonic: cancel homescreen before seed progress animation
...
If we close the default layout before the animation starts, the workflow manager starts it again after the current workflow ends (and no layout is running).
2019-06-24 13:12:12 +02:00
Tomas Susanka
80f8f7900d
core: add slip39 support to reset and recovery device
2019-06-23 21:33:58 +02:00
Tomas Susanka
49d6a35249
core: add slip39 keyboard
2019-06-23 21:33:58 +02:00
Roman Zeyde
6fb76f95d1
core: ensure correct pubkeyhash/witprog length in scripts.py ( #254 )
2019-06-22 16:22:00 +02:00
Pavol Rusnak
e3e2811f7a
core: throw exception classes instead of instances where possible
2019-06-22 02:14:02 +02:00
Andrew Kozlik
84d3723ee9
slip39: Add RS1024 error locator function.
2019-06-18 18:34:29 +02:00
Pavol Rusnak
54d348228f
all: rename TREZOR to Trezor where possible
2019-06-17 20:28:29 +02:00
Tomas Susanka
906013a6d7
ui/mnemonic: small refactor in input's edit
2019-06-13 21:18:23 +02:00
Tomas Susanka
40d55dfe8b
ui: remove dead code in mnemonic.py
2019-06-13 17:58:15 +02:00
Jan Pochyla
5bc6bc4635
core: fix request_passphrase notification screen
2019-06-12 16:08:59 +02:00
Roman Zeyde
a4c0645622
core: return exception details in debug mode ( #238 )
2019-06-11 17:07:18 +02:00
Roman Zeyde
40bf2c5d2e
core: ensure pubkeyhash/scripthash have the correct length ( #220 )
2019-06-11 14:34:58 +02:00
Andrew Kozlik
0e277dfcb0
core/slip39: Fixed a bug when generating shares with group_threshold = 1.
2019-06-11 11:26:29 +02:00
Pavol Rusnak
9cb9653c27
core: refactor png2toi/toi2png tools into one toif_convert usable as a library
...
unify filename extensions
2019-06-09 18:07:07 +02:00
Pavol Rusnak
1ee5068128
core/cbor: fix string conversion to work with bytearrays
2019-06-01 11:49:27 +02:00
Andrew Kozlik
31506d81e9
core/cbor: move CBOR from cardano to common
...
- add support for text strings and boolean values
- add support negative integers and decoding maps
- fix decoding of short strings
- encode maps canonically
- add unit tests for decoding
- sort maps lexicographically by encoded key
2019-06-01 11:38:52 +02:00
Pavol Rusnak
751715dc15
common/defs: add to support.json, regenerate
2019-06-01 08:57:06 +02:00
Dusan Klinec
16317f1814
xmr: get_address - pagination, integrated address
...
- pagination added to show_address
- integrated address supported
- QR code fixed (prefix with monero: as GUI does)
2019-05-31 13:18:11 +02:00
Jan Pochyla
961499fdcf
core: fix uppercase ripple address in qr code
...
Fixes #191
2019-05-28 15:57:04 +02:00
Jan Pochyla
36534325f0
core: revamp the UI subsystem
2019-05-28 13:12:46 +02:00