It appears to me that the encryption module might be corrupted and is therefore not signing with the right kind of keys despite having them associated somewhere in the DB. I've been racking my brain with this for months, if anyone can help, there's significant funds in it and I will gladly give you a fat percent of them if you can help me free them finally (I've wasted hundreds of hours on this frustrating issue.)
It's actually decrypted master private key that doesn't match with the wallet's master public key
.,If there's an issue with the encryption module, this will be an issue of the majority of Electrum users.
If this isn't caused by manual modification of the wallet (
which is 90% of the case),
It could be caused by a bug in the old version with some unreliable file systems where an xpub of another wallet might get mixed up with another.
Ref:
github.com/spesmilo/electrum/issues/5082If it's the latter, I'm afraid that there's nothing you can do but to restore the correct seed phrase.