LearnThe idea

Liana in brief

Liana adds keys that can spend only after a wait Bitcoin enforces, and coordinates your signing devices without holding their keys.

A Bitcoin wallet has to survive two opposite failures: a key that falls into the wrong hands, and a key that nobody can use anymore.

Classic wallets leave inheritance to a trusted third party

With a single key, one secret spends everything. To survive losing the original, you keep a backup. That backup is another complete spending key that a thief can find.

A multisig spreads that risk across several keys. In a 2-of-3, any two of the three keys can spend, so losing one does not stop you. Each key is still a live spending key that you must guard as one. If you lose two, the bitcoin is gone.

Inheritance breaks both models. Your heir must not hold enough keys to spend while you are alive. So someone else, often a lawyer or a custodian, keeps the missing key and hands it over after your death. You trust that this party still exists when the time comes, acts when it should, and never acts before.

Three classic wallets side by side, a single key with its backup, a 2-of-3 multisig, and a 2-of-3 inheritance setup shared by you, a third party and your heir, each shown with the point where it breaks.

Liana replaces the third party with a wait

Every Liana wallet has one primary spending path and at least one recovery path. The primary spending path can spend at any time. It is your key, or several keys in a multisig. A recovery path is another key, or set of keys, that can spend a coin only once that coin has stayed unspent for a wait you set.

Take a wallet where you hold the primary key and your heir holds a recovery key with a wait of 52,596 blocks (about 1 year). As long as you move each coin within that wait, your heir's key cannot move it. If you stop moving your coins, the wait runs out about a year later. Your heir can then spend with their key, without yours. Nobody has to hand a key over. A spare key of your own, stored far from the first, works the same way.

One coin in a Liana wallet, locked under two paths at once: your key can spend it at any time, your heir's key only after 52,596 blocks (about 1 year) without the coin moving.

Bitcoin, not Liana, enforces the wait, coin by coin, as the Timelocks page explains. To keep a recovery path closed, you refresh your coins before their wait runs out. To decide who holds which key and how long each wait lasts, follow Choose a policy. To give an heir their key, follow Set up inheritance.

Your signing devices hold the keys, not Liana

Liana is a watch-only coordinator. It sees and organizes your wallet but cannot sign for it, except with a hot key. It works from your descriptor, one line of text that records the policy and the xpub of every key. From it, Liana generates your addresses, follows your coins and the wait on each one, and builds every transaction as a PSBT.

Your signing devices hold the private keys. Liana imports the xpub of each key when you create the wallet. To spend, Liana passes the PSBT to the signing devices the spend needs. Each one signs once you confirm on it. Liana then broadcasts the signed transaction.

Malware on the computer that runs Liana therefore cannot sign with the keys on your signing devices. It can still mislead you, as the Threat model page explains.

A seed phrase records a key and nothing about the policy. Your seed phrases alone therefore cannot restore the wallet. Back up the descriptor as well as every seed phrase, as Back up your wallet shows.

Four parts, and where each one runs

PartWhere it runsWhat it does
liana-guiYour computer, on Linux, macOS, or WindowsThe window you open: the installer and the wallet screens. It talks to your signing devices over USB, or exchanges PSBT files with them.
lianadInside liana-gui, or on its own on Linux and macOSThe wallet engine. It keeps the descriptor and a database of your coins, generates addresses, builds PSBTs, and talks to the backend.
The backendYour computer, another machine, or Wizardsardine's serversBitcoin Core, an Electrum server, or Liana Connect. It reports what happens on-chain and broadcasts your transactions. It never receives a private key.
Signing devicesIn your handsThey hold the private keys and sign.
What runs where in Liana: signing devices with the private keys in your hands, liana-gui with lianad inside it on your computer, and a backend (Bitcoin Core, an Electrum server, or Liana Connect) that never receives a private key.

On Linux and macOS, the release also ships lianad and liana-cli. Started on its own, lianad runs headless and answers JSON-RPC calls over a Unix socket, for example from liana-cli. When liana-gui opens a wallet and a lianad already answers on lianad_rpc in the wallet's folder, liana-gui connects to that lianad instead of starting its own. Run lianad covers that setup.

On Windows, the release contains liana-gui only. lianad can only run inside it there, because its JSON-RPC server exists only on Unix systems.

With Liana Connect, no lianad runs on your computer. Wizardsardine's service tracks your coins, builds the PSBTs, and broadcasts the signed transactions. liana-gui talks to it over HTTPS. Your signing devices still sign. To pick a backend, follow Choose a backend.

Next steps

To build a wallet from these parts, follow Create your first wallet. To understand the wallet itself first, read these pages in order.