thank you. this is the perfect choice for me. Here is the problem with the implementation.
I generate BIP39
Why exactly are you trying to use a BIP39 seed phrase as an Electrum seed phrase? You are adding unnecessary confusion. Electrum checks that any seed phrases it generates aren't accidentally also valid BIP39 seed phrases, and discards them if they are.
need to do
normalized = prepare_seed(seed_phrase)
The normalization function (prepare_seed) removes all but one space between words.
what space to leave is not written anywhere (
The normalize function is defined here:
https://github.com/spesmilo/electrum/blob/6650e6bbae12a79e12667857ee039f1b1f30c7e3/electrum/mnemonic.py#L79