I'm in the process of studying testing my wallet restore procedure and I'm wondering if I need to go the whole nine yards and test spending, or if just verifying that the same addresses are formed is enough.
Can anyone with experience in this area chime in and let me know what's considered best practice? Is it sufficient to just test that the addresses are correctly generated, or should I also test sending and receiving funds to ensure the restore process is working as expected?
You don't have to spend valuable sats just for testing a wallet. You can use the sign message with a specific address and is the same as sending sats. Sending few sats just for "testing a wallet" is stupid and wasteful.
reply
No. If you get the same addresses, the restore was successful.
reply
I would test spending. Just because.
And also when I last tried in Sparrow to sign a message it was confusing, not intuitive at all. Doing a small spend is much more straightforward, and it's the gold standard.
reply
As you are learning, I suggest you test a complete workflow. After setting up the cold wallet, from a wallet where you have some sats send it a small amount (~10K), then wipe the cold wallet, restore it and send the sum back to the original hot wallet. If all works your setup is fully operative and you can start to send what you want to the cold wallet. Mempool is currently quite empty, it's a good moment to do this sort of test.
reply