# 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 . from . import models V1_SIGNATURE_SLOTS = 3 ONEV2_CHUNK_SIZE = 1024 * 64 V2_CHUNK_SIZE = 1024 * 128 # === KEYS KEPT FOR COMPATIBILITY === # use `trezorlib.firmware.models` directly V1_BOOTLOADER_KEYS = models.TREZOR_ONE_V1V2.firmware_keys V2_BOARDLOADER_KEYS = models.TREZOR_T.boardloader_keys V2_BOARDLOADER_DEV_KEYS = models.TREZOR_T_DEV.boardloader_keys V2_BOOTLOADER_KEYS = models.TREZOR_T.bootloader_keys V2_BOOTLOADER_DEV_KEYS = models.TREZOR_T_DEV.bootloader_keys V2_SIGS_REQUIRED = models.TREZOR_T.boardloader_sigs_needed