DevicesLedger

Flex

Set up a Ledger Flex for Liana, register the descriptor on it, verify an address, and sign on its touchscreen.

A Ledger Flex seen from the front: a touchscreen above a metal band at the foot of the device.

You will need

  • Setup: A Flex that already has its PIN and seed phrase. Ledger's Set up your Ledger secure touchscreen device covers that part.
  • Ledger Wallet: Ledger's desktop program (formerly Ledger Live), to install and update the Bitcoin app. See Download and install Ledger Wallet.
  • Cable: The USB-C to USB-C cable from the box, or another USB-C data cable, plugged into a USB-C port of the computer.

Prepare the Flex

Install the Bitcoin app

In Ledger Wallet, select the profile icon, then My Ledger. Connect and unlock the Flex, then tap Allow on it to allow My Ledger. Find Bitcoin in the App catalog and select Install. Ledger's Install, uninstall and update apps covers each screen.

Update the Bitcoin app

When My Ledger offers updates, select Update all, then check the version against the table on the Ledger page.

Install Bitcoin Test for a test network (optional)

Skip this step on mainnet. On signet, testnet, or regtest, turn on Developer mode in Ledger Wallet's Settings > Experimental features, then install Bitcoin Test from the App catalog. The Ledger page explains why each network needs its own app.

Connect to Liana

Connect and unlock the Flex

Plug the Flex into the computer with the cable. If it is off, press and hold the button on its right side for one second. Enter your PIN on the touchscreen.

Open the Bitcoin app

Open Bitcoin on the Flex, or Bitcoin Test on a test network. Bitcoin Test shows its name as Bitcoin Testnet.

Ledger Flex home screen of the Bitcoin app, with the Bitcoin logo, a settings button, and Quit app.
The Bitcoin app is open and waits for Liana.

Quit Ledger Wallet

Quit Ledger Wallet and any other wallet software that can reach the Flex, as the Ledger page explains.

Find the Flex in Liana

Liana looks for devices every two seconds. In the installer's Select key source window, it lists the Flex under Detected devices as a Ledger with the version of the Bitcoin app, such as Ledger 2.5.1. Select it to add its key. Liana reads the key without asking you to confirm on the Flex.

In the windows where you register, verify, and sign, Liana lists the Flex under the name of its key, with its type and fingerprint below, such as ledger #f5acc2fd.

Register the descriptor

Register the descriptor on every Ledger that holds a key of the wallet, including one that holds only a recovery key, as the Ledger page explains.

Open the registration screen

When you create a wallet, Liana shows the Register descriptor screen after the descriptor backup. When you add an existing wallet from its descriptor, it shows the same screen. Later, go to Settings > Wallet and select Register on device.

Select the Flex

Connect the Flex with the Bitcoin app open, then select it in the list. Liana shows Processing, please check your device while the Flex displays the registration.

Check the account on the Flex

The Flex opens on Review account to register. Swipe, or tap the arrow at the bottom right, to move through the pages. Where a value is cut short, tap More to read all of it. Check each page against your descriptor:

  • Account name: Liana- followed by the descriptor's checksum, the eight characters after the # at the end of the descriptor. Liana shows the descriptor under Wallet descriptor: in Settings > Wallet.
  • Descriptor template: The descriptor with each key replaced by @0, @1, and so on. The number in older() is the recovery path's timelock in blocks, such as older(52596).
  • Review co-signer public keys: A page that opens the list of keys.
  • Internal key and External key: Internal key is the Flex's own key. External key is each other key. Both carry the number the template uses, such as Internal key@0. Each starts with its fingerprint, such as [f5acc2fd/48'/0'/0'/2'].

In some Taproot wallets, a key that Liana adds on purpose and that no one can sign with shows as Unspendable key. With Bitcoin app 2.5.0 or later, some Taproot wallets also get pages that describe the spending paths in words, such as Primary spending path and Spending path #1. These pages come between Account name and Descriptor template.

Ledger Flex registration page 4 of 6 showing Internal key@0 with fingerprint f5acc2fd, its derivation path and its xpub.
The Flex labels the key it holds Internal key, here Internal key@0. Check each fingerprint against your descriptor.

