Using Incognito SDK,
I create wallet:
const wallet = new WalletInstance();
await wallet.init('my-passphrase', 'TEST-WALLET');
I back up wallet:
const backupWalletString = wallet.backup('backup-password');
I import an account:
const importedAccount = await wallet.masterAccount.importAccount('Imported account', 'ABCDEF');
Again I back up wallet:
const backupWalletString2 = wallet.backup('backup-password');
After this, backupWalletString and backupWalletString2 are not the same. Once we add/import another account, backup string changes. This is reasonable.
However, I couldn’t understand why mnemonic exists in the wallet initialization. We use backup string to restore the wallet. Then, what is the functionality of mnemonic in Incognito SDK? Is there any way to restore the wallet by just using mnemonic? Does it remain in SDK incorrectly?
Thanks for help.