You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
245 B

#!/usr/bin/env python3
from electrum import keystore
import sys
mnemonic = ' '.join(sys.argv[1: ])
if not keystore.bip39_is_checksum_valid(mnemonic)[0]:
sys.exit(1)
k = keystore.from_bip39_seed(mnemonic, "", "m/84'/0'/0'")
print(k.xprv)