mcudev
6137a55b06
core/embed/usb: use all available usb endpoints and update the usb fifo sizing
2021-04-09 12:50:40 +02:00
Pavol Rusnak
2852b947ec
chore(core): regenerate coins
2021-04-08 14:17:43 +02:00
xloem
e821104237
fix(crypto): update case of windows.h ( #1560 )
...
When building for windows on a case-sensitive system, mingw always comes with a lower-case windows.h
2021-04-08 14:16:23 +02:00
Pavol Rusnak
6b371749bc
fix(common): fix errors in coin definitions
2021-04-07 16:37:56 +02:00
HyperPeek
13fbb25f0b
feat(common): add tRVN ( #1561 )
2021-04-07 16:26:52 +02:00
Martin Milata
88cdb72aec
ci: bump nixpkgs version to latest
2021-04-06 22:06:12 +02:00
Martin Milata
8e00904a3f
ci: unified shell.nix for hardware tests
2021-04-06 22:06:12 +02:00
Martin Milata
720eaa3abd
ci: run monero tests on hardware
2021-04-06 22:06:12 +02:00
Alexis Hernandez
bb1c638d3b
legacy: Update op_return max size to 150 bytes
...
The goal is to allow Trezor 1 to create TPoS contracts for Stakenet.
Last year, Stakenet introduced a hard-fork [1] to change the way TPoS contracts
are created, instead of a custom signature method, now it works with the
output from the signMessage method, while this works for Trezor T, it doesn't
work for Trezor 1 due to the 80 bytes limit on the OP_RETURN output while
Stakenet allows up to 150 bytes [2], in a gitter discussion [3] we concluded that
the change should be fine.
The hard-fork was introduced because we couldn't got our TPoS contracts PR accepted [4],
the OP_RETURN still contains the same data, its just stored in a different way:
- The TPoS address, where the coins to stake are stored, and where rewards are received.
- The merchant address, where the merchant receives its commission.
- The contract commission.
- The TPoS collateral signature (this is what uses the signMessage now).
At last, there is an example transaction creating a TPoS contract [5].
[1]: https://github.com/X9Developers/XSN/pull/154
[2]: https://github.com/X9Developers/XSN/blob/master/src/script/standard.h#L34
[3]: https://gitter.im/trezor/community?at=6064c41e940f1d555e2ea670
[4]: https://github.com/trezor/trezor-firmware/pull/140
[5]: https://xsnexplorer.io/transactions/858feb31097501cf68d698cde104cf778ec51ff3668e943404b549a5dd2f5792
2021-04-06 10:15:59 +02:00
Martin Milata
ac711fb8ee
style(core): use more recent type annotation syntax
...
https://www.python.org/dev/peps/pep-0585/ - Type Hinting Generics In Standard Collections
https://www.python.org/dev/peps/pep-0604/ - Allow writing union types as X | Y
2021-04-01 11:12:30 +02:00
Martin Milata
0278998f72
style(common): mypy: disable implicit Optional for function arguments
2021-04-01 11:12:30 +02:00
Martin Milata
8b3ac659a0
style(core): mypy: disable implicit Optional for function arguments
...
https://www.python.org/dev/peps/pep-0484/#union-types
2021-04-01 11:12:30 +02:00
Pavol Rusnak
bb30f5026c
docs: clear up licensing information
...
[skip_ci]
2021-03-31 18:51:52 +02:00
Martin Milata
f97af2af1b
chore(core/ui): typing: no implicit Optional
2021-03-30 22:34:01 +02:00
Martin Milata
da72482c2f
refactor(core/ui): get rid of confirm_wipe
2021-03-30 22:34:01 +02:00
Martin Milata
c0174ff217
refactor(core/ui): raise exception on dialog cancel by default
2021-03-30 22:34:01 +02:00
Martin Milata
2b6ea25712
refactor(core): convert rest of apps.bitcoin to layouts
2021-03-30 22:34:01 +02:00
Martin Milata
b1e38fe382
refactor(core): no implicit spaces in render_text
2021-03-30 22:34:01 +02:00
Martin Milata
2a5f5c1c20
refactor(core): convert parts of apps.monero to layouts
2021-03-30 22:34:01 +02:00
Martin Milata
6668921a4f
refactor(core): convert apps.common.request_pin to layouts
2021-03-30 22:34:01 +02:00
Martin Milata
01900b8536
refactor(core): convert parts of apps.webauthn to layouts
2021-03-30 22:34:01 +02:00
Martin Milata
ffe6d65f72
refactor(core): convert parts of apps.management to layouts
2021-03-30 22:34:01 +02:00
Martin Milata
c09a142e2a
refactor(core): convert apps.misc.* to layouts
2021-03-30 22:34:01 +02:00
Martin Milata
0b5d17bf49
refactor(core/ui): merge confirm_hexdata and show_pubkey
2021-03-30 22:34:01 +02:00
Martin Milata
6ded531f8f
refactor(core): convert apps.common.sdcard to layouts
2021-03-30 22:34:01 +02:00
Martin Milata
035f114125
fix(core/ui): don't return CONFIRMED/CANCELLED from layouts
2021-03-30 22:34:01 +02:00
Pavol Rusnak
f128e4a1c2
docs(legacy): use the correct binary name when building via docker
2021-03-27 09:23:45 +01:00
Andrew Kozlik
01e7700333
fix(legacy): Flip bitmaps correctly.
2021-03-26 14:49:21 +01:00
Andrew Kozlik
a755e99ccc
feat(legacy): Display nLockTime in human-readable form.
2021-03-26 14:49:21 +01:00
Rafael Korbas
a9b8b0e119
feat(core/cardano): chunked serialization of signed transaction
2021-03-26 11:15:19 +01:00
gabrielkerekes
3cb686d452
fix(core/cardano): make witnesses order deterministic
2021-03-26 11:15:19 +01:00
Andrew Kozlik
25411e22c9
test(core): Add unit test for modtrezorconfig counter.
2021-03-26 10:54:56 +01:00
Andrew Kozlik
4c2e4bcb65
fix(storage): Check for overflow in counter increment.
2021-03-26 10:54:56 +01:00
Andrew Kozlik
2836bfc64c
fix(core): Improve error handling and range checking in modtrezorconfig.
2021-03-26 10:54:56 +01:00
mcudev
23abf7aff0
python/trezorctl: make bitcoin regtest a supported coin for trezorctl btc get-descriptor
2021-03-25 15:52:34 +01:00
Andrew Kozlik
cdcc1b949f
docs(storage): Update storage encryption documentation.
2021-03-25 14:24:41 +01:00
Andrew Kozlik
151592c6a3
test: Add upgrade test with enabled wipe code for legacy.
2021-03-25 14:24:41 +01:00
Andrew Kozlik
9bd4465fbf
test: Add test for progressive storage version upgrades without unlocking in between.
2021-03-25 14:24:41 +01:00
Andrew Kozlik
aaa1ea6352
test: Add upgrade test with enabled PIN for legacy.
2021-03-25 14:24:41 +01:00
Andrew Kozlik
8f5f5daaab
test(storage): Update tests to comply with new storage version and interface.
2021-03-25 14:24:41 +01:00
Andrew Kozlik
66823e2893
chore(core,legacy): Bump FIX_VERSIONs due to upgrade to storage version 3.
2021-03-25 14:24:41 +01:00
Andrew Kozlik
602761694f
test: Use long PIN values in device tests.
2021-03-25 14:24:41 +01:00
Andrew Kozlik
885b6f7214
feat(python): Support 50 digit PIN and wipe code in trezorctl.
2021-03-25 14:24:41 +01:00
Andrew Kozlik
cbb0d82999
feat(legacy): Support 50 digit PIN and wipe code.
2021-03-25 14:24:41 +01:00
Andrew Kozlik
3084d1196d
feat(core): Support 50 digit PIN and wipe code.
2021-03-25 14:24:41 +01:00
Andrew Kozlik
c68e91c12a
feat(storage): Support PIN and wipe code of unlimited length.
2021-03-25 14:24:41 +01:00
Pavol Rusnak
1cc719bf49
fix(common): don't use grayscale png for coin icons
2021-03-25 13:49:53 +01:00
Pavol Rusnak
da7214d82f
fix(common): update support.json to include Firo
2021-03-25 13:39:59 +01:00
a-bezrukov
a305c774df
fix(common): Zcoin rebrand to Firo ( #1544 )
2021-03-25 13:35:10 +01:00
Andrew Kozlik
7436fd06b9
test: Add device test for replacement transaction with OP_RETURN output.
2021-03-24 22:06:41 +01:00