sensei icon indicating copy to clipboard operation
sensei copied to clipboard

backup / recovery flows

Open johncantrell97 opened this issue 3 years ago • 3 comments

currently there is no backup or recovery flows. need to review and brainstorm how this should work. I'd like to support multiple options for backup (filesystem, cloud (google drive / dropbox / etc), photon?, synonum backpack?).

before supporting multiple backup options it probably makes sense to handle recovery.

I like what bluewallet has done where they encrypt the backup with your mnemonic so that you can recover your backup and on-chain funds with a single mnemonic.

johncantrell97 avatar Feb 08 '22 01:02 johncantrell97

as a first rudimentary recipe backup one could use rsync

have a interval or watch encrypt to a backupthis-folder that in turn rsync to a remote

i se this as a parallel running micro-service rust-app that has watch and trigger

xraid avatar Feb 09 '22 11:02 xraid

yeah that could be an option. most of these issues are just placeholders with ideas not fully fleshed out.

we don't even currently expose the mnemonic used, that's probably the easiest first step. from there a recovery flow would be a good next step. finally adding some alternative encrypted backup options

johncantrell97 avatar Feb 09 '22 11:02 johncantrell97

HelloLightning (BlueWallet kotlin LDK Node) writes mnemonic seed to disk, i find that good !?, maybe extend with a .env variable PIN ie.

export MNEMONIC_PIN=xxxxxx

and have system encrypt mnemonic to disk where also with the help of script be able decode mnemonic.disk using PIN

xraid avatar Feb 09 '22 11:02 xraid