mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 07:18:09 +00:00
core/cache: use different default value for passphrase_fprint
This commit is contained in:
parent
f1c34701b8
commit
7fe09e52bd
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user