head 1.2; access; symbols pkgsrc-2025Q4:1.1.0.4 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.2 pkgsrc-2025Q3-base:1.1; locks; strict; comment @# @; 1.2 date 2026.03.01.00.58.18; author js; state dead; branches; next 1.1; commitid EVIJKbRvObiVWcwG; 1.1 date 2025.07.28.23.03.50; author js; state Exp; branches; next ; commitid Zl5RFTypPvuKez4G; desc @@ 1.2 log @Update security/py-trezor to 0.20.0 ## [0.20.0] (2026-02-10) [0.20.0]: https://github.com/trezor/trezor-firmware/compare/python/v0.20.0-dev0...python/v0.20.0 Version 0.20.0 introduces a set of **major breaking API changes**. All user code must be upgraded. As announced, the API has changed significantly since the pre-release version 0.20.0-dev. ### Incompatible changes - Refactor trezorlib session-based API. [#6273] ### Added - Use keyring package for storing THP keys and credentials. [#6273] ### Removed - Deprecate uploading language blob during firmware update. [#6103] - debuglink: Remove vestigial memory_write/read/erase methods. [#6273] - Deprecated `@@expect` decorator was removed. [#6273] - Deprecated `str` return values in functions whose result is a success have been removed. [#6273] ### Fixed - Avoid dropping WebUSB chunks in case of a timeout. [#6112] - Support resuming THP sessions. [#6273] - trezorctl: BLE behavior on macOS was improved. [#6449] - trezorctl: fix crash when device authentication allowlist is unavailable. [#6449] ## [0.20.0-dev0] (2025-10-21) [0.20.0-dev0]: https://github.com/trezor/trezor-firmware/compare/python/v0.13.10...python/v0.20.0-dev0 Version 0.20.0 introduces a set of **major breaking API changes**. All user code must be upgraded. This version is a pre-release. The new API is unstable and may change until 0.20.0 is released. ### Incompatible changes - All Trezor functions now run on top of a `Session` instead of `TrezorClient`. - Reworked API of `TrezorClient`. ### Added - Support for T3W1. - Support for Trezor-Host Protocol. [#4976] - Cardano: Add support for signing arbitrary messages. [#3509] - Added support for Bluetooth Low Energy transport. [#4948] - Added new translation blob format to support larger fonts. [#4975] - Generation of SLIP-21 node for a new way of storing labels (using Evolu). [#5220] - Add support for displaying the message hash when signing Ethereum EIP-712 typed data. [#5344] - Check Tropic fields to AuthenticityProof. [#5760] - Allow exporting device serial number. [#5928] - `debuglink`: Add new optional enum DebugTouchEventType to DebugLinkDecision message. [#5328] - `debuglink`: Add screen buttons and button actions. [#4740] - `debuglink`: Add 'navigate_to_menu_item' button action. [#5499] ### Changed - Changed trezorlib to session-based. Changes also affect trezorctl, python tools, and tests. [#4976] - Changed build system to uv. - Loadable definitions from data.trezor.io query the new path structure. ### Deprecated - `trezorlib.__version__` is deprecated, use `importlib.metadata.version("trezor")`. ### Removed - Remove BNB Beacon Chain support. [#4227] - Dropped support for Python 3.8. - `ethereum.network_from_address_n` was removed. ### Fixed - Fixed device restart handling during firmware update. [#5000] - Fix broken interactive test mode. [#5455] ## [0.13.10] (2025-02-12) [0.13.10]: https://github.com/trezor/trezor-firmware/compare/python/v0.13.9...python/v0.13.10 ### Added - Added support for T3B1. [#3728] - Added support for Trezor models not known by the current version of the library. [#3993] - Added ability to set Optiga's security event counter to maximum: `trezorctl debug optiga-set-sec-max`. [#4000] - Enum for valid device rotations. [#4041] - Added pretty-printing of protobuf messages in IPython (`_repr_pretty_`). [#4076] - Added support for benchmarks. [#4101] - Added support for entropy check workflow in `device.reset()`. [#4155] - Added shortcut for loading a debug device with the "academic" SLIP39 seed. [#4282] - Added support for lexicographic sorting of pubkeys in multisig. [#4351] - Added an `expect` argument to `TrezorClient.call()`, to enforce the returned message type. [#4464] - Introduced `device.setup()` as a cleaner upgrade to `device.reset()`. [#4464] ### Changed - Most USB level errors are now converted to `TransportException`. [#4089] ### Deprecated - `@@expect` decorator is deprecated -- use `TrezorClient.call(expect=...)` instead. [#4464] - String return values are deprecated in functions where the semantic result is a success (specifically those that were returning the message from Trezor's `Success` response). Type annotations are updated to `str | None`, and in a future release those functions will be returning `None` on success, or raise an exception on a failure. [#4464] - `device.reset()` is deprecated, migrate to `device.setup()`. [#4464] - Return value of `device.recover()` is deprecated. In the future, this function will return `None`. [#4464] ### Removed - CoSi functionality. [#3442] - Removed display_random feature. [#4119] ### Fixed - It is now possible to interrupt USB communication (via Ctrl+C, or a signal, or any other way). [#4089] - Use `frozenset` for `models.TREZORS` to prevent accidental modification. ### Incompatible changes - Return values in `solana` module were changed from the wrapping protobuf messages to the raw inner values (`str` for address, `bytes` for pubkey / signature). [#4464] - `trezorctl device` commands whose default result is a success will not print anything to stdout anymore, in line with Unix philosophy. [#4464] @ text @$NetBSD: patch-requirements.txt,v 1.1 2025/07/28 23:03:50 js Exp $ --- requirements.txt.orig 2025-07-28 22:52:58.906306846 +0000 +++ requirements.txt @@@@ -1,7 +1,7 @@@@ ecdsa>=0.9 mnemonic>=0.20 requests>=2.4.0 -click>=7,<8.2 +click>=7 libusb1>=1.6.4 construct>=2.9,!=2.10.55 typing_extensions>=4.7.1 @ 1.1 log @security/py-trezor: Relax dependencies @ text @d1 1 a1 1 $NetBSD$ @