1
0

keystore: "old"-type seeds cannot have a passphrase

related: https://github.com/spesmilo/electrum/pull/8906
This commit is contained in:
SomberNight
2024-02-21 14:30:13 +00:00
parent da1727b2f7
commit 96f28607f2
2 changed files with 4 additions and 2 deletions

View File

@@ -1159,6 +1159,8 @@ def purpose48_derivation(account_id: int, xtype: str) -> str:
def from_seed(seed, passphrase, is_p2sh=False):
t = seed_type(seed)
if t == 'old':
if passphrase:
raise Exception("'old'-type electrum seed cannot have passphrase")
keystore = Old_KeyStore({})
keystore.add_seed(seed)
elif t in ['standard', 'segwit']: