What exactly are those numbers after m/? That also means,
Storing the seed phrase (and optionally the passphrase) isn’t enough. You need to also store/remember those weirdo parameters, or use a sequential scheme. Maybe this is actually standard practice, but I haven’t seen absolutely anything in the docs about this.
There seems to be no way to derive all the keypairs you’ve used based on a given seed phrase. You need to store/remember them/use a sequence and remember its end. And not run over 44?
Yes the sequential scheme is to increment the 3rd number from the left, starting at zero and going up. It can go to a very high number, at least 99999999, but that was just as high as I tested on the CLI by trial and error.
This scheme is defined by the BIP-0044 proposal and is implemented in the Sollet wallet, when you use the “Add Account” button.
Again, the 44 isn’t actually a limit, it can go very high, but there isn’t a specific way to know all of the accounts that you’ve generated from a seed phrase. As far as anything can tell cryptographically, they are all totally unrelated accounts ( which is important for privacy ) and you just happen to be able to get their public and private keys by deriving them from your seed phrase.
The only way to know which derivations you’ve actually used is to just go one by one up the list in sequence and check the balances. By the convention in BIP-0044, wallets are supposed to automatically discover all accounts derived from a wallet by going up that sequence starting at zero and assuming that there are no more wallets once the reach 20 derived addresses in a row that all have a balance of 0.
Hi Zicklag, thanks for your support here so far. am also having the same issue. I was trying to build a minting engine on solana. I created the wallet with solana keygen and I transfereed funds from binance to the wallet address. Now, when I was editing the code, I mistakenly edit one of my private keys which I couldn’t undo.
so since then, I’ve been trying to recover my funds from my seed phrase but doesn’t get how to do it. I have put in my seed phrase in the sollet but it’s not popping up my wallet address. but when I tried the solana-keygen pubkey ASK, it confirmed my wallet address path.
but when I type in solana balance, it’s giving me error message since I’ve made changes to the private key which I don’t remember
Error: Dynamic program error: No default signer found, run “solana-keygen new -o ~/config/solana/devnet-test.json” to create a
is there anything to be done to get my funds back please?
This will prompt you for your seed phrase and it will output your private key to ~/config/solana/devnet-test.json. I’m guessing that’s the place you want the file from the error message above, but if it isn’t, just change that path to tell Solana where to put the private key file.
Hope that helps!
If this post helped you I’d really appreciate a tip, no matter how small, in whatever Solana or SPL tokens you prefer. It will help me spend time helping people on this forum and learning more about crypto. My wallet address is 9ftYTyetEXtLtDkhfRF8bCWGfKZqiYmx2HDZDTogZh6A . Thanks!