matejcik
e20879189f
style(core): remove old-style annotations (Set, Tuple, Union)
2022-01-07 21:41:17 +01:00
matejcik
5e1dce35b3
style(core): remove unused type:ignore comments
2022-01-07 21:41:17 +01:00
matejcik
80f6463799
style(core): define obj_eq and obj_repr so that they pass type-check
2022-01-07 21:41:17 +01:00
matejcik
456959545c
docs(core): add changelog for type-checking
2022-01-07 21:41:17 +01:00
matejcik
454a7ce301
fix(legacy/nem): remove checks for newly required protobuf attributes
...
[no changelog]
2022-01-07 21:41:17 +01:00
matejcik
dfab3efb86
style(python): fix typecheck issues
...
[no changelog]
2022-01-07 21:41:17 +01:00
matejcik
228c4db646
style(core): improve types in rlp.py
2022-01-07 21:41:17 +01:00
matejcik
8d8cfd6692
build: fully replace mypy with pyright
...
[no changelog]
2022-01-07 21:41:17 +01:00
matejcik
45787307ca
style(core): support AnyStr in all hash function arguments
2022-01-07 21:41:17 +01:00
matejcik
dec89ea59e
refactor(core): convert if/elif chains to if-chains
...
This way AST parsers won't get stack exceeded (because an elif counts as
an else { if {}} to an AST parser apparently?) and so automated tools
will like tokens.py and friends.
2022-01-07 21:41:17 +01:00
matejcik
c3f2db3be5
refactor(core): improve type signature of bech32.convertbits
2022-01-07 21:41:17 +01:00
grdddj
9fc5bb546b
style(core): full pyright-based type-checking
...
Changes many fields to required -- as far as we were able to figure out,
signing would fail if these fields aren't provided anyway, so this
should not pose a compatibility problem.
Co-authored-by: matejcik <ja@matejcik.cz>
2022-01-07 21:41:17 +01:00
matejcik
9c5945a888
chore(core): add fake typing module (not included in build)
2022-01-07 21:41:17 +01:00
matejcik
1bfaec10e9
build(core): rewrite build_mocks with pathlib, add symlinks to ../mocks
2022-01-07 21:41:17 +01:00
matejcik
bda1fa9912
build(core): exclude all "from typing" imports from build
2022-01-07 21:41:17 +01:00
Martin Milata
3100961dda
ci(nix): update to pyright-1.1.204
2022-01-07 21:41:17 +01:00
Christian Reitter
525bbab165
tests(crypto): update wycheproof testcase source and parsing
...
The JSON schema of the test cases has slightly changed.
The "curve" field has moved to the "testGroups" level and the X25519 algorithm has been renamed,
which requires adjustments in the parsing code.
A duplicate definition of "ecdh_vectors" has also been removed.
2022-01-07 16:55:24 +01:00
Christian Reitter
176b12762f
fix(crypto): fix expected_sig buffer handling
2022-01-07 14:54:52 +01:00
Christian Reitter
64281c69ce
fix(crypto): fix incorrect sig buffer size
2022-01-07 14:54:52 +01:00
Andrew Kozlik
4882648dad
fix(crypto): Treat point at infinity as an invalid public key in ecdsa_recover_pub_from_sig().
2022-01-07 14:37:40 +01:00
FujiCoin
33c243be8d
feat(common): enable taproot for Fujicoin, fix xpub versions
...
* fix fujicoin params
* add test_fujicoin/test_send_p2tr
* fix test
* fix serialized_tx.hex()
* Recreated based on a new transaction
* make gen, some fixes
Co-authored-by: matejcik <ja@matejcik.cz>
2022-01-05 12:43:34 +01:00
Pavol Rusnak
b0e0280465
chore: drop obsolete fw_vendor_keys field from Features
...
[no changelog]
2022-01-03 14:23:58 +01:00
Pavol Rusnak
35d40cc164
fix(core): change logic of vendor header comparison
...
Previously we checked whether the current vendor header and
the new vendor header are the same by comparing the embedded keyset.
What originally looked like a good idea is not that good, because
this disallows us from ever changing the vendor header signing keys
without causing erasure of the storage during the version update.
This commit fixes that by changing the logic to comparing just the
vendor string.
Change of function names is purely cosmetic:
* vendor_keys_hash -> vendor_header_hash
* check_vendor_keys_lock -> check_vendor_header_lock
2022-01-03 14:23:58 +01:00
Martin Milata
572f3eda20
chore(legacy/firmware): bump version to 1.10.6
2022-01-03 12:40:06 +01:00
Martin Milata
3f12742669
chore(common): update coin support status
2021-12-28 12:42:43 +01:00
Martin Milata
c0dbcf37e4
chore(common): update chains and tokens
2021-12-28 12:42:43 +01:00
Martin Milata
96378a15a8
docs(legacy): changelog for 1.10.5
2021-12-23 19:18:17 +01:00
matejcik
33b23ea6a0
fix(tests): show addresses in test_show_segwit
2021-12-21 19:39:57 +01:00
matejcik
f0f950d484
fix(tests): add correct test case for GRS taproot
2021-12-21 19:39:57 +01:00
vdovhanych
f9b43efcbe
ci: jobs for deploying arm emulators
2021-12-21 16:25:11 +01:00
vdovhanych
0024d72340
ci: add arm build for core unix and legacy emulators
2021-12-21 16:25:11 +01:00
gruve-p
3ab036a1d1
feat(common): enable Taproot on Groestlcoin
...
Add additional device tests for GRS
Add P2TR GetAddress for GRS mainnet and testnet
Add SignTX spending taproot UTXO (The resulting transaction from the SignTx device test was successfully mined on Testnet.)
2021-12-20 22:49:36 +01:00
Pavol Rusnak
c0510fc91e
build(crypto): make valgrind flag compatible with secp256k1-zkp ( #2027 )
...
Co-authored-by: Ondřej Vejpustek <ondrej.vejpustek@satoshilabs.com>
2021-12-20 15:19:14 +01:00
matejcik
9a9201fe8a
fix(ci): properly ignore changed generated enums
2021-12-19 20:36:30 +01:00
matejcik
d2ac4e7a9c
feat(tests): add tests for blind EIP-712 signing
...
Co-authored-by: Martin Milata <martin@martinmilata.cz>
Co-authored-by: grdddj <jiri.musil06@seznam.cz>
2021-12-19 20:36:30 +01:00
Alisina Bahadori
77ab865386
feat(legacy): Implement EIP-712 signing
2021-12-19 20:36:30 +01:00
Martin Milata
a9a6495c7e
docs: fix dead links
2021-12-17 18:20:08 +01:00
Carlosbogo
dd1240ef53
docs: update links in changelogs ( #2013 )
...
fixes #2011
2021-12-17 14:53:21 +01:00
grdddj
f838e15eda
chore(ci): connect tests - exporting emu/bridge logfile from tenv as artifact
2021-12-17 13:53:26 +01:00
Martin Milata
bfe5b6a272
test(core): make sure path check fails immediately
2021-12-16 14:15:39 +01:00
Vladimir Volek
e6da3ceb7b
chore: add Cardano testnet support definitions
2021-12-15 14:10:52 +01:00
Vladimir Volek
e2eb46f62c
fix: slip44 testnet
2021-12-15 14:10:52 +01:00
Vladimir Volek
0f0150a6f8
feat: add cardano testnet definitions
2021-12-15 14:10:52 +01:00
Pavol Rusnak
56f0e2c5de
fix(core): add missing include
...
we were using `FILE` and `fprintf` without including the stdio header
2021-12-14 19:57:21 +01:00
Pavol Rusnak
30a77a76bc
chore(legacy): rename MEMORY_PROTECT flag to PRODUCTION to match core naming ( #2003 )
2021-12-12 15:45:10 +01:00
grdddj
3ed92a72bb
feat(ci): running connect tests against current branch
2021-12-10 14:18:21 +01:00
matejcik
38d44e6803
chore(python): bump trezorlib version in repo
2021-12-10 10:54:04 +01:00
Pavol Rusnak
aa4ade59dc
chore(ci): update alpine-linux to 3.15.0 and nix to 2.4
2021-12-09 17:23:30 +01:00
matejcik
911dbf0522
chore(python): regenerate OPTIONS readme
2021-12-09 14:32:43 +01:00
matejcik
48523d3d5b
chore(python): exclude mako template from distributed packages
2021-12-09 14:32:43 +01:00