I need a python script to verify, in an air gapped system, that my 24-word (or 12-word) mnemonic seed indeed generates the xpub that my wallet is showing me.
Is there a simple script that does that, having minimal dependencies?
based on the answer below using https://github.com/trezor/python-mnemonic, I did
def main() -> None: import sys m = Mnemonic("english") seed = Mnemonic.to_seed("my 12 words") pubkey = Mnemonic.to_hd_master_key(seed) print(pubkey)
but I get
and no pubkey.
How do I get the master pub key?