1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

core/cache: use different default value for passphrase_fprint

This commit is contained in:
Pavol Rusnak 2019-05-13 15:46:23 +02:00
parent f1c34701b8
commit 7fe09e52bd
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -4,7 +4,7 @@ from apps.common import storage
_cached_seed = None
_cached_passphrase = None
_cached_passphrase_fprint = None
_cached_passphrase_fprint = b"\x00\x00\x00\x00"
def get_state(prev_state: bytes = None, passphrase: str = None) -> bytes:
@ -38,7 +38,7 @@ def get_passphrase():
def get_passphrase_fprint():
return _cached_passphrase_fprint or ""
return _cached_passphrase_fprint
def has_passphrase():