From 8c6ed703897c697bc6610364a95481246766b1e7 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Wed, 20 Nov 2024 10:39:52 +0100 Subject: [PATCH] fixup! fixup! refactor(core): abstract cache and context [no changelog] --- core/src/storage/cache_common.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/core/src/storage/cache_common.py b/core/src/storage/cache_common.py index e53b09e433..9026753be5 100644 --- a/core/src/storage/cache_common.py +++ b/core/src/storage/cache_common.py @@ -14,14 +14,6 @@ if not utils.BITCOIN_ONLY: APP_CARDANO_ICARUS_TREZOR_SECRET = const(6) APP_MONERO_LIVE_REFRESH = const(7) -# Cache keys for THP channel -if utils.USE_THP: - CHANNEL_HANDSHAKE_HASH = const(0) - CHANNEL_KEY_RECEIVE = const(1) - CHANNEL_KEY_SEND = const(2) - CHANNEL_NONCE_RECEIVE = const(3) - CHANNEL_NONCE_SEND = const(4) - # Keys that are valid across sessions SESSIONLESS_FLAG = const(128) APP_COMMON_SEED_WITHOUT_PASSPHRASE = const(0 | SESSIONLESS_FLAG) @@ -44,7 +36,7 @@ class InvalidSessionError(Exception): class DataCache: - fields: Sequence[int] + fields: Sequence[int] # field sizes def __init__(self) -> None: self.data = [bytearray(f + 1) for f in self.fields]