1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-21 23:18:13 +00:00

chore(python): regenerate GNU copyright headers

This commit is contained in:
matejcik 2021-11-26 15:50:43 +01:00 committed by matejcik
parent 8f32e0ba05
commit 38fca4a83d
76 changed files with 344 additions and 60 deletions

View File

@ -1,4 +1,21 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2022 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import os import os
from typing import Iterable, List from typing import Iterable, List

View File

@ -1,5 +1,21 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2022 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import os import os
from typing import List from typing import List

View File

@ -1,5 +1,21 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2022 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import glob import glob
import os import os
import sys import sys

View File

@ -1,4 +1,21 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2022 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import os.path import os.path
import re import re

View File

@ -1,3 +1,19 @@
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2022 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
__version__ = "0.13.0" __version__ = "0.13.0"
# fmt: off # fmt: off

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,3 +1,19 @@
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2022 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import struct import struct
from enum import Enum from enum import Enum
from hashlib import blake2s from hashlib import blake2s

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -2,7 +2,7 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3
@ -14,7 +14,6 @@
# You should have received a copy of the License along with this library. # You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>. # If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
if TYPE_CHECKING: if TYPE_CHECKING:

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3
@ -13,6 +13,7 @@
# #
# You should have received a copy of the License along with this library. # You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>. # If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
from decimal import Decimal from decimal import Decimal
from typing import TYPE_CHECKING, List, Tuple, Union from typing import TYPE_CHECKING, List, Tuple, Union

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,3 +1,19 @@
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2022 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import struct import struct
import zlib import zlib
from dataclasses import dataclass from dataclasses import dataclass

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2021 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3
@ -13,6 +13,7 @@
# #
# You should have received a copy of the License along with this library. # You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>. # If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import pytest import pytest
from stellar_sdk import ( from stellar_sdk import (
Account, Account,

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2019-2020 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,6 +1,6 @@
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,7 +1,8 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# This file is part of the Trezor project. # This file is part of the Trezor project.
# #
# Copyright (C) 2012-2019 SatoshiLabs and contributors # Copyright (C) 2012-2022 SatoshiLabs and contributors
# #
# This library is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Lesser General Public License version 3

View File

@ -1,5 +1,21 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2022 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import os import os
import sys import sys
from typing import Any, Optional from typing import Any, Optional

View File

@ -1,4 +1,21 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2022 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
""" """
Use Trezor as a hardware key for opening EncFS filesystem! Use Trezor as a hardware key for opening EncFS filesystem!

View File

@ -1,5 +1,21 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2022 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import sys import sys
from typing import BinaryIO, TextIO from typing import BinaryIO, TextIO

View File

@ -1,4 +1,21 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2022 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
from trezorlib import btc from trezorlib import btc
from trezorlib.client import get_default_client from trezorlib.client import get_default_client
from trezorlib.tools import parse_path from trezorlib.tools import parse_path

View File

@ -1,4 +1,21 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2022 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import sys import sys
from trezorlib.debuglink import DebugLink from trezorlib.debuglink import DebugLink

View File

@ -1,4 +1,21 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2022 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import sys import sys
from trezorlib.debuglink import DebugLink from trezorlib.debuglink import DebugLink

View File

@ -1,4 +1,21 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2022 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import sys import sys
from trezorlib.debuglink import DebugLink from trezorlib.debuglink import DebugLink

View File

@ -1,4 +1,21 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2022 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import hashlib import hashlib
import mnemonic import mnemonic

View File

@ -1,4 +1,21 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2022 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import hashlib import hashlib
import hmac import hmac
import json import json

View File

@ -1,4 +1,21 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# This file is part of the Trezor project.
#
# Copyright (C) 2012-2022 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the License along with this library.
# If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
import configparser import configparser
import os import os
import re import re