Commit Graph

2109 Commits (f607cb25019f0bc18bae281ce294a52810fc5ec5)

Author SHA1 Message Date
Andrew Kozlik 8be6689150 chore(common): Rework AuthorizeCoinJoin message parameters.
2 years ago
Andrew Kozlik 556e8a147a chore(core): Make CoinJoin checks more lenient.
2 years ago
Andrew Kozlik 605e128ca0 chore(core): Simplify path warning UI.
2 years ago
Andrew Kozlik 94fa6d2515 feat(core): Guess weight of unverified external inputs.
2 years ago
Andrew Kozlik 43f1d67289 feat(core): Support unverified external inputs.
2 years ago
Andrew Kozlik c9e6ca30c9 feat(core): Ensure input's script type and path match the scriptPubKey.
2 years ago
matejcik 0b9f7db742 fix(core): support structs as array elements (fixes #2167)
2 years ago
matejcik 4e2129e0a0 feat(core): automatically choose best QR encoding
2 years ago
grdddj b9858f00c5 chore(tools): simplify build_protobuf file sources creation
2 years ago
grdddj 3d505874aa feat(ci): create pyright tool and include it in CI
2 years ago
matejcik db9f89ed4e chore(core): update Bitcoin testcases to use valid prevtxes
2 years ago
matejcik bbf286e050 fix(core/debug): only wait for layout when _enabling_ watch_layout
2 years ago
matejcik 390411098a build(core): enable ui_debug for non-frozen emulator
2 years ago
matejcik 59b5f48dc1 build(core): fix echo invocation for dash
2 years ago
Jan Pochyla 4c027a688c chore(core/rust): Simplify LayoutObj
2 years ago
Jan Pochyla 2b6f1a4d5c chore(core/rust): Use MultiTapKeyboard in passphrase
2 years ago
Jan Pochyla 3c337723b2 chore(core/rust): Add mnemonic keyboards
2 years ago
Pavol Rusnak c6667fa0c2 feat(core): verify bip340 pubkeys used in p2tr addresses
2 years ago
Pavol Rusnak b9bbd5fcd7 chore: update dependencies
2 years ago
Andrew Kozlik d52a59e37b feat(core): Show "signature is valid" dialog when VerifyMessage succeeds.
2 years ago
Andrew Kozlik 4d40d6dbfc feat(core): Support Electrum signatures in VerifyMessage.
2 years ago
Andrew Kozlik 473657fd44 chore(core): Tweak validation of pre-authorized GetOwnershipProof.
2 years ago
Martin Milata 80655747d0 test(core/rust/ui): pagination unit test
2 years ago
Martin Milata ab0eef5de0 fix(core/rust/ui): adjust spacing for confirm_action
2 years ago
Martin Milata 5378492ea9 chore(core/rust): wireframe rendering for ui debugging
2 years ago
Martin Milata 10650af1fa refactor(core/rust/ui): paragraphs breaking
2 years ago
Martin Milata b5da6dc911 refactor(core/rust): geometry/display API improvements
2 years ago
Martin Milata f2b8822d76 refactor(core): improve build-time option for old/new UI
2 years ago
Martin Milata b64c69c3ff feat(core/rust/ui): implement confirm_action
2 years ago
Martin Milata 6d1227d839 feat(core/rust/ui): SwipePage: add buttons, auto-disable scrolling
2 years ago
Martin Milata 695d80bf54 refactor(core/rust/ui): uPy buffer support for TT buttons
2 years ago
Martin Milata f167a2bef2 feat(core/rust/ui): add model T title bar
2 years ago
Martin Milata c7b33e2bc0 feat(core/rust/ui): add new icons
2 years ago
Martin Milata b46901bc8b feat(core): add TT Hoves fonts, introduce medium variant
2 years ago
matejcik abc593d19a tests: drop skip_ui support
2 years ago
Jan Pochyla d979efc3ca chore(core/rust): Try to simplify pagination a bit
2 years ago
Martin Milata 8fb28e4af5 feat(core/rust): impl Paginate for Paragraphs
2 years ago
Martin Milata f29ccf6009 fix(core/rust): UI tweaks
2 years ago
Martin Milata 48f29ee0b9 refactor(core/rust): return bounding box after laying out text
2 years ago
Martin Milata 7271606ca2 feat(core): smaller debug square on T1
2 years ago
Martin Milata bea696dfc9 feat(core/rust): Paginated for T1
2 years ago
Martin Milata 19b2358084 refactor(core/rust): T1 title bar
2 years ago
Martin Milata 7f224ab36d refactor(core/rust): model-agnostic Paginated
2 years ago
matejcik c236dfc814 style(core): type `object` doesn't have __slots__
2 years ago
matejcik a1c62098e9 fix(core/ethereum): implement hold-to-confirm for eip1559 transactions
2 years ago
grdddj 5d76144ef5 chore(common): always use resolve() when accessing parent of the Path
2 years ago
Jan Pochyla a3c79bf4f7 feat(core/rust): Add Paginated component
2 years ago
Jan Pochyla a7a305d34d fix(core/rust): Fix request_complete_repaint for components without any Child descendants
2 years ago
Jan Pochyla 129363f080 feat(core/rust): Add Trace to Paragraph[s], improve size calculation
2 years ago
Jan Pochyla d2c8c66385 feat(core/rust): First shot at Paragraphs API
2 years ago
Jan Pochyla 8c47b94b79 feat(core/rust): Add experimental LinearLayout
2 years ago
Jan Pochyla 3dd3d7f87b feat(core): Add HoldToConfirm example, improve Loader and animation frame support
2 years ago
Jan Pochyla 117a0bd518 feat(core): Add preliminary anim frame support
2 years ago
Jan Pochyla be3e99b96d feat(core): Add WiP Loader & generic Animation type
2 years ago
matejcik 87a7e94f5c feat(core/rust): add saturating multiplication by f32 to Duration
2 years ago
Andrew Kozlik 83686d1be2 chore(core): Add HashContextInitable protocol class.
2 years ago
Andrew Kozlik f17a435cdf refactor(core): Rename bitcoin_varint to compact_size.
2 years ago
Andrew Kozlik 0e58218f5f feat(core): Implement Bitcoin payment requests.
2 years ago
Andrew Kozlik d0c3a6a2fa chore(core): Add mac field to Address message.
2 years ago
Andrew Kozlik 2ac3d0acb4 feat(core): Implement GetNonce command.
2 years ago
Andrew Kozlik 0959947a88 chore(common): Add GetNonce, Nonce and TxAckPaymentRequest message.
2 years ago
Jan Pochyla baffe8fdf3 chore(core/rust): Add int variant to tracing
2 years ago
Jan Pochyla 5b0686f09a chore(core/rust): Forbid unsafe in components
2 years ago
Jan Pochyla 12deedf3f6 chore(core/rust): Add backlight fading fn
2 years ago
Jan Pochyla a54ca9cb05 chore(core/rust): Add micropython::time::sleep
2 years ago
Jan Pochyla 334a143b76 chore(core/rust): Split FormattedText into separate mod
2 years ago
Jan Pochyla d5a74a8614 chore(core/rust): Rename Text to FormattedText
2 years ago
Jan Pochyla 39263144b7 chore(core): Various little improvements in Rust UI
2 years ago
Jan Pochyla 998210d569 feat(core): Add Instant and Duration types
2 years ago
grdddj 8524f4b6ba feat(ui): InfoConfirm layout accepting DebugLinkDecision
2 years ago
Andrew Kozlik ba4f046d6f feat(common): Add INFO button to DebugLinkDecision.
2 years ago
Pavol Rusnak 37bd121394 chore(core/embed): check for negative values in trezor_get_uint
2 years ago
Martin Milata 98b1159b0b Merge branch 'release/22.01'
2 years ago
Andrew Kozlik ebc07fd6db ci: Suppress libSDL memory leaks.
2 years ago
Andrew Kozlik 49ae8848db fix(core): Fix memory leaks in emulator.
2 years ago
Andrew Kozlik 39b64b8569 fix(core): Fix stack-use-after-scope in display.c.
2 years ago
Martin Milata e3541997f0 ci(core): run nightly device tests with AddressSanitizer
2 years ago
Pavol Rusnak 4a71d15b1d chore(core/embed): refactor trezor_obj_get_uint64 into trezorobj.h
2 years ago
Alois Klink 5c4703c9bb fix(core,legacy): Fix domain-only ethTypedData
2 years ago
Andrew Kozlik cdf2129b73 fix(core): Fix proof of ownership sighash computation.
2 years ago
Andrew Kozlik 88a08e3512 chore(core): Increase maximum CoinJoin coordinator name length to 36 (2 lines).
2 years ago
matejcik e20879189f style(core): remove old-style annotations (Set, Tuple, Union)
2 years ago
matejcik 5e1dce35b3 style(core): remove unused type:ignore comments
2 years ago
matejcik 80f6463799 style(core): define obj_eq and obj_repr so that they pass type-check
2 years ago
matejcik 456959545c docs(core): add changelog for type-checking
2 years ago
matejcik 228c4db646 style(core): improve types in rlp.py
2 years ago
matejcik 8d8cfd6692 build: fully replace mypy with pyright
2 years ago
matejcik 45787307ca style(core): support AnyStr in all hash function arguments
2 years ago
matejcik dec89ea59e refactor(core): convert if/elif chains to if-chains
2 years ago
matejcik c3f2db3be5 refactor(core): improve type signature of bech32.convertbits
2 years ago
grdddj 9fc5bb546b style(core): full pyright-based type-checking
2 years ago
matejcik 9c5945a888 chore(core): add fake typing module (not included in build)
2 years ago
matejcik 1bfaec10e9 build(core): rewrite build_mocks with pathlib, add symlinks to ../mocks
2 years ago
matejcik bda1fa9912 build(core): exclude all "from typing" imports from build
2 years ago
FujiCoin 33c243be8d
feat(common): enable taproot for Fujicoin, fix xpub versions
2 years ago
Pavol Rusnak b0e0280465 chore: drop obsolete fw_vendor_keys field from Features
2 years ago
Pavol Rusnak 35d40cc164 fix(core): change logic of vendor header comparison
2 years ago
Martin Milata 3f12742669 chore(common): update coin support status
2 years ago
Martin Milata c0dbcf37e4 chore(common): update chains and tokens
2 years ago
gruve-p 3ab036a1d1
feat(common): enable Taproot on Groestlcoin
2 years ago
Alisina Bahadori 77ab865386 feat(legacy): Implement EIP-712 signing
2 years ago
Carlosbogo dd1240ef53
docs: update links in changelogs (#2013)
2 years ago
Pavol Rusnak 56f0e2c5de
fix(core): add missing include
2 years ago
Pavol Rusnak 30a77a76bc
chore(legacy): rename MEMORY_PROTECT flag to PRODUCTION to match core naming (#2003)
2 years ago
Martin Milata ff5f965c44 Merge branch 'release/21.12'
2 years ago
Martin Milata 1734957685 build(core): update rust edition to 2021
2 years ago
Andrew Kozlik ef5994d9f3 feat(core): Support ownership proofs for Taproot addresses.
2 years ago
Martin Milata e9fd1fc49f build(core/emulator): build with -fPIE
2 years ago
Martin Milata 38c526719c chore(core): bump version to 2.4.4
3 years ago
matejcik 949dfe1f5d docs(core/cardano): add derivation scheme docs
3 years ago
Ondřej Vejpustek f664734060 test(core): add unit tests for bip340
3 years ago
Ondřej Vejpustek 046beb4fde test(core): fix secp256k1 unit tests
3 years ago
Martin Milata 7cc9f13605 refactor(core/rust): allow model_t1 and model_tt at once
3 years ago
Martin Milata 52f719ad81 ci: add core unit test t1
3 years ago
Martin Milata afd7cb3b01 feat(core/rust): add example layout for T1
3 years ago
Martin Milata 4d60c10330 feat(core/rust): add support for T1 UI
3 years ago
Martin Milata 3c49ef2f62 feat(core/rust): exposing vararg functions to uPy
3 years ago
Ondrej Mikle 219e08d81e build(core): keep bootloader image even for non-production builds
3 years ago
Martin Milata 595b14254c docs(core): changelog for 2.4.3
3 years ago
Andrew Kozlik 9052133fca fix(core): Ensure user is warned about non-standard paths.
3 years ago
Martin Milata aa3784f726 build(core): place secp256k1-zkp in FLASH2 to make space for bootloader
3 years ago
Martin Milata d656f88572 style(all): reformat with clang-format 13.0
3 years ago
Ondřej Vejpustek ad38d8e324 refactor(crypto,core): make zkp_context_init() return status
3 years ago
Ondřej Vejpustek f918cf9a27 fix(core): fix typos in modtrezorcrypto-bip340.h
3 years ago
Ondřej Vejpustek 3612620268 build(crypto,core): make secp256k1-zkp context as small as possible
3 years ago
Andrew Kozlik 221977ad9d chore(core): Convert SIGHASH_* consts to SigHashType enum.
3 years ago
Andrew Kozlik aaceb5bcc6 chore(core): Remove USE_SECP256K1_ZKP_BIP340 build option.
3 years ago
Andrew Kozlik ae35086bb9 refactor(core): Rename Hash143 to SigHasher and replace preimage_hash() with two functions.
3 years ago
Andrew Kozlik 398cea8f40 test(core): Add unit tests for BIP-341 signature hash.
3 years ago
Andrew Kozlik 03b1b3bc6b feat(core): Show path warning for SignMessage.
3 years ago
Andrew Kozlik ef2ad57ec8 fix(core): Fix CoinJoin approval check.
3 years ago
Andrew Kozlik 56ac799626 feat(core): Support external inputs in TxWeightCalculator.
3 years ago
Andrew Kozlik f9f0b517e2 feat(core): Support Taproot in TxWeightCalculator.
3 years ago
Andrew Kozlik a635876807 test(core): Add multisig unit tests for TxWeightCalculator.
3 years ago
Andrew Kozlik 9b579094c0 fix(core): Fix TxWeightCalculator.
3 years ago
Andrew Kozlik a5bd1643fc fix(core): Fix OP_PUSH writing.
3 years ago
Andrew Kozlik 7653efb415 chore(core): Disable Taproot for altcoins.
3 years ago
Andrew Kozlik c0f853dc78 chore(core): Disable ownership proof generation for Taproot.
3 years ago
Andrew Kozlik 475b95b11e feat(core): Disable prevtx streaming for Taproot.
3 years ago
Andrew Kozlik 84e31310a1 feat(core): Support Taproot in SignatureVerifier.
3 years ago
Andrew Kozlik a17cdb7cfa feat(core): Implement Taproot signing.
3 years ago
Andrew Kozlik 381e8bc85a feat(core): Implement the BIP-341 common signature message computation.
3 years ago
Andrew Kozlik 99e4ed6f42 chore(core): Support script_pubkey parameter for Bitcoin inputs.
3 years ago
Andrew Kozlik 630c06e782 feat(core): Support Taproot scripts.
3 years ago
Andrew Kozlik 68ad1b07d2 feat(core): Recognize Taproot inputs.
3 years ago
Pavol Rusnak 57fddcfd9d feat(core): recognize Taproot change-outputs
3 years ago
Andrew Kozlik dd7ed61939 feat(core): Implement GetAddress for taproot.
3 years ago
Pavol Rusnak 6406f0640d feat(core): introduce PATTERN_BIP86 to keychain
3 years ago
Andrew Kozlik ae41f7dec8 fix(core): Fix bip340 module build.
3 years ago
Andrew Kozlik 59c0f4383d feat(core): Add key tweaking functions to trezorcrypto.bip340.
3 years ago
Andrew Kozlik bec0634bae feat(core): Improve message signing UI.
3 years ago
Andrew Kozlik cf14e06aa0 feat(core): Show address confirmation in SignMessage.
3 years ago
Andrew Kozlik bc4a56b2c0 feat(core): Support no_script_type option in SignMessage.
3 years ago
Andrew Kozlik c2f1850abb feat(common): Add no_script_type option to SignMessage.
3 years ago
matejcik 0870befe58 docs: add changelogs
3 years ago
matejcik c38efaa9a5 chore: make bitcoin-only checker happy
3 years ago
matejcik 72924a016f tests(core): add unit tests for Icarus and Icarus-Trezor, fix failing tests
3 years ago
matejcik 10e338e005 feat(core/cardano): allow derivation type selection
3 years ago
matejcik f6f52445bd feat(core/cardano): support Icarus, Icarus-Trezor, and Ledger derivations
3 years ago
matejcik f0ae16069c fix(core): do not send passphrase_protection field when device is locked (fixes #1807)
3 years ago
matejcik f818f4bc23 feat(core): derive Cardano seed together with normal seed, if requested
3 years ago
matejcik 387466e073 refactor(core): separate Cardano cryptography into its own module
3 years ago
matejcik eacaffd079 fix(core/ethereum): use built-in ethereum_pubkeyhash() in get_address
3 years ago
matejcik faa807f995 feat(core): show progress for SLIP39 derivation
3 years ago
matejcik 8caac218ec feat(core/cardano): indicate whether Cardano seed should be derived
3 years ago
matejcik bc75d05772 chore(common/defs/fido): add coinbase u2f
3 years ago
Pavol Rusnak a3b83685ef fix(core): fix emulator build on Apple Silicon
3 years ago
Martin Milata a01516389a chore(vendor): update QR-code-generator
3 years ago
Jun Luo 62b649ef5d refactor(common & core & legacy): Stellar, rename StellarCreatePassiveOfferOp to StellarCreatePassiveSellOfferOp.
3 years ago
Jun Luo d064aae3f9 feat(common & core & legacy): Stellar, add support for StellarPathPaymentStrictSendOp.
3 years ago
Jun Luo 1dcb8e4913 feat(common & core & legacy): Stellar, add support for StellarManageBuyOfferOp.
3 years ago
Jun Luo 3a5768c4bf refactor(common & core & legacy): Stellar, rename StellarManageOfferOp to StellarManageSellOfferOp and rename StellarPathPaymentOp to StellarPathPaymentStrictReceiveOp.
3 years ago
Martin Milata 1979bcc39c chore(common): bring back eth:xDAI
3 years ago
grdddj 73238135d6 feat(core/ethereum): EIP-712
3 years ago
grdddj 082b7ecd91 feat(core): plural function supports "key/keys" string
3 years ago
grdddj ecc0f6c445 fear(core/ui): add should_show_more layout function
3 years ago
grdddj b1a3618c17 refactor(core/ethereum): rename address.py to helpers.py
3 years ago
Martin Milata 9a7e6c2900 chore(common): update chains and tokens
3 years ago
Andrew Kozlik eb90efd914 chore(crypto,core,legacy): Add return code to hdnode_fill_public_key().
3 years ago
Andrew Kozlik 34621a6b6d fix(crypto,core,legacy): Check private key validity when deriving public key.
3 years ago
Martin Milata ea1b7fbd54 chore(common): update chains and tokens
3 years ago
Martin Milata 87cc44e73a chore(common): update coins support status
3 years ago
matejcik 0e6669bd10 feat(core/stellar): show start/end timestamps in human readable format
3 years ago
matejcik f7c340f333 feat(core/bitcoin): show lock_time as human readable datetime
3 years ago
matejcik 1d72085b5c feat(core): implement conversion from timestamp to datetime
3 years ago
matejcik e972839ac7 style(all): fix pylint complaints
3 years ago
matejcik f88f568f1e feat(all): enable pylint globally
3 years ago
matejcik 84c310a2ba chore(core): remove forgotten and unused apps/common/confirm.py
3 years ago
Pavol Rusnak b2ff86ff3a
fix(common): drop unusable coins BELL and ZNY (#1872)
3 years ago
Pavol Rusnak 7b2825e68e fix(common): rebrand brhodium to xrhodium
3 years ago
Ondřej Vejpustek a924bd4dc6 build(core): do not link gen_context.o to trezor_lib
3 years ago
Ondřej Vejpustek dbfc7d241f chore(vendor,crypto): bump version of secp256k1-zkp
3 years ago
Ondřej Vejpustek 29ce860d46 refactor(core,crypto): rename schnorr to BIP340
3 years ago
Ondřej Vejpustek 15bb085509 refactor(core,crypto): make public key derivation functions return
3 years ago
Ondřej Vejpustek 172f399b29 style(core): fix style
3 years ago
Ondřej Vejpustek 7ac0bdd215 feat(core): make core use Schnorr signatures
3 years ago
Ondřej Vejpustek 26463eb3ce feat(core): make core use ecdsa from secp256k1_zkp wherever possible
3 years ago
Pavol Rusnak 9e0cfa6783 fix(core): we don't need separate linker script for zkp
3 years ago
Pavol Rusnak d505edaaa0 fix(core): set ECMULT_GEN_PREC_BITS = 4 for secp256k1_zkp
3 years ago
Pavol Rusnak 0d6bc43fd5 feat(core): enable secp256k1-zkp
3 years ago