do not allow empty BIP-39 passphrase over USB

This commit is contained in:
scgbckbone 2025-09-24 22:40:58 +02:00
parent 76d4e53b67
commit 041f803155

View File

@ -637,6 +637,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)