Backup wallet randomness

⚓ Neptune    📅 2025-03-19    👤 sword_smith    👁️ 68      

sword_smith

While much effort is being put into making all funds recoverable from the seed word, it’s a lot safer to backup the seed word in combination with the wallet’s incoming randomness. This incoming randomness is extra cryptographic data that is required to spend the wallet’s UTXOs.

I just added a script to the neptune-core repo that uses rsync to backup wallet files to a remote server. The script assumes that you have also stored your seed phrase, which is contained in wallet.dat.

Have a look at the script scripts/linux/backup-neptune-core-randomness.sh.

To clarify: I recommend only backing up incoming_randomness.dat and outgoing_randomness.dat like this. The seed word list (content of wallet.dat) should be backed up in another way, the same way you back up your other blockchain seed phrases.

🏷️ backup 🏷️ wallet

sword_smith    2025-03-20 👍 👎 [op]

Here’s the command you want to use if you’re on Linux.

rsync -av --backup --suffix=_$(date +'%Y-%m-%d_%H-%M-%S') \
      --backup-dir=~/neptune-core-mainnet-randomness-backup/<machine-id>/$(date +'%Y-%m-%d') \
      ~/.local/share/neptune/main/wallet/incoming_randomness.dat ~/.local/share/neptune/main/wallet/outgoing_randomness.dat <user>@<remote-server>:~/neptune-core-mainnet-randomness-backup/<machine-id>/
1