Commit Graph

806 Commits (ui-t3t1)

Author SHA1 Message Date
matejcik 7d40f98153 chore(python): bump version after release
2 years ago
matejcik 1eeecbe27f docs(python): freshen up READMEs, generate changelog
2 years ago
matejcik 8049282bdb feat(python): detect busy device as a separate condition
2 years ago
matejcik aaa224a4f7 feat(python/trezorctl): detect script type from path (fixes #2159)
2 years ago
matejcik 60648c903f fix(changelog): explicitly include title in rendered template
2 years ago
matejcik c12e4edd70 fix(python/trezorctl): improve docs and behavior around unexpected messages
2 years ago
matejcik 8c3d3c6548 chore: bump black to 22.3
2 years ago
matejcik 01257abacd build(python): bump click to 8.1
2 years ago
matejcik 5173cd3b82 fix(python): click 8.1 compatibility
2 years ago
matejcik 2fb4e5de5c build(python): load requirements from requirements.txt
2 years ago
Ondrej Mikle c563c987e1 feat(core): jump back and stay in bootloader for TT via reverse SVC call trampoline
2 years ago
David Misiak a1eaa465aa chore(cardano): remove legacy types
2 years ago
grdddj 6dc4426151 feat(ui): setup homescreen and label for model R
2 years ago
Martin Milata c5f1bec474 Merge branch 'release/22.05'
2 years ago
Pavol Rusnak 38ad9ab9e5 fix(python): only even-width grayscale icons are supported
2 years ago
Dusan Klinec 5e6582a3fe feat(xmr): add support for HF15, BP+
2 years ago
matejcik 6feada2eed style(python/monero): improve type signature on Monero functions
2 years ago
Dusan Klinec 33c174491f refactor(core/monero): Monero code cleanup
2 years ago
grdddj 8e1b5a969c feat(python): support model R in trezorlib
2 years ago
Andrew Kozlik 458d6e1b4b fix(trezorctl): Fix BIP-32 path in CoSi help.
2 years ago
matejcik ee694f36cf feat(python): implement firmware dumping
2 years ago
matejcik 37c61c1381 feat(core): implement firmware dumping
2 years ago
Andrew Kozlik e43c14f448 feat(trezorctl): Add firmware get-hash command.
2 years ago
Andrew Kozlik 6fe2d76dc1 feat(common): Add GetFirmwareHash message.
2 years ago
grdddj 068e97c258 feat(python): unify option arguments in trezorctl
2 years ago
grdddj d7d228e716 chore(python): limit click version to be below 8.1
2 years ago
matejcik 61718aff49 feat(tools): make pyright_tool more user-friendly
2 years ago
David Misiak 915781bfb1 chore(cardano): update changelog and ui tests
2 years ago
David Misiak 117c3c932f fix(cardano): update testnet protocol magic
2 years ago
David Misiak 9f9535abb3 feat(cardano): add key hash stake credentials
2 years ago
David Misiak 2262602967 feat(cardano): add support for plutus transactions
2 years ago
David Misiak 48587d83fe feat(cardano): add support for output datum hash and script data hash
2 years ago
David Misiak 2b3a53a6ae feat(cardano): add support for network id in tx body
2 years ago
Pavol Rusnak edb87359eb feat(core): headless emulator implies disabled animations
2 years ago
Andrew Kozlik 8be6689150 chore(common): Rework AuthorizeCoinJoin message parameters.
2 years ago
grdddj a38a0b6295 fix(python): fix eth.sign-tx - correct input into rlp.encode()
2 years ago
grdddj 3d505874aa feat(ci): create pyright tool and include it in CI
2 years ago
matejcik e0754d1609 fix(python/protobuf): correctly dump messages with missing required fields
2 years ago
grdddj 319d0f16e3 chore(python): loosen ethereum dependencies
2 years ago
grdddj 58fb6c77a7 feat(python): add screenshotting capability for T1 in Debuglink
2 years ago
grdddj 0e27423cff feat(ci): add quick style checks suitable for git hooks
2 years ago
Ferdinando Ametrano 3c0cb4d763 feat(python): extend sign_message to also sign bytes, not only string
2 years ago
Pavol Rusnak b9bbd5fcd7 chore: update dependencies
2 years ago
Andrew Kozlik bf2baf798f feat(trezorctl): Support generating Electrum-compatible message signatures.
2 years ago
Andrew Kozlik f6154b311e chore(trezorlib): Support payment requests and GetNonce command.
2 years ago
Andrew Kozlik d0c3a6a2fa chore(core): Add mac field to Address message.
2 years ago
Andrew Kozlik 0959947a88 chore(common): Add GetNonce, Nonce and TxAckPaymentRequest message.
2 years ago
Andrew Kozlik ba4f046d6f feat(common): Add INFO button to DebugLinkDecision.
2 years ago
Alois Klink 5c4703c9bb fix(core,legacy): Fix domain-only ethTypedData
2 years ago
matejcik 8b2e2112bc style(python/btc): better specification of type of prev_txes
2 years ago
grdddj e3d366e65b feat(python): ScriptUI for trezorctl, reference client implementation
2 years ago
matejcik dfab3efb86 style(python): fix typecheck issues
2 years ago
matejcik 8d8cfd6692 build: fully replace mypy with pyright
2 years ago
Pavol Rusnak b0e0280465 chore: drop obsolete fw_vendor_keys field from Features
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
matejcik 38d44e6803 chore(python): bump trezorlib version in repo
3 years ago
matejcik 911dbf0522 chore(python): regenerate OPTIONS readme
3 years ago
matejcik 48523d3d5b chore(python): exclude mako template from distributed packages
3 years ago
matejcik 05535173ac docs(python): add changelog for 0.13.0
3 years ago
matejcik a1161384b0 chore(python): bump typing_extensions requirement
3 years ago
matejcik b343ad3931 style(python): mark Reader/Writer protocol arguments as position-only
3 years ago
matejcik 3441d2eb19 chore(python): add Click typing info to requirements
3 years ago
matejcik 85d707615f chore(python): specify Python version for type checking
3 years ago
matejcik a4bcc95deb feat(python): introduce Trezor models
3 years ago
matejcik 38fca4a83d chore(python): regenerate GNU copyright headers
3 years ago
matejcik 8f32e0ba05 chore(python/changelog): unify changelog entries
3 years ago
matejcik 83bb3a0932 feat(python): show progress bar for firmware upload
3 years ago
matejcik a2a8cc88d9 feat(python): make the protobuf mappings overridable
3 years ago
Andrew Chow dbf57d745a feat(python): Optionally init_device in TrezorClient
3 years ago
Andrew Chow 23a09fc047 feat(python): Raise ValueError for non-existant tx hashes
3 years ago
grdddj d6b99ba3eb fix(python): allowing PIN/passphrase input for Git Bash
3 years ago
matejcik 6d3b49934a chore(python/tools): bump version in encfs_aes_getpass
3 years ago
matejcik c2bad83296 refactor(python): improve handling of `data` for trezorlib.ethereum.sign_tx()
3 years ago
grdddj 26173c243a feat(python): enable pyright-based type checking
3 years ago
grdddj 1a0b590914 feat(python): add full type information
3 years ago
grdddj 2487c89527 chore(python): increasing mnemonic version to 0.20
3 years ago
grdddj 77afcb335b chore(python): replacing attrs with dataclasses
3 years ago
grdddj 57579c5a80 chore(python): removing pyblake2 as a required library
3 years ago
Pavol Rusnak 0fc3b32b7e fix(python): accept also "taproot" for taproot scripts in cli
3 years ago
matejcik a1a1a7a36c fix(proto): fix typo in previous commit
3 years ago
Andrew Kozlik 9a7990d087 feat(tests): Add no_script_type device tests for 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 2a2da21879 fix(python/debuglink): fix formatting for expected messages
3 years ago
matejcik f8b9cda05d feat(python): support Cardano derivation type arguments
3 years ago
matejcik 10e338e005 feat(core/cardano): allow derivation type selection
3 years ago
matejcik 9922e7ba48 feat(python): support derive_cardano setting
3 years ago
matejcik 846eca36ca feat(python): add type information to the UI object
3 years ago
matejcik 8caac218ec feat(core/cardano): indicate whether Cardano seed should be derived
3 years ago
matejcik 9b9f6859d6 fix(python/build_tx): correct predefined input types
3 years ago
matejcik 428caf3d35 fix(python/build_tx): make build_tx work again after blockbook protection upgrades
3 years ago
Jun Luo 3af00f4181 chore(python/stellar): bump stellar-sdk to 5.0.0.
3 years ago
Jun Luo b3ac52e98c refactor(python/stellar): Since the firmware does not support MuxedAccount, we refuse to process this type of transaction.
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
Pavol Rusnak 0068c12f77
fix(python): use unified descriptor format <a;b> (#1885)
3 years ago
grdddj 73238135d6 feat(core/ethereum): EIP-712
3 years ago
Eduard Klementiev 10ce81b5d1 fix(python/trezorctl): fix operator precedence issue for ethereum sign-tx command
3 years ago
Andrew Kozlik 13cbb59082 feat(common): Add script_pubkey field to TxInput message.
3 years ago
Pavol Rusnak ba0879961c feat(python): add support for Taproot descriptors
3 years ago
Pavol Rusnak 4ed9f00c73 feat(common): add support for Taproot input and output scripts
3 years ago
amadejpapez 85ba7c12ba style(all): use f-strings for formatting
3 years ago
gabrielkerekes 4aaf6db9a2 chore(cardano): update docs, changelog and ui test fixtures
3 years ago
gabrielkerekes 1f33ab420d feat(cardano): update transaction signing for multisig
3 years ago
gabrielkerekes 21281d7cf4 feat(cardano): add support for script addresses derivation
3 years ago
gabrielkerekes dd9652cd07 feat(cardano): add get-native-script-hash call
3 years ago
matejcik e2ec761898 fix(python/stellar): use boolean value for `is_authorized`
3 years ago
matejcik 399ee51be6 refactor(python/stellar): avoid warning when constructing StellarSignTx
3 years ago
matejcik 91e8413c7e refactor(python): clean up test_stellar
3 years ago
matejcik 1dcfdebf7a feat(all): make Stellar timebounds required
3 years ago
matejcik 0a0b75378d feat(python/stellar): update for stellar protobuf changes
3 years ago
matejcik 1b601b3e08 feat(common): strong typing for Stellar protobuf messages
3 years ago
matejcik 30b08d949b feat(common): add default values to EthereumSignTx fields
3 years ago
matejcik 639406b01f feat(all): make chain_id mandatory
3 years ago
arbitrarylink f051225730 feat(core,legacy): add support for Ethereum 64-bit chain_id
3 years ago
matejcik f083beb3c2 fix(python/trezorctl): fix "invalid value" of ChoiceType with default
3 years ago
gabrielkerekes 2c65b00951 chore(cardano): add changelog entries
3 years ago
gabrielkerekes b0c8590f00 feat(cardano): streamed transaction signing
3 years ago
gabrielkerekes d2a5be4e38 feat(cardano): prepare protobuf messages for streamed tx signing
3 years ago
matejcik ee068b01ea chore(python): remove Lisk
3 years ago
Jun Luo 1adc869626 fix(python/stellar): correct the data type passed to StellarAllowTrustOp.is_authorized.
3 years ago
Frederik Bolding 38fa9197ca feat(core,python): support for Ethereum EIP1559 transactions
3 years ago
overcat 5cf873a03a feat(python/stellar): print a readable message when the user has not submitted a base64-encoded transaction envelope.
3 years ago
overcat 0dab2c5d1f test(python/stellar): add test cases for Stellar transactions in TransactionV1 format.
3 years ago
overcat d664f85a12 test(python/stellar): fix and refactor existing test cases.
3 years ago
Jun Luo 543b9f407c refactor(python/stellar): Use Stellar Python SDK to parse Stellar transactions.
3 years ago
gabrielkerekes 4f7c6b3586 feat(common): change all protobuf message type hints to strings
3 years ago
matejcik 9ab1891b22 feat(common): more required fields in messages-management
3 years ago
matejcik 0e650b1a5b fix(python): do not set socket to nonblocking for wait_until_ready
3 years ago
matejcik 34047cf3ec Revert "feat(python): give the emulator a little more time to respond to ping"
3 years ago
matejcik 92e9d61e24 feat(python/debuglink): reset_debug_features to reconfigure debuglink
3 years ago
matejcik b3312d1ef7 fix(tests): set_filter must be used in with-block
3 years ago
matejcik 1d4c061e3e docs(python): update changelog for 0.12.3
3 years ago
matejcik 2ab8972cf2 build(python): drop changelog target from makefile
3 years ago
matejcik e7c40c9560 feat(python/trezorctl): trezorctl device reboot-to-bootloader
3 years ago
matejcik 347d11e6ea chore(python): allow click 8.x for trezorlib
3 years ago
grdddj 13b8a6e54d fix(python/trezorctl): firmware download does not require connected trezor
3 years ago
matejcik f8bb90366a fix(tests): auto-swipe by using only ButtonRequest.pages
3 years ago
matejcik 1e1963f1ee fix(core): do not send ButtonRequest on every paging event
3 years ago
grdddj 6bbc9a78f3 feat(python/trezorctl): improving and refactoring firmware CLI commands
3 years ago
matejcik d047c98cb2 feat(python/debuglink): auto-page on pageable screens
3 years ago
matejcik 4f0aca7bb5 feat(python): pass whole ButtonRequest to button_request UI handler
3 years ago
matejcik ea2a9375ac feat(python/debuglink): streamline expected responses handling [no changelog]
3 years ago
matejcik 1012ee8497 feat(core): send ButtonRequests for paging events
3 years ago
gabrielkerekes a92b5fc333 fix(core/cardano): forbid tx outputs with both address and address parameters
3 years ago
matejcik a58823cc0c refactor(python): rework trezorlib protobuf codec
3 years ago
matejcik aaa3ce6117 fix(core/bitcoin): fix CoinJoin authorization with new cache
3 years ago
matejcik ae0da5e245 feat(python): give the emulator a little more time to respond to ping
3 years ago
Martin Milata b2b0ecf0f7 docs(python): use towncrier for generating CHANGELOG.md
3 years ago
Martin Milata f58c1634c6 docs(core): use towncrier for generating CHANGELOG.md
3 years ago
gabrielkerekes bf3e64ff20 fix(common): add isort:skip_file to files generated by pb2py
3 years ago
gabrielkerekes a3d0016a2f refactor(trezorlib/cardano): rename create_* functions
3 years ago
gabrielkerekes 2313293477 feat(core/cardano): add support for catalyst voting registration
3 years ago
gabrielkerekes 2c503b16f5 fix(common): fix one value enums in pb2py
3 years ago
Pavol Rusnak 65cefbc879
docs: remove wallet.trezor.io references
3 years ago
Martin Milata 0278998f72 style(common): mypy: disable implicit Optional for function arguments
3 years ago
Rafael Korbas a9b8b0e119 feat(core/cardano): chunked serialization of signed transaction
3 years ago
mcudev 23abf7aff0 python/trezorctl: make bitcoin regtest a supported coin for trezorctl btc get-descriptor
3 years ago
Andrew Kozlik 885b6f7214 feat(python): Support 50 digit PIN and wipe code in trezorctl.
3 years ago
matejcik cb7152542d feat: drop DebugLinkShowText functionality
3 years ago
JoeGruff e3ea32a986 multi: Add decred staking.
3 years ago
Roman Zeyde b2877afa7f feat(common): add public_key to ECDHSessionKey
3 years ago
Pavol Rusnak 4b0f41d41e
fix(common): change msg_id of RebootToBootloader from 804 to 87
3 years ago
Ondrej Mikle 77e99078c3
chore(trezorlib): add generated message files
3 years ago
Ondrej Mikle 1579c62332
chore(legacy): reboot to bootloader protobuf generated messages
3 years ago
Pavol Rusnak 10edcb0d3a
doc(python): change wording from beta wallet to beta channel
3 years ago
Martin Milata 192d0dcf87 feat(core): hold homescreen to lock
3 years ago
Martin Milata db2db8e6f3 feat(common): add hold_ms to DebugLinkDecision
3 years ago
Pavol Rusnak f780cbdb17
feat(python): add possibility to enter PIN via letters (#1496)
3 years ago
matejcik 14037d0c31 chore: regenerate protobuf classes
3 years ago
Pavol Rusnak 48d1a7a880
fix(python): append checksum to descriptors (#1445)
3 years ago
Pavol Rusnak 81ae1d0ec0
fix(python): remove extraneous empty line from descriptors output
3 years ago
Rafael Korbas e4c406822c Add multiasset sending and min validity to Cardano transactions
3 years ago
Rafael Korbas 44c7d23741 Cardano: map account paths to account numbers
3 years ago
Pavol Rusnak 345ef52949 feat(proto): add amount_unit to AuthorizeCoinJoin and SignTx
3 years ago
Pavol Rusnak 6689b9c22f common/protob: add GetAddress.ignore_xpub_magic field
3 years ago
Pavol Rusnak 1e6259a476
docs: update changelogs
3 years ago
Pavol Rusnak 88889472eb feat(python): add btc get-descriptor command
3 years ago
Pavol Rusnak edb1243f64 feat(proto): add descriptors related fields to GetPublicKey/PublicKey
3 years ago
matejcik 5feb76f603 fix(python): do not log "resumed session" if there is no id
4 years ago
matejcik 4d4d0e7216 fix(python): do not call EndSession in bootloader mode (fixes #1379)
4 years ago
Pavol Rusnak 1187e4ddaf style(common): use new syntax for typing in autogenerated protobuf enums
4 years ago
Pavol Rusnak cd829a99de style(python/src): use new syntax for typing
4 years ago
Martin Milata 8fd12f4373 fix(tests): run test_softlock_instability on emulator only
4 years ago
Rafael Korbas b311bd4d4a Add displaying of TTL to cardano transaction, align url validation with Ledger
4 years ago
Rafael Korbas b261f789f3 Add support for stakepool registration to Cardano
4 years ago
Pavol Rusnak 225cd15732 fix(python): drop references to beta-wallet.trezor.io
4 years ago
Pavol Rusnak 50fdd183c2
ci: enable editorconfig checks, fix whitespace issues
4 years ago
matejcik 5005a61eaf fix(python): update trezorctl multisig feature to new API
4 years ago
matejcik f11a634671 docs(python): update changelog
4 years ago
matejcik 38b7c75176 feat(python): drop Python 3.5 compatibility (fixes #810)
4 years ago
matejcik a36ccd7e6f feat!(python): drop Mapping protocol support from MessageType
4 years ago
matejcik 8c460dcbf3 feat(python): improve error message when prev_txes are not provided
4 years ago
matejcik 2327cab436 feat(python): update build_tx.py to new API
4 years ago
matejcik 3d6d1a56ac feat(python): implement API compatibility with trezorlib 0.12
4 years ago
Andrew Kozlik 9e5d5bd5f9 feat: Add support for experimental field flag in protobuf.
4 years ago
Andrew Kozlik b636e959f5 chore(python): Support TXORIGINPUT and TXORIGOUTPUT in trezorlib.
4 years ago
Andrew Kozlik ad6a0bc2a2 chore(common): Add new request types TXORIGINPUT and TXORIGOUTPUT.
4 years ago
Andrew Kozlik 443e0c101e chore(common): Add orig_hash and orig_index fields to TxInput and TxOutput.
4 years ago
Martin Milata 0376670404 feat(common): expose 'unstable' option in generated code
4 years ago
Martin Milata 3b138b4f98 feat(python): add experimental_features setting
4 years ago
Martin Milata 314cd260eb feat(common): add experimental_features setting
4 years ago
Pavol Rusnak 4fdb62c2e2 chore(python): replace pipenv with poetry
4 years ago
Martin Milata b2c4bbdaa2 feat(common): add auto_lock_delay and display_rotation to Features
4 years ago
matejcik e4785d47e0 style: apply black 20.8b1
4 years ago
matejcik 6dda240f5c test(python): add flake8-requirements
4 years ago
matejcik feb24e4282 ci(python): disable Python 3.5 in CI for now (see #810)
4 years ago
matejcik 0eed360037 chore: make tx type names shorter
4 years ago
matejcik 01b66a5858 fix(python): always fill TransactionType.lock_time
4 years ago
matejcik 9ee7eee1eb chore!(python): bump trezorlib version because of breaking API change
4 years ago
matejcik 08d896f2f9 chore(tests): update to kwargs usage and new btc.sign_tx API
4 years ago
matejcik b41021a5fb chore(python): fix kwargs usage
4 years ago
matejcik 5ddf1dfafb feat!(python): modify btc.sign_tx api to accept kwargs
4 years ago
matejcik ef4022fbf5 auto: regenerate protobuf classes
4 years ago
matejcik 90ee5f3d38 feat!: implement protobuf required fields and default values
4 years ago
Martin Milata 76a1760764 python: support SafetyChecks.PromptTemporarily
4 years ago
Martin Milata 7d37b2c90f common: add PromptTemporarily to SafetyChecks enum
4 years ago
Martin Milata 9f066e877d common: add SafetyCheckLevel to Features
4 years ago
Martin Milata 975f9b335e
build-docker: fix fingerprint calculation for model T production builds (#1261)
4 years ago
mcudev c63c727df0 [python] build_tx tool: fix amount inaccuracy by parsing with Decimal
4 years ago
Andrew Kozlik 5d745d5d04 common/protob: Add commitment_data to TxInputType.
4 years ago
matejcik ffe3b5487d python: ignore failures of EndSession call, so that end_session() does not raise
4 years ago
matejcik e0583dd5cb all: use a specific error code for "invalid session"
4 years ago
matejcik e96a9e8d39 python/trezorctl: make use of EndSession
4 years ago
matejcik 4f92d2b14d python: call EndSession when requested
4 years ago
matejcik 4200692930 python: release 0.12.2
4 years ago
matejcik 17736e8fba python/trezorctl: fix output of 'btc get-address' help text
4 years ago
matejcik d19f00b26c python/trezorctl: fix minor bugs in 'set homescreen'
4 years ago
matejcik 993d3b6e3f python: update changelog
4 years ago
matejcik fb1deb6156 python/trezorctl: improve 'set homescreen' command
4 years ago
matejcik a14634c389 python: make PIL optional in the toif module, add size check
4 years ago
matejcik eddaeb1280 python: add Pillow as an optional requirement (fixes #1224)
4 years ago
matejcik 032a65e1cf python: export toif as public module
4 years ago
Martin Milata 43b7ccefc7 python/trezorctl: remove --skip-vendor-header from firmware-update
4 years ago
Martin Milata 29861e076b python: fix cli --file handling
4 years ago
Ferdinando M. Ametrano b3d483dd6b
python: silenced unused variables (#1202)
4 years ago
Martin Milata 1fc6c80b5d
build-docker.sh: print fw fingerprints after build (#1209)
4 years ago
Martin Milata 6319fcfe4a python: fix trezorctl lisk sign-message address parsing
4 years ago
Andrew Kozlik 9da715e025 python: Fix UnboundLocalError in trezorctl btc get-address.
4 years ago
Pavol Rusnak 5536fbb98a python: use stdlib blake2s on python 3.6+
4 years ago
matejcik 4029fc1e1c python: remove superfluous .keep file
4 years ago
matejcik 5cd867fa92 python: update dist target
4 years ago
matejcik 35c3af87dd python: rename unsafe_prompts to safety_checks
4 years ago
matejcik 769ccf52c6 python: fix behavior of client.ping() when device is locked
4 years ago
matejcik 3dd3d96957 python: update changelog
4 years ago
matejcik efcaf7bda6 python/btc: improve missing signature detection
4 years ago
matejcik 037bef3a38 python: fix logging of protobuf repeated enums
4 years ago