Ad

How Do You Create A 12 Or 24 Mnemonics Code For Multiple Cryptocurrencies (ETH, BTC And So On..)

I just started using Flutter and I am trying to create a crypto wallet app that can support multiple different cryptocurrencies. The current issue I am facing is, is that I don't know how a mnemonics code is being generated for different cryptocurrencies when trying to create a backup for multiple wallets. I am using this library btw: https://pub.dartlang.org/packages/bip39

Any help would be much appreciated!

Ad

Answer

You can use one mnemonic code for all cryptocurrencies. As you can see in the library documentation you linked, you use the mnemonic code to get a wallet seed. That wallet seed is then used to create a HD wallet.

That single HD wallet can have many different cryptos. You differentiate between them by following the scheme in BIP44. In the accompanying SLIP44 there's a list of what HD wallet constants each currency uses.

Ad
source: stackoverflow.com
Ad