Choose a policy
Match an installer template to what you want to survive, then set its keys, thresholds, and timelocks.
You will need
- The installer open: If a wallet is open, select the plus icon at the end of the tab bar to reach the launcher. On the launcher, select Add wallet if Liana already lists a wallet, then click Select under Create a new Liana wallet.
- A source for every key: A signing device for each key you hold, with its seed phrase written down. An xpub for each key that someone else holds, such as your heir's.
Match a template to what you want to survive
| Template | Keys | It covers | It leaves open |
|---|---|---|---|
| Simple inheritance | 2 | Your death, or the loss of your key. The second key, an heir's or a spare of your own, spends after the timelock. | A thief who gets your primary key can spend at once. |
| Expanding multisig | 3 | The theft of one key, and the loss of one key. Spending takes two keys, before and after the timelock. | Every payment needs two signing devices. |
| Build your own | Your choice | What the other two do not: several heirs, staged timelocks, or a threshold you set on a recovery path. | You check every path yourself. |
For a custom policy, start from the closest template anyway. On Set keys, Customize turns it into Build your own and keeps the keys you set. The Wallet policies page shows each template path by path. The Threat model page covers each loss in turn.
Select the template
Select a template
On Choose wallet type, select Simple inheritance, Expanding multisig, or Build your own. Liana opens the template's Introduction screen.
Open the Set keys screen
Select Next. Set keys lists the primary spending path first, then each recovery path with its timelock.
Pick the descriptor type
At the top of Set keys, Descriptor type shows the script type of the new wallet. Select the arrow next to it to see both options:
- Taproot (recommended): The default Requires Liana 16.0+. A recovery path that nobody uses never appears on the blockchain. Every signing device of the wallet must support Taproot Miniscript.
- Segwit: A P2WSH wallet. It needs no Taproot support from your signing devices.
Under Taproot (recommended), Liana keeps Next unavailable while a key comes from a device that cannot sign for it. The key's card shows why:
| Message on the key | What to do |
|---|---|
Update firmware to … or later to use Taproot. | Update the firmware of that device, or select Segwit. |
This device doesn't support Taproot. Switch to Segwit or use another device. | Select Segwit, or use another device. A Blockstream Jade, for example, shows this message. |
Liana cannot check the device behind an imported xpub, such as your heir's. It
shows an info icon next to that key, with the tooltip
Use with a Taproot-compatible device. Keep Taproot (recommended) only if
that device supports Taproot too. The support
matrix on Signing devices shows which devices do.
The Privacy page compares what each script type publishes.
Add a key for each spending path
Select Set next to a key.
Liana opens Select key source, which lists two kinds of key directly:
- Detected devices: A connected and unlocked signing device.
- Already used sources: A key you added to another path of this wallet.
The other sources sit under Other options:
- Import extended public key file (xpub): An xpub that a signing device exported to a file.
- Paste an extended public key (xpub): An xpub that someone sent you as text, such as your heir's.
- Generate hot key stored on this computer: A hot key (not recommended for a wallet that holds real bitcoin) that Liana generates and keeps on this computer, one per wallet.
- Enter a Cosigner token: A key held by a professional cosigner Requires Liana 15.0+. Give its path at least one key that is not a cosigner key.
Before you use an xpub that someone else sent you, as a file or as text, check it with them. A swapped xpub puts someone else's key in your wallet.
The xpub comes from other wallet software?
Take each xpub from a signing device. Liana signs only with a signing device or a hot key. A key whose seed phrase stays in other wallet software signs only outside Liana, as Sign with the seed phrase in Bitcoin Core shows.
Enter a name under Key name (alias):, for example My Ledger. For a
signing device, keep Account #0 under Key path account: unless the
device already holds a key in another wallet, as
Manage several wallets explains. Then select
Apply.
Want to change a key you set?
Select Edit next to it. Change the name and select Apply, or select Replace to use another source.
Set the timelock of each recovery path
Each recovery path starts at 52,596 blocks (about 1 year), which Liana shows
as 1y next to Available after inactivity of ~. The timelock sets how
soon the keys of the path can spend, and how often you move your coins:
| Timelock | What it means for you |
|---|---|
| 52,596 blocks (about 1 year), the default | Spend or refresh each coin at least once a year. After a loss, the recovery path opens on a coin about a year after it last moved. |
| 26,298 blocks (about 6 months) | The recovery path opens sooner after a loss, and you refresh twice as often. |
| Under 4,383 blocks (about 1 month) | You refresh every few weeks. Keep it for tests. |
| 65,535 blocks (about 1 year and 3 months) | The longest a relative timelock can be. |
After the timelock, the recovery keys spend without you
Once a coin has stayed unspent for the whole timelock, the keys of that recovery path can move it on their own. Set a timelock longer than your longest stretch without spending, or refresh your coins before it runs out.
Open the timelock editor
Select the duration next to Available after inactivity of ~. Liana opens the timelock editor.
Enter the number of blocks
Enter the number in the field next to blocks, for example 26298, or move
the slider. Liana shows the matching duration under the field.
Apply the timelock
Select Apply. The recovery path shows the new duration.
Set how many keys must sign
Simple inheritance and Expanding multisig fix the number of signatures. Under Build your own, you set it for each path:
Add a key to the path
Select Add key under the path. Liana adds an empty key and raises the
threshold by one, so a path with two keys starts at 2 out of 2 keys.
Open the threshold editor
Select the button that shows the threshold, such as 2 out of 2 keys.
Set the threshold
Select the up or down arrow until the value under Threshold: shows how many keys must sign. Then select Apply.
To remove a key, select the cross next to it. Removing the last key of a recovery path removes the path.
Add a recovery path for each other situation
Under Build your own, each extra path covers another person or another wait.
Select Add recovery path, and Liana adds Recovery path #2: with its own
keys, threshold, and timelock. It starts at 52,596 blocks (about 1 year), so
give it a timelock that no other recovery path uses. If two recovery paths
share one, Liana shows
No two recovery paths may become available at the very same date. under
both and keeps Next unavailable.
For example, I give a spare key of my own 26,298 blocks (about 6 months), and my heir's key 52,596 blocks (about 1 year).
Check the policy before you continue
Once every key shows a check mark, select Next. Liana shows
Back up your wallet configuration (descriptor), after
Back up your seed phrase if you generated a hot key. Under
The wallet policy:, check the line of each path, such as
1 signature by Spare key can spend coins inactive for 26298 blocks (~6m) (recovery path #1).
If a line is not what you intended, select Previous until Set keys reappears, then fix the path. Once Liana creates the wallet, changing the policy takes a new wallet and moving every coin to it. Back up your wallet covers the backup screens that follow.