diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000000..03419f7359 --- /dev/null +++ b/AUTHORS @@ -0,0 +1,19 @@ +python-trezor is free software, created in 2012 and maintained by SatoshiLabs +as part of the Trezor project. + +Over the years, many people have contributed to the project. Here is an incomplete +list of credits: + +alepop +Jan 'matejcik' Matějek +Jan Pochyla +Jochen Hoenicke +Karel Bílek +Marek Palatinus +mruddy +Pavol Rusnak +Peter van Mourik +Roman Zeyde +Saleem Rashid +Tomáš Sušánka +ZuluCrypto diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d111420ae..270b094efd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,8 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). _At the moment, the project does __not__ adhere to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). That is expected to change with version 1.0._ -## [0.10.2] - Unreleased -[0.10.2]: https://github.com/trezor/python-trezor/compare/v0.10.1...master +## [0.10.2] - 2018-06-21 +[0.10.2]: https://github.com/trezor/python-trezor/compare/v0.10.1...v0.10.2 ### Added - `stellar_get_address` and `_public_key` functions support `show_display` parameter diff --git a/MANIFEST.in b/MANIFEST.in index 27de664f82..7a28c12ad8 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,9 +1,9 @@ recursive-include bash_completion.d *.sh include tools/* -include trezorlib/tests/txcache/*.json +recursive-include trezorlib * recursive-include vendor/trezor-common * exclude vendor/trezor-common/.* -include COPYING CHANGELOG.md +include AUTHORS README.md COPYING CHANGELOG.md include requirements*.txt diff --git a/README.md b/README.md new file mode 100644 index 0000000000..65b055d1f5 --- /dev/null +++ b/README.md @@ -0,0 +1,144 @@ +python-trezor +============= + +[![image](https://travis-ci.org/trezor/python-trezor.svg?branch=master)](https://travis-ci.org/trezor/python-trezor) + +[![image](https://badges.gitter.im/trezor/community.svg)](https://gitter.im/trezor/community) + +Python library and commandline client for communicating with TREZOR +Hardware Wallet + +See for more information + +Install +------- + +Python-trezor requires Python 3.3 or higher, and libusb 1.0. The easiest +way to install it is with `pip`. The rest of this guide assumes you have +a working `pip`; if not, you can refer to [this +guide](https://packaging.python.org/tutorials/installing-packages/). + +### Trezor T only + +On a typical Linux / Mac / BSD system, you already have all you need. +Install `trezor` with: + +```sh +pip3 install --upgrade setuptools +pip3 install trezor +``` + +On Windows, you also need to install +[libusb](https://github.com/libusb/libusb/wiki/Windows) and the +appropriate [drivers](https://zadig.akeo.ie/). This is, unfortunately, a +topic bigger than this README. + +### Trezor One support + +In addition to the above, you need to install development headers for +HIDAPI. + +On a Debian or Ubuntu based system, you can install these: + +```sh +sudo apt-get install python3-dev python3-pip cython3 libusb-1.0-0-dev libudev-dev +``` + +When installing the trezor library, you need to specify that you want +`hidapi`: + +```sh +pip3 install --upgrade setuptools +pip3 install trezor[hidapi] +``` + +### Ethereum support + +Ethereum requires additional python packages. Instead of +`pip3 install trezor`, specify `pip3 install trezor[ethereum]`. + +You can combine it with the above, to get both HIDAPI and Ethereum +support: + +```sh +pip3 install trezor[ethereum,hidapi] +``` + +### FreeBSD + +On FreeBSD you can install the packages: + +```sh +pkg install security/py-trezor +``` + +or build via ports: + +```sh +cd /usr/ports/security/py-trezor +make install clean +``` + +Command line client (trezorctl) +------------------------------ + +The included `trezorctl` python script can perform various tasks such as +changing setting in the Trezor, signing transactions, retrieving account +info and addresses. See the [docs/](docs/) sub folder for detailed +examples and options. + +NOTE: An older version of the `trezorctl` command is [available for +Debian Stretch](https://packages.debian.org/en/stretch/python-trezor) +(and comes pre-installed on [Tails OS](https://tails.boum.org/)). + +Python Library +-------------- + +You can use this python library to interact with a Bitcoin Trezor and +use its capabilities in your application. See examples here in the +[tools/](tools/) sub folder. + +PIN Entering +------------ + +When you are asked for PIN, you have to enter scrambled PIN. Follow the +numbers shown on TREZOR display and enter the their positions using the +numeric keyboard mapping: + + +
789 +
456 +
123 +
+ +Example: your PIN is **1234** and TREZOR is displaying the following: + + +
283 +
546 +
791 +
+ +You have to enter: **3795** + +Contributing +------------ + +Python-trezor pulls coins info and protobuf messages from +[trezor-common](https://github.com/trezor/trezor-common) repository. If +you are developing new features for Trezor, you will want to start +there. Once your changes are accepted to `trezor-common`, you can make a +PR against this repository. Don't forget to update the submodule with: + +```sh +git submodule update --init --remote +``` + +Then, rebuild the protobuf messages and get `coins.json` by running: + +```sh +python3 setup.py prebuild +``` + +To get support for BTC-like coins, these steps are enough and no further +changes to the library are necessary. diff --git a/README.rst b/README.rst deleted file mode 100644 index d866530942..0000000000 --- a/README.rst +++ /dev/null @@ -1,137 +0,0 @@ -python-trezor -============= - -.. image:: https://travis-ci.org/trezor/python-trezor.svg?branch=master - :target: https://travis-ci.org/trezor/python-trezor - -.. image:: https://badges.gitter.im/trezor/community.svg - :target: https://gitter.im/trezor/community - -Python library and commandline client for communicating with TREZOR Hardware Wallet - -See https://trezor.io for more information - - -Install -------- - -Python-trezor requires Python 3.3 or higher, and libusb 1.0. The easiest way to install it is with ``pip``. -The rest of this guide assumes you have a working ``pip``; if not, you can refer to -`this guide `_. - -Trezor T only -~~~~~~~~~~~~~ - -On a typical Linux / Mac / BSD system, you already have all you need. Install ``trezor`` with: - -.. code:: - - pip3 install --upgrade setuptools - pip3 install trezor - -On Windows, you also need to install `libusb `_ -and the appropriate `drivers `_. This is, unfortunately, a topic bigger -than this README. - -Trezor One support -~~~~~~~~~~~~~~~~~~ - -In addition to the above, you need to install development headers for HIDAPI. - -On a Debian or Ubuntu based system, you can install these: - -.. code:: - - sudo apt-get install python3-dev python3-pip cython3 libusb-1.0-0-dev libudev-dev - -When installing the `trezor` library, you need to specify that you want ``hidapi``: - -.. code:: - - pip3 install --upgrade setuptools - pip3 install trezor[hidapi] - -Ethereum support -~~~~~~~~~~~~~~~~ - -Ethereum requires additional python packages. Instead of ``pip3 install trezor``, specify -``pip3 install trezor[ethereum]``. - -You can combine it with the above, to get both HIDAPI and Ethereum support: - -.. code:: - - pip3 install trezor[ethereum,hidapi] - -FreeBSD -~~~~~~~ - -On FreeBSD you can install the packages: - -.. code:: - - pkg install security/py-trezor - -or build via ports: - -.. code:: - - cd /usr/ports/security/py-trezor - make install clean - - -Commandline client (trezorctl) ------------------------------- - -The included ``trezorctl`` python script can perform various tasks such as changing setting in the Trezor, signing transactions, retrieving account info and addresses. See the `docs/ `_ sub folder for detailed examples and options. - -NOTE: An older version of the ``trezorctl`` command is `available for Debian Stretch `_ (and comes pre-installed on `Tails OS `_). - - -Python Library --------------- - -You can use this python library to interact with a Bitcoin Trezor and use its capabilities in your application. -See examples here in the `tools/ `_ sub folder. - - -PIN Entering ------------- - -When you are asked for PIN, you have to enter scrambled PIN. Follow the numbers shown on TREZOR display and enter the their positions using the numeric keyboard mapping: - -=== === === - 7 8 9 - 4 5 6 - 1 2 3 -=== === === - -Example: your PIN is **1234** and TREZOR is displaying the following: - -=== === === - 2 8 3 - 5 4 6 - 7 9 1 -=== === === - -You have to enter: **3795** - - -Contributing ------------- - -Python-trezor pulls coins info and protobuf messages from `trezor-common `_ repository. If you are -developing new features for Trezor, you will want to start there. Once your changes are accepted to ``trezor-common``, you can make a PR -against this repository. Don't forget to update the submodule with: - -.. code:: - - git submodule update --init --remote - -Then, rebuild the protobuf messages and get ``coins.json`` by running: - -.. code:: - - python3 setup.py prebuild - -To get support for BTC-like coins, these steps are enough and no further changes to the library are necessary. diff --git a/setup.py b/setup.py index f1b03a0700..0049330579 100755 --- a/setup.py +++ b/setup.py @@ -25,6 +25,12 @@ CWD = os.path.dirname(os.path.realpath(__file__)) TREZOR_COMMON = os.path.join(CWD, 'vendor', 'trezor-common') +def read(name): + filename = os.path.join(CWD, name) + with open(filename, 'r') as f: + return f.read() + + class PrebuildCommand(Command): description = 'update vendored files (coins.json, protobuf messages)' user_options = [] @@ -77,7 +83,13 @@ setup( version=VERSION, author='TREZOR', author_email='info@trezor.io', + license='LGPLv3', description='Python library for communicating with TREZOR Hardware Wallet', + long_description='{}\n\n{}'.format( + read('README.md'), + read('CHANGELOG.md'), + ), + long_description_content_type='text/markdown', url='https://github.com/trezor/python-trezor', packages=find_packages(), package_data={ diff --git a/trezorlib/__init__.py b/trezorlib/__init__.py index e754a834ef..85b551d30b 100644 --- a/trezorlib/__init__.py +++ b/trezorlib/__init__.py @@ -1 +1 @@ -__version__ = '0.10.1' +__version__ = '0.10.2' diff --git a/trezorlib/ckd_public.py b/trezorlib/ckd_public.py index bcb7f3f7e6..ddb13983fa 100644 --- a/trezorlib/ckd_public.py +++ b/trezorlib/ckd_public.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 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 . + import warnings warnings.warn("ckd_public module is deprecated and will be removed", DeprecationWarning) diff --git a/trezorlib/client.py b/trezorlib/client.py index 8614d447b3..31da8302cf 100644 --- a/trezorlib/client.py +++ b/trezorlib/client.py @@ -1,21 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak -# Copyright (C) 2016 Jochen Hoenicke +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import functools import logging diff --git a/trezorlib/coins.py b/trezorlib/coins.py index 99177efd52..2d4ec2bba3 100644 --- a/trezorlib/coins.py +++ b/trezorlib/coins.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 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 . + import os.path import json diff --git a/trezorlib/cosi.py b/trezorlib/cosi.py index 71e2899de1..4dc8f953e8 100644 --- a/trezorlib/cosi.py +++ b/trezorlib/cosi.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 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 . + import sys from functools import reduce import binascii diff --git a/trezorlib/debuglink.py b/trezorlib/debuglink.py index bfe44c1c3d..84aa8a6033 100644 --- a/trezorlib/debuglink.py +++ b/trezorlib/debuglink.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from __future__ import print_function diff --git a/trezorlib/device.py b/trezorlib/device.py index 7d62b142cf..6cbe7417f5 100644 --- a/trezorlib/device.py +++ b/trezorlib/device.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2017 Marek Palatinus -# Copyright (C) 2012-2017 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import warnings diff --git a/trezorlib/log.py b/trezorlib/log.py index 89abd17cfd..69b8097284 100644 --- a/trezorlib/log.py +++ b/trezorlib/log.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 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 . + import logging from typing import Set, Type, Optional diff --git a/trezorlib/mapping.py b/trezorlib/mapping.py index 776d21a6ea..514465476f 100644 --- a/trezorlib/mapping.py +++ b/trezorlib/mapping.py @@ -1,21 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak -# Copyright (C) 2016 Jochen Hoenicke +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from . import messages from . import protobuf diff --git a/trezorlib/nem.py b/trezorlib/nem.py index 19c4f7b3a0..037aa3cb9c 100644 --- a/trezorlib/nem.py +++ b/trezorlib/nem.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 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 . + import binascii import json from . import messages as proto diff --git a/trezorlib/protobuf.py b/trezorlib/protobuf.py index 866f5e9b2c..e761354196 100644 --- a/trezorlib/protobuf.py +++ b/trezorlib/protobuf.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . ''' Extremely minimal streaming codec for a subset of protobuf. Supports uint32, diff --git a/trezorlib/protocol_v1.py b/trezorlib/protocol_v1.py index cd263e7d7e..09167b9eb3 100644 --- a/trezorlib/protocol_v1.py +++ b/trezorlib/protocol_v1.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from __future__ import absolute_import diff --git a/trezorlib/protocol_v2.py b/trezorlib/protocol_v2.py index ba0c4f02d4..a9474ee217 100644 --- a/trezorlib/protocol_v2.py +++ b/trezorlib/protocol_v2.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from __future__ import absolute_import diff --git a/trezorlib/qt/pinmatrix.py b/trezorlib/qt/pinmatrix.py index 115d339d17..3603b589d0 100644 --- a/trezorlib/qt/pinmatrix.py +++ b/trezorlib/qt/pinmatrix.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 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 . + from __future__ import print_function import sys import math diff --git a/trezorlib/stellar.py b/trezorlib/stellar.py index 3c7c9e2cb9..be5453aef4 100644 --- a/trezorlib/stellar.py +++ b/trezorlib/stellar.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 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 . + import base64 import struct import xdrlib diff --git a/trezorlib/tests/device_tests/common.py b/trezorlib/tests/device_tests/common.py index 7c31c09fc3..525c9b6360 100644 --- a/trezorlib/tests/device_tests/common.py +++ b/trezorlib/tests/device_tests/common.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import os diff --git a/trezorlib/tests/device_tests/conftest.py b/trezorlib/tests/device_tests/conftest.py index 26784a044c..5754eeb327 100644 --- a/trezorlib/tests/device_tests/conftest.py +++ b/trezorlib/tests/device_tests/conftest.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 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 . + import functools import os import pytest diff --git a/trezorlib/tests/device_tests/test_basic.py b/trezorlib/tests/device_tests/test_basic.py index fbba93212e..0d9d4ac80b 100644 --- a/trezorlib/tests/device_tests/test_basic.py +++ b/trezorlib/tests/device_tests/test_basic.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_bip32_speed.py b/trezorlib/tests/device_tests/test_bip32_speed.py index 04ffa79001..54fbc717b3 100644 --- a/trezorlib/tests/device_tests/test_bip32_speed.py +++ b/trezorlib/tests/device_tests/test_bip32_speed.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + import time import pytest diff --git a/trezorlib/tests/device_tests/test_cancel.py b/trezorlib/tests/device_tests/test_cancel.py index 6b0a90586d..3a6eb2443b 100644 --- a/trezorlib/tests/device_tests/test_cancel.py +++ b/trezorlib/tests/device_tests/test_cancel.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 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 . + import pytest from .conftest import setup_client diff --git a/trezorlib/tests/device_tests/test_cosi.py b/trezorlib/tests/device_tests/test_cosi.py index 46ec9eb4d6..698d512b01 100644 --- a/trezorlib/tests/device_tests/test_cosi.py +++ b/trezorlib/tests/device_tests/test_cosi.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import pytest from hashlib import sha256 diff --git a/trezorlib/tests/device_tests/test_debuglink.py b/trezorlib/tests/device_tests/test_debuglink.py index ab9dc91776..76f197f2d5 100644 --- a/trezorlib/tests/device_tests/test_debuglink.py +++ b/trezorlib/tests/device_tests/test_debuglink.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + import pytest from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_msg_applysettings.py b/trezorlib/tests/device_tests/test_msg_applysettings.py index c5511658c9..23238fc46a 100644 --- a/trezorlib/tests/device_tests/test_msg_applysettings.py +++ b/trezorlib/tests/device_tests/test_msg_applysettings.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + import pytest from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_msg_changepin.py b/trezorlib/tests/device_tests/test_msg_changepin.py index 3d40bbafbb..85d5317b62 100644 --- a/trezorlib/tests/device_tests/test_msg_changepin.py +++ b/trezorlib/tests/device_tests/test_msg_changepin.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + import pytest from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_msg_cipherkeyvalue.py b/trezorlib/tests/device_tests/test_msg_cipherkeyvalue.py index 174145a3e2..f9c92a82d0 100644 --- a/trezorlib/tests/device_tests/test_msg_cipherkeyvalue.py +++ b/trezorlib/tests/device_tests/test_msg_cipherkeyvalue.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + from binascii import hexlify, unhexlify import pytest diff --git a/trezorlib/tests/device_tests/test_msg_clearsession.py b/trezorlib/tests/device_tests/test_msg_clearsession.py index 64c90db976..d7051a8a30 100644 --- a/trezorlib/tests/device_tests/test_msg_clearsession.py +++ b/trezorlib/tests/device_tests/test_msg_clearsession.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + import pytest from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_msg_ethereum_getaddress.py b/trezorlib/tests/device_tests/test_msg_ethereum_getaddress.py index 61f2e7b465..37e62759e2 100644 --- a/trezorlib/tests/device_tests/test_msg_ethereum_getaddress.py +++ b/trezorlib/tests/device_tests/test_msg_ethereum_getaddress.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + from binascii import hexlify import pytest diff --git a/trezorlib/tests/device_tests/test_msg_ethereum_signmessage.py b/trezorlib/tests/device_tests/test_msg_ethereum_signmessage.py index 464f0e0173..55b1913590 100644 --- a/trezorlib/tests/device_tests/test_msg_ethereum_signmessage.py +++ b/trezorlib/tests/device_tests/test_msg_ethereum_signmessage.py @@ -1,19 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2016-2017 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + from binascii import hexlify import pytest diff --git a/trezorlib/tests/device_tests/test_msg_ethereum_signtx.py b/trezorlib/tests/device_tests/test_msg_ethereum_signtx.py index 4744002335..ad8f20cb00 100644 --- a/trezorlib/tests/device_tests/test_msg_ethereum_signtx.py +++ b/trezorlib/tests/device_tests/test_msg_ethereum_signtx.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + from binascii import unhexlify, hexlify import pytest diff --git a/trezorlib/tests/device_tests/test_msg_ethereum_verifymessage.py b/trezorlib/tests/device_tests/test_msg_ethereum_verifymessage.py index c49a9dda64..fd8ee20f57 100644 --- a/trezorlib/tests/device_tests/test_msg_ethereum_verifymessage.py +++ b/trezorlib/tests/device_tests/test_msg_ethereum_verifymessage.py @@ -1,19 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2016-2017 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + from binascii import unhexlify import pytest diff --git a/trezorlib/tests/device_tests/test_msg_getaddress.py b/trezorlib/tests/device_tests/test_msg_getaddress.py index 8ae556bb61..da92e4f56b 100644 --- a/trezorlib/tests/device_tests/test_msg_getaddress.py +++ b/trezorlib/tests/device_tests/test_msg_getaddress.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import pytest diff --git a/trezorlib/tests/device_tests/test_msg_getaddress_segwit.py b/trezorlib/tests/device_tests/test_msg_getaddress_segwit.py index f0fd4c17b0..a5a0563452 100644 --- a/trezorlib/tests/device_tests/test_msg_getaddress_segwit.py +++ b/trezorlib/tests/device_tests/test_msg_getaddress_segwit.py @@ -1,19 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2016-2017 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from .common import TrezorTest from ..support import ckd_public as bip32 diff --git a/trezorlib/tests/device_tests/test_msg_getaddress_segwit_native.py b/trezorlib/tests/device_tests/test_msg_getaddress_segwit_native.py index 3d54b51607..d6c1d7f24e 100644 --- a/trezorlib/tests/device_tests/test_msg_getaddress_segwit_native.py +++ b/trezorlib/tests/device_tests/test_msg_getaddress_segwit_native.py @@ -1,19 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2016-2017 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from .common import TrezorTest from ..support import ckd_public as bip32 diff --git a/trezorlib/tests/device_tests/test_msg_getaddress_show.py b/trezorlib/tests/device_tests/test_msg_getaddress_show.py index ba9411ceb8..5192b73297 100644 --- a/trezorlib/tests/device_tests/test_msg_getaddress_show.py +++ b/trezorlib/tests/device_tests/test_msg_getaddress_show.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from .common import TrezorTest from ..support import ckd_public as bip32 diff --git a/trezorlib/tests/device_tests/test_msg_getecdhsessionkey.py b/trezorlib/tests/device_tests/test_msg_getecdhsessionkey.py index c7049c5ffe..988128c439 100644 --- a/trezorlib/tests/device_tests/test_msg_getecdhsessionkey.py +++ b/trezorlib/tests/device_tests/test_msg_getecdhsessionkey.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + from binascii import unhexlify from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_msg_getentropy.py b/trezorlib/tests/device_tests/test_msg_getentropy.py index bee7f6a182..0c30a987ff 100644 --- a/trezorlib/tests/device_tests/test_msg_getentropy.py +++ b/trezorlib/tests/device_tests/test_msg_getentropy.py @@ -1,21 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . - +# You should have received a copy of the License along with this library. +# If not, see . import math from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_msg_getpublickey.py b/trezorlib/tests/device_tests/test_msg_getpublickey.py index 5047cd74ca..e8e6847cc8 100644 --- a/trezorlib/tests/device_tests/test_msg_getpublickey.py +++ b/trezorlib/tests/device_tests/test_msg_getpublickey.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from .common import TrezorTest from ..support import ckd_public as bip32 diff --git a/trezorlib/tests/device_tests/test_msg_getpublickey_curve.py b/trezorlib/tests/device_tests/test_msg_getpublickey_curve.py index d2418336cd..489b4d20ca 100644 --- a/trezorlib/tests/device_tests/test_msg_getpublickey_curve.py +++ b/trezorlib/tests/device_tests/test_msg_getpublickey_curve.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from binascii import hexlify import pytest diff --git a/trezorlib/tests/device_tests/test_msg_lisk_getaddress.py b/trezorlib/tests/device_tests/test_msg_lisk_getaddress.py index d1e6fd4c63..9ad64dc0bb 100644 --- a/trezorlib/tests/device_tests/test_msg_lisk_getaddress.py +++ b/trezorlib/tests/device_tests/test_msg_lisk_getaddress.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import pytest diff --git a/trezorlib/tests/device_tests/test_msg_lisk_getpublickey.py b/trezorlib/tests/device_tests/test_msg_lisk_getpublickey.py index f14a8f8e1e..164d7a2d8d 100644 --- a/trezorlib/tests/device_tests/test_msg_lisk_getpublickey.py +++ b/trezorlib/tests/device_tests/test_msg_lisk_getpublickey.py @@ -1,19 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2016-2017 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from binascii import hexlify import pytest diff --git a/trezorlib/tests/device_tests/test_msg_lisk_signmessage.py b/trezorlib/tests/device_tests/test_msg_lisk_signmessage.py index aa09cdc74c..8dd1cc8ad2 100644 --- a/trezorlib/tests/device_tests/test_msg_lisk_signmessage.py +++ b/trezorlib/tests/device_tests/test_msg_lisk_signmessage.py @@ -1,19 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2016-2017 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from binascii import hexlify import pytest diff --git a/trezorlib/tests/device_tests/test_msg_lisk_signtx.py b/trezorlib/tests/device_tests/test_msg_lisk_signtx.py index 015c450b8a..69280a50a5 100644 --- a/trezorlib/tests/device_tests/test_msg_lisk_signtx.py +++ b/trezorlib/tests/device_tests/test_msg_lisk_signtx.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from binascii import unhexlify import pytest diff --git a/trezorlib/tests/device_tests/test_msg_lisk_verifymessage.py b/trezorlib/tests/device_tests/test_msg_lisk_verifymessage.py index bb97f258b3..0a5b120080 100644 --- a/trezorlib/tests/device_tests/test_msg_lisk_verifymessage.py +++ b/trezorlib/tests/device_tests/test_msg_lisk_verifymessage.py @@ -1,19 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2016-2017 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from binascii import unhexlify import pytest diff --git a/trezorlib/tests/device_tests/test_msg_loaddevice.py b/trezorlib/tests/device_tests/test_msg_loaddevice.py index 317132aee8..4c097e366d 100644 --- a/trezorlib/tests/device_tests/test_msg_loaddevice.py +++ b/trezorlib/tests/device_tests/test_msg_loaddevice.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + import pytest from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_msg_loaddevice_xprv.py b/trezorlib/tests/device_tests/test_msg_loaddevice_xprv.py index b7017f1ca8..2b397822a5 100644 --- a/trezorlib/tests/device_tests/test_msg_loaddevice_xprv.py +++ b/trezorlib/tests/device_tests/test_msg_loaddevice_xprv.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + import pytest from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_msg_nem_getaddress.py b/trezorlib/tests/device_tests/test_msg_nem_getaddress.py index ced91e0ab8..2b16dd9807 100644 --- a/trezorlib/tests/device_tests/test_msg_nem_getaddress.py +++ b/trezorlib/tests/device_tests/test_msg_nem_getaddress.py @@ -1,19 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2017 Saleem Rashid +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import pytest diff --git a/trezorlib/tests/device_tests/test_msg_nem_signtx_mosaics.py b/trezorlib/tests/device_tests/test_msg_nem_signtx_mosaics.py index 0b92351c8a..e493ba32cd 100644 --- a/trezorlib/tests/device_tests/test_msg_nem_signtx_mosaics.py +++ b/trezorlib/tests/device_tests/test_msg_nem_signtx_mosaics.py @@ -1,19 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2017 Saleem Rashid +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import pytest from binascii import hexlify diff --git a/trezorlib/tests/device_tests/test_msg_nem_signtx_mosaics_t2.py b/trezorlib/tests/device_tests/test_msg_nem_signtx_mosaics_t2.py index 3a2dfdb67f..26d2c65638 100644 --- a/trezorlib/tests/device_tests/test_msg_nem_signtx_mosaics_t2.py +++ b/trezorlib/tests/device_tests/test_msg_nem_signtx_mosaics_t2.py @@ -1,19 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2017 Saleem Rashid +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from binascii import hexlify import pytest diff --git a/trezorlib/tests/device_tests/test_msg_nem_signtx_multisig.py b/trezorlib/tests/device_tests/test_msg_nem_signtx_multisig.py index a2e6130f56..c646d48a40 100644 --- a/trezorlib/tests/device_tests/test_msg_nem_signtx_multisig.py +++ b/trezorlib/tests/device_tests/test_msg_nem_signtx_multisig.py @@ -1,19 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2017 Saleem Rashid +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from binascii import hexlify import pytest diff --git a/trezorlib/tests/device_tests/test_msg_nem_signtx_others.py b/trezorlib/tests/device_tests/test_msg_nem_signtx_others.py index f8e1035f53..d191712e0c 100644 --- a/trezorlib/tests/device_tests/test_msg_nem_signtx_others.py +++ b/trezorlib/tests/device_tests/test_msg_nem_signtx_others.py @@ -1,19 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2017 Saleem Rashid +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from binascii import hexlify import pytest diff --git a/trezorlib/tests/device_tests/test_msg_nem_signtx_transfers.py b/trezorlib/tests/device_tests/test_msg_nem_signtx_transfers.py index ced4deb112..19352cea96 100644 --- a/trezorlib/tests/device_tests/test_msg_nem_signtx_transfers.py +++ b/trezorlib/tests/device_tests/test_msg_nem_signtx_transfers.py @@ -1,19 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2017 Saleem Rashid +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from binascii import hexlify, unhexlify import pytest diff --git a/trezorlib/tests/device_tests/test_msg_ping.py b/trezorlib/tests/device_tests/test_msg_ping.py index c5c129a770..369dc8830b 100644 --- a/trezorlib/tests/device_tests/test_msg_ping.py +++ b/trezorlib/tests/device_tests/test_msg_ping.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + import pytest from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_msg_recoverydevice.py b/trezorlib/tests/device_tests/test_msg_recoverydevice.py index 5244ac8e9b..c95e981143 100644 --- a/trezorlib/tests/device_tests/test_msg_recoverydevice.py +++ b/trezorlib/tests/device_tests/test_msg_recoverydevice.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + import pytest from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_msg_recoverydevice_dryrun.py b/trezorlib/tests/device_tests/test_msg_recoverydevice_dryrun.py index 0f575d3a10..e25f25798c 100644 --- a/trezorlib/tests/device_tests/test_msg_recoverydevice_dryrun.py +++ b/trezorlib/tests/device_tests/test_msg_recoverydevice_dryrun.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import pytest diff --git a/trezorlib/tests/device_tests/test_msg_recoverydevice_t2.py b/trezorlib/tests/device_tests/test_msg_recoverydevice_t2.py index ee2e2d994b..73ad3f805e 100644 --- a/trezorlib/tests/device_tests/test_msg_recoverydevice_t2.py +++ b/trezorlib/tests/device_tests/test_msg_recoverydevice_t2.py @@ -1,21 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . - +# You should have received a copy of the License along with this library. +# If not, see . import time diff --git a/trezorlib/tests/device_tests/test_msg_resetdevice.py b/trezorlib/tests/device_tests/test_msg_resetdevice.py index 2286b523c1..47f6c5f611 100644 --- a/trezorlib/tests/device_tests/test_msg_resetdevice.py +++ b/trezorlib/tests/device_tests/test_msg_resetdevice.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + import pytest from .common import TrezorTest, generate_entropy diff --git a/trezorlib/tests/device_tests/test_msg_resetdevice_skipbackup.py b/trezorlib/tests/device_tests/test_msg_resetdevice_skipbackup.py index 127bcb48ed..f47b6a4702 100644 --- a/trezorlib/tests/device_tests/test_msg_resetdevice_skipbackup.py +++ b/trezorlib/tests/device_tests/test_msg_resetdevice_skipbackup.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + import pytest from .common import TrezorTest, generate_entropy diff --git a/trezorlib/tests/device_tests/test_msg_resetdevice_t2.py b/trezorlib/tests/device_tests/test_msg_resetdevice_t2.py index 823c69d5fd..d363c5cd1b 100644 --- a/trezorlib/tests/device_tests/test_msg_resetdevice_t2.py +++ b/trezorlib/tests/device_tests/test_msg_resetdevice_t2.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import time import pytest diff --git a/trezorlib/tests/device_tests/test_msg_signidentity.py b/trezorlib/tests/device_tests/test_msg_signidentity.py index 2985063f10..583340ce0d 100644 --- a/trezorlib/tests/device_tests/test_msg_signidentity.py +++ b/trezorlib/tests/device_tests/test_msg_signidentity.py @@ -1,21 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . - +# You should have received a copy of the License along with this library. +# If not, see . import struct from binascii import hexlify, unhexlify diff --git a/trezorlib/tests/device_tests/test_msg_signmessage.py b/trezorlib/tests/device_tests/test_msg_signmessage.py index b2bdc4eb7b..e86824a718 100644 --- a/trezorlib/tests/device_tests/test_msg_signmessage.py +++ b/trezorlib/tests/device_tests/test_msg_signmessage.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + from binascii import hexlify from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_msg_signmessage_segwit.py b/trezorlib/tests/device_tests/test_msg_signmessage_segwit.py index 086d216750..e7981c2edf 100644 --- a/trezorlib/tests/device_tests/test_msg_signmessage_segwit.py +++ b/trezorlib/tests/device_tests/test_msg_signmessage_segwit.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + from binascii import hexlify from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_msg_signmessage_segwit_native.py b/trezorlib/tests/device_tests/test_msg_signmessage_segwit_native.py index 08e8629b7c..748f9f98a8 100644 --- a/trezorlib/tests/device_tests/test_msg_signmessage_segwit_native.py +++ b/trezorlib/tests/device_tests/test_msg_signmessage_segwit_native.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + from binascii import hexlify from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_msg_signtx.py b/trezorlib/tests/device_tests/test_msg_signtx.py index e114ecffce..6ce86a6ba3 100644 --- a/trezorlib/tests/device_tests/test_msg_signtx.py +++ b/trezorlib/tests/device_tests/test_msg_signtx.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from binascii import hexlify, unhexlify import pytest diff --git a/trezorlib/tests/device_tests/test_msg_signtx_bcash.py b/trezorlib/tests/device_tests/test_msg_signtx_bcash.py index e8036d8388..473fbada57 100644 --- a/trezorlib/tests/device_tests/test_msg_signtx_bcash.py +++ b/trezorlib/tests/device_tests/test_msg_signtx_bcash.py @@ -1,19 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2017 Jochen Hoenicke +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import pytest from binascii import hexlify, unhexlify diff --git a/trezorlib/tests/device_tests/test_msg_signtx_bgold.py b/trezorlib/tests/device_tests/test_msg_signtx_bgold.py index 0a465f03a3..a6149addd5 100644 --- a/trezorlib/tests/device_tests/test_msg_signtx_bgold.py +++ b/trezorlib/tests/device_tests/test_msg_signtx_bgold.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import pytest from binascii import hexlify, unhexlify diff --git a/trezorlib/tests/device_tests/test_msg_signtx_decred.py b/trezorlib/tests/device_tests/test_msg_signtx_decred.py index 8cb27bb9e4..7662834bf5 100644 --- a/trezorlib/tests/device_tests/test_msg_signtx_decred.py +++ b/trezorlib/tests/device_tests/test_msg_signtx_decred.py @@ -1,19 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2017 Saleem Rashid +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from binascii import unhexlify import pytest diff --git a/trezorlib/tests/device_tests/test_msg_signtx_segwit.py b/trezorlib/tests/device_tests/test_msg_signtx_segwit.py index f45cd01520..28b46dcffa 100644 --- a/trezorlib/tests/device_tests/test_msg_signtx_segwit.py +++ b/trezorlib/tests/device_tests/test_msg_signtx_segwit.py @@ -1,19 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2017 Jochen Hoenicke +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from binascii import hexlify, unhexlify import pytest diff --git a/trezorlib/tests/device_tests/test_msg_signtx_segwit_native.py b/trezorlib/tests/device_tests/test_msg_signtx_segwit_native.py index a5081c6b5d..c5307463d3 100644 --- a/trezorlib/tests/device_tests/test_msg_signtx_segwit_native.py +++ b/trezorlib/tests/device_tests/test_msg_signtx_segwit_native.py @@ -1,19 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2017 Jochen Hoenicke +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from binascii import hexlify, unhexlify diff --git a/trezorlib/tests/device_tests/test_msg_signtx_zcash.py b/trezorlib/tests/device_tests/test_msg_signtx_zcash.py index 9cd631feab..1bb1b13e02 100644 --- a/trezorlib/tests/device_tests/test_msg_signtx_zcash.py +++ b/trezorlib/tests/device_tests/test_msg_signtx_zcash.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + from binascii import unhexlify, hexlify import pytest diff --git a/trezorlib/tests/device_tests/test_msg_stellar_get_address.py b/trezorlib/tests/device_tests/test_msg_stellar_get_address.py index faa661d54a..8e11362b0b 100644 --- a/trezorlib/tests/device_tests/test_msg_stellar_get_address.py +++ b/trezorlib/tests/device_tests/test_msg_stellar_get_address.py @@ -1,17 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + import pytest from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_msg_stellar_get_public_key.py b/trezorlib/tests/device_tests/test_msg_stellar_get_public_key.py index aa1c41cd51..05dac42eea 100644 --- a/trezorlib/tests/device_tests/test_msg_stellar_get_public_key.py +++ b/trezorlib/tests/device_tests/test_msg_stellar_get_public_key.py @@ -1,17 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + import pytest from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_msg_stellar_sign_transaction.py b/trezorlib/tests/device_tests/test_msg_stellar_sign_transaction.py index c0e08f0458..3f0868d8ee 100644 --- a/trezorlib/tests/device_tests/test_msg_stellar_sign_transaction.py +++ b/trezorlib/tests/device_tests/test_msg_stellar_sign_transaction.py @@ -1,18 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . -# +# You should have received a copy of the License along with this library. +# If not, see . + # XDR decoding tool available at: # https://www.stellar.org/laboratory/#xdr-viewer # diff --git a/trezorlib/tests/device_tests/test_msg_verifymessage.py b/trezorlib/tests/device_tests/test_msg_verifymessage.py index eb388a581b..80ee934e51 100644 --- a/trezorlib/tests/device_tests/test_msg_verifymessage.py +++ b/trezorlib/tests/device_tests/test_msg_verifymessage.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + from binascii import unhexlify from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_msg_verifymessage_segwit.py b/trezorlib/tests/device_tests/test_msg_verifymessage_segwit.py index 15c21b03b0..ff0bdf78ef 100644 --- a/trezorlib/tests/device_tests/test_msg_verifymessage_segwit.py +++ b/trezorlib/tests/device_tests/test_msg_verifymessage_segwit.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + from binascii import unhexlify from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_msg_verifymessage_segwit_native.py b/trezorlib/tests/device_tests/test_msg_verifymessage_segwit_native.py index dbaa4bd107..750019339f 100644 --- a/trezorlib/tests/device_tests/test_msg_verifymessage_segwit_native.py +++ b/trezorlib/tests/device_tests/test_msg_verifymessage_segwit_native.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + from binascii import unhexlify from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_msg_wipedevice.py b/trezorlib/tests/device_tests/test_msg_wipedevice.py index 2a5f259eb7..2b428dd919 100644 --- a/trezorlib/tests/device_tests/test_msg_wipedevice.py +++ b/trezorlib/tests/device_tests/test_msg_wipedevice.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from .common import TrezorTest diff --git a/trezorlib/tests/device_tests/test_multisig.py b/trezorlib/tests/device_tests/test_multisig.py index 34b29e7c3f..3bbf903084 100644 --- a/trezorlib/tests/device_tests/test_multisig.py +++ b/trezorlib/tests/device_tests/test_multisig.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from binascii import hexlify, unhexlify import pytest diff --git a/trezorlib/tests/device_tests/test_multisig_change.py b/trezorlib/tests/device_tests/test_multisig_change.py index e09dcbd03d..6dce36ad9a 100644 --- a/trezorlib/tests/device_tests/test_multisig_change.py +++ b/trezorlib/tests/device_tests/test_multisig_change.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from binascii import hexlify, unhexlify diff --git a/trezorlib/tests/device_tests/test_op_return.py b/trezorlib/tests/device_tests/test_op_return.py index b0f7a94369..4808585711 100644 --- a/trezorlib/tests/device_tests/test_op_return.py +++ b/trezorlib/tests/device_tests/test_op_return.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + from binascii import unhexlify, hexlify import pytest diff --git a/trezorlib/tests/device_tests/test_protect_call.py b/trezorlib/tests/device_tests/test_protect_call.py index 10fe06ee12..447061643a 100644 --- a/trezorlib/tests/device_tests/test_protect_call.py +++ b/trezorlib/tests/device_tests/test_protect_call.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import time import pytest diff --git a/trezorlib/tests/device_tests/test_protection_levels.py b/trezorlib/tests/device_tests/test_protection_levels.py index caaaea1f84..b6ff5a4d5e 100644 --- a/trezorlib/tests/device_tests/test_protection_levels.py +++ b/trezorlib/tests/device_tests/test_protection_levels.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + from binascii import unhexlify import pytest diff --git a/trezorlib/tests/device_tests/test_zerosig.py b/trezorlib/tests/device_tests/test_zerosig.py index 5b65a1f181..3e18727bce 100644 --- a/trezorlib/tests/device_tests/test_zerosig.py +++ b/trezorlib/tests/device_tests/test_zerosig.py @@ -1,20 +1,19 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . + from binascii import unhexlify from .common import TrezorTest diff --git a/trezorlib/tests/support/ckd_public.py b/trezorlib/tests/support/ckd_public.py index cb4f2fa5ba..b49cb5e5fb 100644 --- a/trezorlib/tests/support/ckd_public.py +++ b/trezorlib/tests/support/ckd_public.py @@ -1,21 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak -# Copyright (C) 2016 Jochen Hoenicke +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import struct import hmac diff --git a/trezorlib/tests/unit_tests/test_ckd_public.py b/trezorlib/tests/unit_tests/test_ckd_public.py index b6488a7738..7bf100f535 100644 --- a/trezorlib/tests/unit_tests/test_ckd_public.py +++ b/trezorlib/tests/unit_tests/test_ckd_public.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . from ..support import ckd_public diff --git a/trezorlib/tests/unit_tests/test_cosi.py b/trezorlib/tests/unit_tests/test_cosi.py index 63d03d4c9c..e40b5032ae 100644 --- a/trezorlib/tests/unit_tests/test_cosi.py +++ b/trezorlib/tests/unit_tests/test_cosi.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 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 . + import binascii import hashlib import pytest diff --git a/trezorlib/tests/unit_tests/test_nem.py b/trezorlib/tests/unit_tests/test_nem.py index 2662677c69..a630c6712c 100644 --- a/trezorlib/tests/unit_tests/test_nem.py +++ b/trezorlib/tests/unit_tests/test_nem.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 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 . + import binascii from trezorlib import nem diff --git a/trezorlib/tests/unit_tests/test_protobuf.py b/trezorlib/tests/unit_tests/test_protobuf.py index 43e045ba6b..7e1965c834 100644 --- a/trezorlib/tests/unit_tests/test_protobuf.py +++ b/trezorlib/tests/unit_tests/test_protobuf.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 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 . + from io import BytesIO import pytest diff --git a/trezorlib/tests/unit_tests/test_transport.py b/trezorlib/tests/unit_tests/test_transport.py index 9b5c31ab93..43ec16f52c 100644 --- a/trezorlib/tests/unit_tests/test_transport.py +++ b/trezorlib/tests/unit_tests/test_transport.py @@ -1,3 +1,19 @@ +# This file is part of the Trezor project. +# +# Copyright (C) 2012-2018 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 . + import mock from trezorlib.transport import all_transports diff --git a/trezorlib/tests/unit_tests/test_tx_api.py b/trezorlib/tests/unit_tests/test_tx_api.py index 6111b15d83..9a12f56662 100644 --- a/trezorlib/tests/unit_tests/test_tx_api.py +++ b/trezorlib/tests/unit_tests/test_tx_api.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import os diff --git a/trezorlib/tools.py b/trezorlib/tools.py index bb24e9dd63..cd4c556720 100644 --- a/trezorlib/tools.py +++ b/trezorlib/tools.py @@ -1,21 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak -# Copyright (C) 2016 Jochen Hoenicke +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import hashlib import struct diff --git a/trezorlib/transport/__init__.py b/trezorlib/transport/__init__.py index 0aa22a92e9..4dbd369761 100644 --- a/trezorlib/transport/__init__.py +++ b/trezorlib/transport/__init__.py @@ -1,21 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak -# Copyright (C) 2016 Jochen Hoenicke +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import importlib import logging diff --git a/trezorlib/transport/bridge.py b/trezorlib/transport/bridge.py index 4b20780abe..15ded6b1d4 100644 --- a/trezorlib/transport/bridge.py +++ b/trezorlib/transport/bridge.py @@ -1,21 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak -# Copyright (C) 2016 Jochen Hoenicke +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import logging import requests diff --git a/trezorlib/transport/hid.py b/trezorlib/transport/hid.py index 991998a826..8a20c41326 100644 --- a/trezorlib/transport/hid.py +++ b/trezorlib/transport/hid.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import time import hid diff --git a/trezorlib/transport/udp.py b/trezorlib/transport/udp.py index 631cd0a18e..7943a23285 100644 --- a/trezorlib/transport/udp.py +++ b/trezorlib/transport/udp.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import os import socket diff --git a/trezorlib/transport/webusb.py b/trezorlib/transport/webusb.py index 81ea75a713..23e81d5e96 100644 --- a/trezorlib/transport/webusb.py +++ b/trezorlib/transport/webusb.py @@ -1,20 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import time import os diff --git a/trezorlib/tx_api.py b/trezorlib/tx_api.py index 0fd5da8a6f..d407c98bce 100644 --- a/trezorlib/tx_api.py +++ b/trezorlib/tx_api.py @@ -1,21 +1,18 @@ -# This file is part of the TREZOR project. +# This file is part of the Trezor project. # -# Copyright (C) 2012-2016 Marek Palatinus -# Copyright (C) 2012-2016 Pavol Rusnak -# Copyright (C) 2016 Jochen Hoenicke +# Copyright (C) 2012-2018 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 as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# 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 GNU Lesser General Public License -# along with this library. If not, see . +# You should have received a copy of the License along with this library. +# If not, see . import binascii from decimal import Decimal