During wallet creation, Liana's Register descriptor screen shows the same Descriptor template and each Key @0:, Key @1:, and so on.

Approve the registration

On the last page, Register account?, tap Approve. The Flex shows Account registered. Liana marks the Flex with a check mark, or with Registered when you register from Settings.

To refuse, tap Reject at the bottom left, then Yes, reject. Liana shows no error. You can select the Flex again.

Ledger Flex screen asking Register account?, with an Approve button and Reject at the bottom left.
On the last page, tap Approve to register the descriptor, or Reject to refuse it.

Finish the installer step

When you create a wallet, tick I have registered the descriptor on my device(s), then select Next. When you add an existing wallet, select Next.

Register again after the descriptor changes, for example after Change a policy. The new descriptor has a new checksum, so the Flex sees a new account. Do the same whenever Liana marks the Flex with a warning icon whose tooltip reads The wallet descriptor is not registered on the device.

Verify an address

Liana asks the Flex to display an address of the wallet. You compare the two addresses yourself.

Generate the address

In Receive, select Generate address, enter a label, then select Generate. For an address already in the list, skip to the next step.

Send the address to the Flex

Select Verify on signing device, then select the Flex in the Verify address window.

Compare the addresses

The Flex opens on Verify bitcoin address. Swipe to the Address and the Account name of the wallet. Check that the address matches the one in Liana, and check the account name.

The two addresses differ?

Do not share either one. Malware on the computer can swap the address Liana shows. Update the Bitcoin app, check that the Flex shows this wallet's account name, and try again before you receive anything.

Ledger Flex page showing a bc1q address and the account name Liana-kgcve5ak, with a QR code button, Confirm, and Cancel.
The Flex shows the address and the wallet's account name. Check that the address matches the one in Liana before you tap Confirm.

Approve on the Flex

Tap Confirm. The Flex shows Address verified. Share the address only now. To refuse, tap Cancel at the bottom left.

Sign a transaction

Open the transaction

Build the transaction in Send, as Send bitcoin shows, then select Sign.

Select the Flex

In the Select signing device to sign with: window, select the Flex. Liana closes the window and shows Processing... and Please check your device at the top right.

Check the transaction on the Flex

The Flex opens on Review transaction to send bitcoin. Swipe through its pages:

  • From registered account: The account name of the wallet.
  • Amount and To: Each payment and its address. With several payments, Transaction output numbers them. Check the change in Liana, as Known limitations explains.
  • Fees: The fee this transaction pays.

Compare each payment with the address you meant to pay. When the fee is at least 10% of the coins spent, and those coins total more than 100,000 sats, the Flex adds a High fees warning page. For a refresh, where every output returns to the wallet, Amount reads 0 BTC (self-transfer) on mainnet.

Ledger Flex signing page 2 of 4 showing From registered account Liana-kgcve5ak, Amount 0.1 BTC, and the To address.
Check the account name, then each amount and address against the payment you meant to make.

Sign on the Flex

On the last page, Sign transaction to send bitcoin?, keep your finger on Hold to sign until the Flex shows Transaction signed. Liana adds the signature to the draft. Its Signatures count reaches the threshold, such as 2 of 2, once the path has every signature it needs. If the path needs other signatures, sign with the next key.

To refuse, tap Reject at the bottom left, then Yes, reject.

Ledger Flex last signing page asking Sign transaction to send bitcoin?, with a Hold to sign row and Reject at the bottom left.
On the last page, keep your finger on Hold to sign. Reject at the bottom left refuses the transaction.

Sign with a recovery path

The Flex signs a recovery transaction with the same steps and the same pages. What changes:

  • Where you build it: In Recovery, once the timelock of the path has expired, as Recover in Liana shows.
  • Which Ledger signs: The one that holds a key of that recovery path. Liana marks any other key of this wallet with This signing device is not part of this spending path. A Ledger that has not registered the descriptor shows a warning icon instead.
  • Registration: On a computer where the wallet is new, such as an heir's, register the descriptor on the Flex at the Register descriptor step. Claim an inheritance covers the whole procedure.