GuidesRecovery

Try Liana on signet

Build a throwaway wallet on signet, spend its coins through the recovery path, and delete it afterwards.

Signet coins have no value, so you can rehearse a recovery for free, alone or with the person who would do it. You need Liana installed on each computer that takes part.

Create a signet wallet

Switch the launcher to signet

Start Liana. In the network list at the top right of the launcher, select signet. Liana shows THIS IS A SIGNET WALLET, COINS HAVE NO VALUE at the top of the window.

Start a new wallet

Click Select under Create a new Liana wallet. If Liana already lists signet wallets, select Add wallet first.

Select Simple inheritance

On Choose wallet type, select Simple inheritance, then select Next on the Introduction screen.

Set both keys to one hot key

On Set keys, select Set next to Primary key. In Select key source, select Other options, then Generate hot key stored on this computer (not recommended for a wallet that holds real bitcoin), then Apply. Select Set next to Inheritance key. Select the same key under Already used sources.

Rehearsing with your signing devices?

Select your signing devices under Detected devices instead. Most need their test-network app or setting first, which your device's page in Signing devices covers. Without it, Liana shows an error such as Failed to fetch key. Switch network on device and retry. With no device at hand, Liana also detects two emulators running on the same computer: Ledger's Speculos on port 9999, and the Specter DIY simulator on port 8789.

Shorten the timelock

Select the duration next to Available after inactivity of ~, which reads 1y. In the field next to blocks, enter 6 in place of 52596, then select Apply. The path now reads 1h.

For a rehearsal with someone else, enter 144 blocks (about 1 day) instead, so they have time to act. Select Next.

Back up the seed phrase and the descriptor

The 12 words protect nothing of value here, so tick I have backed up my seed phrase and select Next.

On the next screen, select Back up descriptor and keep the encrypted descriptor file that Liana saves. Whoever recovers the wallet needs it. Tick I have backed up my descriptor and select Next.

Select the backend your real wallet uses

On Choose backend, click Select under the option your real wallet uses, so the rehearsal matches it:

  • Use Liana Connect: Log in with an email address. Liana installs no Bitcoin Core.
  • Use your own node: On Bitcoin node management, click Select under I want Liana to automatically install a Bitcoin node on my device. Liana downloads Bitcoin Core if needed, then syncs signet.

Choose a backend describes both screens.

Finish the setup

Name the wallet and let Liana finish, as Finish the setup describes.

Receive signet coins

Generate an address

Select Receive, then Generate address. A signet address starts with tb1.

Request coins

Paste the address into a public signet faucet, or ask for signet coins in the Liana Telegram group or on the Liana Discord.

Spend the coins through the recovery path

The recovery path can spend the coin once the coin has 6 confirmations, about 1 hour after you receive it, because its timelock counts from the block that confirms it. Follow Recover in Liana, with the hot key as the recovery key and a new address of this wallet as the destination. Liana warns that the recovery address belongs to the same wallet. On signet, sign and broadcast anyway.

If Recovery shows No recovery path is currently available., wait until the coin has 6 confirmations.

Rehearse with the person who would recover

Get their key

On their Liana, with signet selected, they select Share xpubs, then their signing device. For a hot key instead, they select Generate a new seed phrase (not recommended for a wallet that holds real bitcoin), write down the 12 words, and tick I have backed up the seed phrase, show the extended public key. Then they select Export and send you the file.

Build the wallet with their key

Follow Create a signet wallet, with a timelock of 144 blocks. For the Inheritance key, select Other options, then Import extended public key file (xpub), open their file, name the key, and select Apply.

Hand over the descriptor

Receive signet coins, then send them the descriptor file. They add the wallet as Claim an inheritance describes. With a hot key, they enter its 12 words on Import seed phrase, as in Restore the hot key.

Let them recover alone

Once the timelock expires, they follow Recover in Liana without your help.

To play both roles on one computer, start a second Liana on its own data directory. Liana creates the folder when you start a wallet in it.

liana-gui --datadir ~/liana-heir --signet

Clean up

Your mainnet wallets share the data directory

Delete only the two signet folders below. The data directory also holds your mainnet wallets and the seed phrase files of their hot keys.

Delete the wallet

On the launcher, with signet selected, delete the wallet. On Liana Connect, tick Also permanently delete this wallet from Liana Connect (for all members). before you select Delete wallet.

Delete the signet folders

Close Liana, which stops the Bitcoin Core it runs. If you keep no other signet wallet, delete these two folders:

~/.liana/signet
~/.liana/bitcoind/datadir/signet

Set up only for this rehearsal?

A folder you created with --datadir holds only the rehearsal, so delete all of it. If you installed Liana only for the rehearsal, delete the file you downloaded, or uninstall the package.

Next steps