mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
core/cache: fix setting of None passphrase
This commit is contained in:
parent
35945239eb
commit
00564f4a1c
@ -53,7 +53,7 @@ def set_seed(seed):
|
||||
def set_passphrase(passphrase):
|
||||
global _cached_passphrase, _cached_passphrase_fprint
|
||||
_cached_passphrase = passphrase
|
||||
_cached_passphrase_fprint = _compute_state(b"FPRINT", passphrase)[:4]
|
||||
_cached_passphrase_fprint = _compute_state(b"FPRINT", passphrase or "")[:4]
|
||||
|
||||
|
||||
def clear(skip_passphrase: bool = False):
|
||||
|
Loading…
Reference in New Issue
Block a user