-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mnemonic wallet recovery does not discover cold/hot-balance #9
Comments
I want to clarify the coins are not lost just not visible to the wallet, using custom technices one can recover the funds. Is the above true also when recovering a hot wallet? |
@dangershony confirmed the above is true for hot wallet. |
I believe the problem is that the wallet tracks the entire cold stake script(that includes the hot and cold key), to recover the cold script an external key is needed (cold/hot depends on what is being recovered) A work around could be to track the key itself, but this means checking each script that comes in to the wallet if it's a CS script then extract the hot/cold key and match that key to a wallet key. |
When recovering a wallet using the mnemonic 12 words, only walletName/account0 gets discovered.
walletName/coldStakingColdAddresses and walletName/coldStakingHotAddresses are not discovered, thus showing no balances and to the user it looks as if they were never set-up before.
Enabling Hot-Staking or Cold-Staking on a newly recovered wallet does not discover the previously used address either. Rescan and full datadir wipe does not help.
Looking at the recovered wallet.json file and comparing it against the original file, we can see that there is no data on the Internal Addresses starting
"index": 10000000;
The only way to safely back-up your cold-staking balance or hot staking wallet is to regularly make a copy of the *.wallet.json, which really defeats the purpose of having a mnemonic recovery.
The text was updated successfully, but these errors were encountered: