do not allow empty BIP-39 passphrase over USB

This commit is contained in:
scgbckbone 2025-09-24 22:40:58 +02:00 committed by doc-hex
parent 52e7c75539
commit 91f10c2f35

View File

@ -589,6 +589,7 @@ class USBHandler:
assert settings.get("words", True), 'no seed'
assert len(args) < 400, 'too long'
pw = str(args, 'utf8')
assert len(pw), 'too short'
assert len(pw) < 100, 'too long'
return start_bip39_passphrase(pw)