chore(python, tests): add and update GNU licence headers
What changed, and why it matters
This commit only adds or updates copyright and GNU license header comments in Python test and tooling files. It makes no changes to executable code, so it cannot introduce a security vulnerability or fix one.
No security action needed. This is a routine license-header maintenance commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff is composed entirely of comment-only changes: inserting standard LGPLv3 license headers, removing year ranges from copyright lines, adding blank lines after headers, and removing a redundant header from an empty init.py. No functional code, imports, logic, or data structures are modified. The commit message explicitly labels this as a license-header follow-up and includes ‘[no changelog]’.
Changed components
python/src/trezorlib/_internal/emu_ble.pypython/src/trezorlib/_internal/prodtest_emulator.pypython/src/trezorlib/cli/evolu.pypython/src/trezorlib/cli/tron.pypython/src/trezorlib/evolu.pypython/src/trezorlib/firmware/nrf.pypython/src/trezorlib/testing/common.pypython/src/trezorlib/testing/device_handler.pypython/src/trezorlib/testing/translations.pypython/src/trezorlib/thp/__init__.pypython/src/trezorlib/thp/cpace.pypython/src/trezorlib/transport/ble.pypython/src/trezorlib/tron.pypython/src/trezorlib/ui.pypython/tests/test_cpace.pytests/bip32.pytests/burn_tests/burntest_t1.pytests/burn_tests/burntest_t2.pytests/click_tests/__init__.pytests/click_tests/common.pytests/click_tests/device_menu/common.pytests/click_tests/device_menu/test_auto_lock.pytests/click_tests/device_menu/test_check_backup.pytests/click_tests/device_menu/test_device_settings.pytests/click_tests/device_menu/test_label.pytests/click_tests/device_menu/test_notifications.pytests/click_tests/device_menu/test_pin.pytests/click_tests/device_menu/test_traverse_menu.pytests/click_tests/device_menu/test_wipe_code.pytests/click_tests/device_menu/test_wipe_device.pytests/click_tests/record_layout.pytests/click_tests/recovery.pytests/click_tests/reset.pytests/click_tests/test_autolock.pytests/click_tests/test_backup_slip39_custom.pytests/click_tests/test_lock.pytests/click_tests/test_passphrase_bde.pytests/click_tests/test_passphrase_caesar.pytests/click_tests/test_pin.pytests/click_tests/test_recovery.pytests/click_tests/test_repeated_backup.pytests/click_tests/test_reset_bip39.pytests/click_tests/test_reset_slip39_advanced.pytests/click_tests/test_reset_slip39_basic.pytests/click_tests/test_tutorial_caesar.pytests/click_tests/test_tutorial_delizia.pytests/click_tests/test_tutorial_eckhart.pytests/common.pytests/conftest.pytests/definitions.pytests/device_tests/bitcoin/coinjoin_req.pytests/device_tests/bitcoin/signtx.pytests/device_tests/bitcoin/test_authorize_coinjoin.pytests/device_tests/bitcoin/test_bcash.pytests/device_tests/bitcoin/test_bgold.pytests/device_tests/bitcoin/test_dash.pytests/device_tests/bitcoin/test_decred.pytests/device_tests/bitcoin/test_descriptors.pytests/device_tests/bitcoin/test_firo.pytests/device_tests/bitcoin/test_fujicoin.pytests/device_tests/bitcoin/test_getaddress.pytests/device_tests/bitcoin/test_getaddress_segwit.pytests/device_tests/bitcoin/test_getaddress_segwit_native.pytests/device_tests/bitcoin/test_getaddress_show.pytests/device_tests/bitcoin/test_getownershipproof.pytests/device_tests/bitcoin/test_getpublickey.pytests/device_tests/bitcoin/test_getpublickey_curve.pytests/device_tests/bitcoin/test_grs.pytests/device_tests/bitcoin/test_komodo.pytests/device_tests/bitcoin/test_multisig.pytests/device_tests/bitcoin/test_multisig_change.pytests/device_tests/bitcoin/test_nonstandard_paths.pytests/device_tests/bitcoin/test_op_return.pytests/device_tests/bitcoin/test_peercoin.pytests/device_tests/bitcoin/test_signmessage.pytests/device_tests/bitcoin/test_signtx.pytests/device_tests/bitcoin/test_signtx_amount_unit.pytests/device_tests/bitcoin/test_signtx_external.pytests/device_tests/bitcoin/test_signtx_invalid_path.pytests/device_tests/bitcoin/test_signtx_mixed_inputs.pytests/device_tests/bitcoin/test_signtx_payreq.pytests/device_tests/bitcoin/test_signtx_prevhash.pytests/device_tests/bitcoin/test_signtx_replacement.pytests/device_tests/bitcoin/test_signtx_segwit.pytests/device_tests/bitcoin/test_signtx_segwit_native.pytests/device_tests/bitcoin/test_signtx_taproot.pytests/device_tests/bitcoin/test_verifymessage.pytests/device_tests/bitcoin/test_verifymessage_segwit.pytests/device_tests/bitcoin/test_verifymessage_segwit_native.pytests/device_tests/bitcoin/test_zcash.pytests/device_tests/cardano/test_address_public_key.pytests/device_tests/cardano/test_derivations.pytests/device_tests/cardano/test_get_native_script_hash.pytests/device_tests/cardano/test_sign_message.pytests/device_tests/cardano/test_sign_tx.pytests/device_tests/certificate.pytests/device_tests/eos/test_get_public_key.pytests/device_tests/eos/test_signtx.pytests/device_tests/ethereum/test_definitions.pytests/device_tests/ethereum/test_definitions_bad.pytests/device_tests/ethereum/test_definitions_request.pytests/device_tests/ethereum/test_getaddress.pytests/device_tests/ethereum/test_getpublickey.pytests/device_tests/ethereum/test_sign_typed_data.pytests/device_tests/ethereum/test_sign_verify_message.pytests/device_tests/ethereum/test_signtx.pytests/device_tests/evolu/common.pytests/device_tests/evolu/test_delegated_identity_key_rotation.pytests/device_tests/evolu/test_get_delegated_identity_key.pytests/device_tests/evolu/test_get_node.pytests/device_tests/evolu/test_sign_registration.pytests/device_tests/misc/test_msg_cipherkeyvalue.pytests/device_tests/misc/test_msg_enablelabeling.pytests/device_tests/misc/test_msg_getecdhsessionkey.pytests/device_tests/misc/test_msg_getentropy.pytests/device_tests/misc/test_msg_paymentnotification.pytests/device_tests/misc/test_msg_signidentity.pytests/device_tests/monero/test_getaddress.pytests/device_tests/monero/test_getwatchkey.pytests/device_tests/nem/test_getaddress.pytests/device_tests/nem/test_signtx_mosaics.pytests/device_tests/nem/test_signtx_multisig.pytests/device_tests/nem/test_signtx_others.pytests/device_tests/nem/test_signtx_transfers.pytests/device_tests/nostr/test_nostr.pytests/device_tests/payment_req.pytests/device_tests/reset_recovery/test_recovery_bip39_dryrun.pytests/device_tests/reset_recovery/test_recovery_bip39_t1.pytests/device_tests/reset_recovery/test_recovery_bip39_t2.pytests/device_tests/reset_recovery/test_recovery_slip39_advanced.pytests/device_tests/reset_recovery/test_recovery_slip39_advanced_dryrun.pytests/device_tests/reset_recovery/test_recovery_slip39_basic.pytests/device_tests/reset_recovery/test_recovery_slip39_basic_dryrun.pytests/device_tests/reset_recovery/test_reset_backup.pytests/device_tests/reset_recovery/test_reset_bip39_skipbackup.pytests/device_tests/reset_recovery/test_reset_bip39_t1.pytests/device_tests/reset_recovery/test_reset_bip39_t2.pytests/device_tests/reset_recovery/test_reset_recovery_bip39.pytests/device_tests/reset_recovery/test_reset_recovery_slip39_advanced.pytests/device_tests/reset_recovery/test_reset_recovery_slip39_basic.pytests/device_tests/reset_recovery/test_reset_slip39_advanced.pytests/device_tests/reset_recovery/test_reset_slip39_basic.pytests/device_tests/ripple/test_get_address.pytests/device_tests/ripple/test_sign_tx.pytests/device_tests/solana/construct/custom_constructs.pytests/device_tests/solana/construct/transaction.pytests/device_tests/solana/test_address.pytests/device_tests/solana/test_public_key.pytests/device_tests/solana/test_sign_message.pytests/device_tests/solana/test_sign_tx.pytests/device_tests/stellar/test_stellar.pytests/device_tests/test_authenticate_device.pytests/device_tests/test_autolock.pytests/device_tests/test_basic.pytests/device_tests/test_bip32_speed.pytests/device_tests/test_ble.pytests/device_tests/test_busy_state.pytests/device_tests/test_cancel.pytests/device_tests/test_debuglink.pytests/device_tests/test_firmware_hash.pytests/device_tests/test_fuel_gauge.pytests/device_tests/test_language.pytests/device_tests/test_msg_applysettings.pytests/device_tests/test_msg_backup_device.pytests/device_tests/test_msg_change_wipe_code_t1.pytests/device_tests/test_msg_change_wipe_code_t2.pytests/device_tests/test_msg_changepin_t1.pytests/device_tests/test_msg_changepin_t2.pytests/device_tests/test_msg_delayed_ack.pytests/device_tests/test_msg_loaddevice.pytests/device_tests/test_msg_ping.pytests/device_tests/test_msg_sd_protect.pytests/device_tests/test_msg_show_device_tutorial.pytests/device_tests/test_msg_wipedevice.pytests/device_tests/test_passphrase_slip39_advanced.pytests/device_tests/test_passphrase_slip39_basic.pytests/device_tests/test_pin.pytests/device_tests/test_protection_levels.pytests/device_tests/test_repeated_backup.pytests/device_tests/test_sdcard.pytests/device_tests/test_session.pytests/device_tests/test_session_id_and_passphrase.pytests/device_tests/tezos/test_getaddress.pytests/device_tests/tezos/test_getpublickey.pytests/device_tests/tezos/test_sign_tx.pytests/device_tests/thp/test_abp.pytests/device_tests/thp/test_basic.pytests/device_tests/thp/test_handshake.pytests/device_tests/thp/test_multiple_hosts.pytests/device_tests/thp/test_pairing.pytests/device_tests/tron/test_get_address.pytests/device_tests/tron/test_sign_tx.pytests/device_tests/webauthn/data_webauthn.pytests/device_tests/webauthn/test_msg_webauthn.pytests/device_tests/webauthn/test_u2f_counter.pytests/device_tests/zcash/test_sign_tx.pytests/download_emulators.pytests/emulators.pytests/github.pytests/input_flows.pytests/input_flows_helpers.pytests/persistence_tests/test_safety_checks.pytests/persistence_tests/test_shamir_persistence.pytests/persistence_tests/test_wipe_code.pytests/prodtest_tests/__init__.pytests/prodtest_tests/conftest.pytests/prodtest_tests/test_backup_ram.pytests/prodtest_tests/test_cli.pytests/prodtest_tests/test_crc.pytests/prodtest_tests/test_display.pytests/prodtest_tests/test_getcpuid.pytests/prodtest_tests/test_haptic.pytests/prodtest_tests/test_help.pytests/prodtest_tests/test_homescreen.pytests/prodtest_tests/test_hw_revision.pytests/prodtest_tests/test_log_filter.pytests/prodtest_tests/test_manufacturing_lock.pytests/prodtest_tests/test_mem_buffer.pytests/prodtest_tests/test_otp.pytests/prodtest_tests/test_ping.pytests/prodtest_tests/test_rgbled.pytests/prodtest_tests/test_sbu.pytests/prodtest_tests/test_tamper.pytests/prodtest_tests/test_telemetry.pytests/prodtest_tests/test_touch.pytests/prodtest_tests/test_tropic.pytests/prodtest_tests/test_unit_test.pytests/prodtest_tests/test_uptime.pytests/prodtest_tests/test_version.pytests/prodtest_tests/tropic_utils.pytests/recovery_helpers.pytests/show_results.pytests/tropic_model/tropic_cert_chain/generate_test_chain.pytests/tx_cache.pytests/ui_tests/__init__.pytests/ui_tests/__main__.pytests/ui_tests/common.pytests/ui_tests/reporting/__main__.pytests/ui_tests/reporting/common.pytests/ui_tests/reporting/download.pytests/ui_tests/reporting/html.pytests/ui_tests/reporting/master_diff.pytests/ui_tests/reporting/testreport.pytests/update_fixtures.pytests/upgrade_tests/__init__.pyInspect captured patch +1202 / −203
### python/src/trezorlib/_internal/emu_ble.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2025 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### python/src/trezorlib/_internal/prodtest_emulator.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### python/src/trezorlib/cli/evolu.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2025 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### python/src/trezorlib/cli/tron.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from typing import TYPE_CHECKING
import click
### python/src/trezorlib/evolu.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2025 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### python/src/trezorlib/firmware/nrf.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
import hashlib
### python/src/trezorlib/testing/common.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from collections.abc import Generator
from typing import TYPE_CHECKING, Optional
### python/src/trezorlib/testing/device_handler.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
import typing as t
### python/src/trezorlib/testing/translations.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
import json
### python/src/trezorlib/thp/__init__.py
@@ -1,15 +0,0 @@
-# This file is part of the Trezor project.
-#
-# Copyright (C) SatoshiLabs and contributors
-#
-# This library is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License version 3
-# as published by the Free Software Foundation.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License for more details.
-#
-# You should have received a copy of the License along with this library.
-# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
### python/src/trezorlib/thp/cpace.py
@@ -13,6 +13,7 @@
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
"""
CPace, a balanced composable PAKE: https://datatracker.ietf.org/doc/draft-irtf-cfrg-cpace/
"""
### python/src/trezorlib/transport/ble.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2025 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
@@ -13,6 +13,7 @@
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
import asyncio
### python/src/trezorlib/tron.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import io
from typing import TYPE_CHECKING, Any, Union
### python/src/trezorlib/ui.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import warnings
from typing import Any
### python/tests/test_cpace.py
@@ -13,6 +13,7 @@
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
import secrets
### tests/bip32.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/burn_tests/burntest_t1.py
@@ -2,7 +2,7 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/burn_tests/burntest_t2.py
@@ -2,7 +2,7 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/__init__.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import pytest
pytest.register_assert_rewrite("tests.click_tests.reset")
### tests/click_tests/common.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
import time
### tests/click_tests/device_menu/common.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2025 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/device_menu/test_auto_lock.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2025 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/device_menu/test_check_backup.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2025 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/device_menu/test_device_settings.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2025 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/device_menu/test_label.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2025 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/device_menu/test_notifications.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2025 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/device_menu/test_pin.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2025 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/device_menu/test_traverse_menu.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2025 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/device_menu/test_wipe_code.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2025 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/device_menu/test_wipe_device.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2025 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/record_layout.py
@@ -1,5 +1,21 @@
-# click-test generator
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
+# click-test generator
+
# Beware: This tool is alpha-stage, both in terms of functionality and code quality.
# It is published here because it can be useful as-is. But it's full of bugs in any
# case.
### tests/click_tests/recovery.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from typing import TYPE_CHECKING
from trezorlib.debuglink import LayoutType
### tests/click_tests/reset.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import re
from typing import TYPE_CHECKING
### tests/click_tests/test_autolock.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/test_backup_slip39_custom.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2024 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/test_lock.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2021 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/test_passphrase_bde.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2023 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/test_passphrase_caesar.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2023 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/test_pin.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2023 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/test_recovery.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/test_repeated_backup.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2024 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/test_reset_bip39.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/test_reset_slip39_advanced.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/test_reset_slip39_basic.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/test_tutorial_caesar.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2023 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/test_tutorial_delizia.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2023 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/click_tests/test_tutorial_eckhart.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2025 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/common.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/conftest.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/definitions.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
import io
### tests/device_tests/bitcoin/coinjoin_req.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from trezorlib import messages
### tests/device_tests/bitcoin/signtx.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import os
from collections.abc import Sequence
from decimal import Decimal
### tests/device_tests/bitcoin/test_authorize_coinjoin.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2020 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_bcash.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_bgold.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_dash.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_decred.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_descriptors.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_firo.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_fujicoin.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2021 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_getaddress.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_getaddress_segwit.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_getaddress_segwit_native.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_getaddress_show.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_getownershipproof.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_getpublickey.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_getpublickey_curve.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_grs.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2021 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_komodo.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_multisig.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_multisig_change.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_nonstandard_paths.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2021 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_op_return.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_peercoin.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_signmessage.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_signtx.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_signtx_amount_unit.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2020 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_signtx_external.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2020 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_signtx_invalid_path.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_signtx_mixed_inputs.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_signtx_payreq.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2020 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_signtx_prevhash.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from copy import copy
from hashlib import sha256
from io import BytesIO
### tests/device_tests/bitcoin/test_signtx_replacement.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2020 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_signtx_segwit.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_signtx_segwit_native.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_signtx_taproot.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2021 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_verifymessage.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_verifymessage_segwit.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_verifymessage_segwit_native.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/bitcoin/test_zcash.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/cardano/test_address_public_key.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/cardano/test_derivations.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/cardano/test_get_native_script_hash.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/cardano/test_sign_message.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import pytest
from trezorlib import cardano, messages, tools
### tests/device_tests/cardano/test_sign_tx.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/certificate.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from collections.abc import Sequence
from cryptography import x509
### tests/device_tests/eos/test_get_public_key.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/eos/test_signtx.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/ethereum/test_definitions.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
from collections.abc import Callable
### tests/device_tests/ethereum/test_definitions_bad.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
from hashlib import sha256
### tests/device_tests/ethereum/test_definitions_request.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
from binascii import hexlify
### tests/device_tests/ethereum/test_getaddress.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/ethereum/test_getpublickey.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/ethereum/test_sign_typed_data.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/ethereum/test_sign_verify_message.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/ethereum/test_signtx.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/evolu/common.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import os
from hashlib import sha256
### tests/device_tests/evolu/test_delegated_identity_key_rotation.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import pytest
from trezorlib import debuglink, device, evolu
### tests/device_tests/evolu/test_get_delegated_identity_key.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import pytest
from trezorlib.debuglink import TrezorTestContext as Client
### tests/device_tests/evolu/test_get_node.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import pytest
from trezorlib import evolu
### tests/device_tests/evolu/test_sign_registration.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import pytest
from ecdsa import NIST256p, SigningKey, VerifyingKey
### tests/device_tests/misc/test_msg_cipherkeyvalue.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/misc/test_msg_enablelabeling.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/misc/test_msg_getecdhsessionkey.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/misc/test_msg_getentropy.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/misc/test_msg_paymentnotification.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2025 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/misc/test_msg_signidentity.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/monero/test_getaddress.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/monero/test_getwatchkey.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/nem/test_getaddress.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/nem/test_signtx_mosaics.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/nem/test_signtx_multisig.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/nem/test_signtx_others.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/nem/test_signtx_transfers.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/nostr/test_nostr.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2025 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/payment_req.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from dataclasses import dataclass
from hashlib import sha256
### tests/device_tests/reset_recovery/test_recovery_bip39_dryrun.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/reset_recovery/test_recovery_bip39_t1.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/reset_recovery/test_recovery_bip39_t2.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/reset_recovery/test_recovery_slip39_advanced.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/reset_recovery/test_recovery_slip39_advanced_dryrun.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/reset_recovery/test_recovery_slip39_basic.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/reset_recovery/test_recovery_slip39_basic_dryrun.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/reset_recovery/test_reset_backup.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
@@ -14,7 +14,6 @@
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
-
import pytest
from shamir_mnemonic import shamir
### tests/device_tests/reset_recovery/test_reset_bip39_skipbackup.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/reset_recovery/test_reset_bip39_t1.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/reset_recovery/test_reset_bip39_t2.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/reset_recovery/test_reset_recovery_bip39.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/reset_recovery/test_reset_recovery_slip39_advanced.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/reset_recovery/test_reset_recovery_slip39_basic.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/reset_recovery/test_reset_slip39_advanced.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/reset_recovery/test_reset_slip39_basic.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/ripple/test_get_address.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/ripple/test_sign_tx.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/solana/construct/custom_constructs.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from construct import (
AdaptationError,
Adapter,
### tests/device_tests/solana/construct/transaction.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from construct import Byte, GreedyBytes, If, Int8ul, Prefixed, RawCopy, Struct, this
from .custom_constructs import CompactArray, CompactU16, PublicKey, Version
### tests/device_tests/solana/test_address.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2023 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/solana/test_public_key.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2023 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/solana/test_sign_message.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from random import Random
import pytest
### tests/device_tests/solana/test_sign_tx.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2023 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/stellar/test_stellar.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_authenticate_device.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import pytest
from cryptography import x509
### tests/device_tests/test_autolock.py
@@ -1,6 +1,6 @@
-#
# This file is part of the Trezor project.
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+#
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_basic.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_bip32_speed.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_ble.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import pytest
from trezorlib import ble
### tests/device_tests/test_busy_state.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2022 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_cancel.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_debuglink.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_firmware_hash.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from hashlib import blake2s
import pytest
### tests/device_tests/test_fuel_gauge.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2025 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_language.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_msg_applysettings.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_msg_backup_device.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_msg_change_wipe_code_t1.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_msg_change_wipe_code_t2.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_msg_changepin_t1.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_msg_changepin_t2.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_msg_delayed_ack.py
@@ -1,5 +1,7 @@
# This file is part of the Trezor project.
#
+# Copyright (C) SatoshiLabs and contributors
+#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
### tests/device_tests/test_msg_loaddevice.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_msg_ping.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_msg_sd_protect.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_msg_show_device_tutorial.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2024 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_msg_wipedevice.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_passphrase_slip39_advanced.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_passphrase_slip39_basic.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_pin.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_protection_levels.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_repeated_backup.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2024 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
@@ -14,7 +14,6 @@
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
-
import pytest
from trezorlib import device, exceptions, messages
### tests/device_tests/test_sdcard.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_session.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/test_session_id_and_passphrase.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/tezos/test_getaddress.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/tezos/test_getpublickey.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/tezos/test_sign_tx.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/thp/test_abp.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import functools
import time
import typing as t
### tests/device_tests/thp/test_basic.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import pytest
from trezorlib import btc, messages, protocol_v1
### tests/device_tests/thp/test_handshake.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import pytest
from cryptography import exceptions
### tests/device_tests/thp/test_multiple_hosts.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import threading
import time
### tests/device_tests/thp/test_pairing.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import secrets
import time
import typing as t
### tests/device_tests/tron/test_get_address.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import pytest
from trezorlib import tron
### tests/device_tests/tron/test_sign_tx.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import binascii
import json
### tests/device_tests/webauthn/data_webauthn.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
# Valid credential
# Relying party ID: example.com
# Relying party name: Example
### tests/device_tests/webauthn/test_msg_webauthn.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/webauthn/test_u2f_counter.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/device_tests/zcash/test_sign_tx.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/download_emulators.py
@@ -1,4 +1,21 @@
#!/usr/bin/env python3
+
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import json
import stat
from concurrent.futures import ThreadPoolExecutor
### tests/emulators.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
@@ -13,6 +13,7 @@
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
import logging
### tests/github.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
"""
Helper functions for communication with GitHub.
### tests/input_flows.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
"""
Central place for defining all input flows for the device tests.
### tests/input_flows_helpers.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import typing as t
from trezorlib import messages
### tests/persistence_tests/test_safety_checks.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import pytest
from trezorlib import debuglink, device
### tests/persistence_tests/test_shamir_persistence.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/persistence_tests/test_wipe_code.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from trezorlib import debuglink, device, messages
from trezorlib.debuglink import TrezorTestContext as Client
from trezorlib.debuglink import message_filters
### tests/prodtest_tests/__init__.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/conftest.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
import os
### tests/prodtest_tests/test_backup_ram.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_cli.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_crc.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_display.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_getcpuid.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_haptic.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_help.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_homescreen.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_hw_revision.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_log_filter.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_manufacturing_lock.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_mem_buffer.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_otp.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_ping.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_rgbled.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_sbu.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_tamper.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_telemetry.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_touch.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_tropic.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_unit_test.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_uptime.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/test_version.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/prodtest_tests/tropic_utils.py
@@ -8,7 +8,7 @@
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
### tests/recovery_helpers.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from typing import TYPE_CHECKING
if TYPE_CHECKING:
### tests/show_results.py
@@ -1,5 +1,21 @@
#!/usr/bin/env python3
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import http.server
import json
import multiprocessing
### tests/tropic_model/tropic_cert_chain/generate_test_chain.py
@@ -1,5 +1,21 @@
#!/usr/bin/env python3
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import datetime
from pathlib import Path
### tests/tx_cache.py
@@ -1,7 +1,8 @@
#!/usr/bin/env python3
+
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/ui_tests/__init__.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
import logging
### tests/ui_tests/__main__.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from . import main
main()
### tests/ui_tests/common.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
import hashlib
### tests/ui_tests/reporting/__main__.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import click
from . import master_diff
### tests/ui_tests/reporting/common.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import shutil
from pathlib import Path
from typing import Any
### tests/ui_tests/reporting/download.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
import urllib.error
### tests/ui_tests/reporting/html.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
import shutil
### tests/ui_tests/reporting/master_diff.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
import shutil
### tests/ui_tests/reporting/testreport.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
import shutil
### tests/update_fixtures.py
@@ -1,5 +1,21 @@
#!/usr/bin/env python3
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
import json
### tests/upgrade_tests/__init__.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/upgrade_tests/conftest.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
import logging
import tempfile
from collections.abc import Generator
### tests/upgrade_tests/recovery_old.py
@@ -1,3 +1,19 @@
+# This file is part of the Trezor project.
+#
+# Copyright (C) SatoshiLabs and contributors
+#
+# This library is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License version 3
+# as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the License along with this library.
+# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from typing import TYPE_CHECKING
from ..recovery_helpers import layout_has_keyboard, navigate_to_keyboard
### tests/upgrade_tests/test_firmware_upgrades.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
@@ -13,6 +13,7 @@
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
+
from __future__ import annotations
import dataclasses
### tests/upgrade_tests/test_passphrase_consistency.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
### tests/upgrade_tests/test_tropic_config_set.py
@@ -1,6 +1,6 @@
# This file is part of the Trezor project.
#
-# Copyright (C) 2012-2019 SatoshiLabs and contributors
+# Copyright (C) SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
@@ -14,7 +14,6 @@
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
-
import json
import tempfile
from contextlib import nullcontextWhy this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.