MetacoSA / NBitcoin

Comprehensive Bitcoin library for the .NET framework.
MIT License
1.87k stars 846 forks source link

13 word Mnemonic #997

Open bitcoinbrisbane opened 3 years ago

bitcoinbrisbane commented 3 years ago

Im trying to recover some coins for a client who used Electrum circa 2015. According to https://bitcoinelectrum.com/frequently-asked-questions/#why-wont-electrum-accept-my-seed-when-i-attempt-to-restore-my-wallet-from-it Electrum allowed 13 words for a period of time.

Im happy to make a pr with switch to override this logic https://github.com/MetacoSA/NBitcoin/blob/master/NBitcoin/BIP39/Mnemonic.cs#L22

lontivero commented 3 years ago

The so-called 13-world is simply the passphrase. NBitcoin already supports that.

NicolasDorier commented 3 years ago

I think Electrum has another algorithm completely different from BIP39.