How to Import an LND aezeed Seed Into Sparrow Wallet
This article was translated from Japanese with AI. Read the original (日本語) · Report a translation issue
Bitcoin wallets give you a set of English words for backup, called a seed phrase, and there is more than one way to derive it. Electrum Wallet created its own proprietary derivation scheme around 2011, after which BIP39 was documented under the leadership of SatoshiLabs, and today most wallets follow BIP39. On top of that, LND, a Lightning node implementation, has its own derivation scheme called "aezeed."
Because aezeed is incompatible with the other formats, if you try to restore it by typing the 24-word phrase into the wallet you normally use, the checksum will fail and the restore won't work. (Even if the checksum happens to pass by some miracle, you'll just open an empty wallet.)
Even Sparrow Wallet, which is packed with features that cover just about every need, offers no built-in option for importing aezeed, and the issue requesting aezeed support, opened in 2021, is still open.
So in this article, I'll walk through a brute-force method of importing aezeed into Sparrow using an xprv (master private key). It's recommended for anyone whose LND node has broken and who wants to recover just their on-chain balance without setting up a new LND node. It can't recover balances held in channels, but it should serve as a useful last resort for restoring an aezeed.
If you'd like to learn more about Sparrow, also see the earlier articles below.

Is LND's aezeed better than BIP39?
First, a brief explanation of aezeed.
Lightning nodes generally come with built-in Bitcoin wallet functionality, and a seed phrase is generated to back up that wallet. When the Lightning implementation is LND, it uses a standard called aezeed rather than BIP39. aezeed was designed to make up for BIP39's shortcomings, and what sets it apart is that its seed phrase includes "version information" and a "wallet birthday."
The structure of each type of seed is shown in the table below.
| aezeed (24 words) | BIP39 (24 words) | ||
|---|---|---|---|
| Version | 8 bits | Entropy (random data) | 256 bits |
| Encrypted data | Internal version: 8 bits | Checksum (error detection) | 8 bits |
| Birthday: 16 bits | |||
| Entropy: 128 bits | |||
| Authentication MAC: 32 bits | |||
| Salt (random value for the passphrase) | 40 bits | ||
| Checksum (error detection) | 32 bits | ||
| Total | 264 bits | Total | 264 bits |
A BIP39 seed phrase contains only "entropy + checksum," and the specification only goes as far as "turning 12 or 24 words into a 512-bit seed value." There are several ways to generate addresses from those 512 bits, and since most wallets derive keys by guessing, this has been pointed out as a problem. aezeed mitigates the problem by including version information. (It doesn't contain the derivation path, though, so it isn't a fundamental fix.)
Also, when you restore a wallet, the software generally scans the blockchain to find your addresses and records the balance. The restoring software has no way of knowing which block it can start scanning from without missing anything, but including the wallet's birthday in the seed solves this.
On the other hand, it's a bit of a letdown that aezeed fixes the entropy at 128 bits. What really matters, though, is whether the random number generation is unbiased, and 128 bits of entropy is strong enough in itself.
Another debatable point is the different role the passphrase plays. In BIP39, the passphrase is an input used in deriving the seed, so entering a different passphrase opens a different wallet. In other words, it gives you plausible deniability: every wrong passphrase still leads to a valid wallet. In aezeed, by contrast, the passphrase serves as the key that encrypts the seed, so a wrong passphrase gets detected. You could say that this improves usability but gives up plausible deniability.
So although aezeed may look superior to BIP39 at first glance, its security trade-offs, the debatable points and how hard it is to implement mean it hasn't spread to other Lightning implementations or to most wallets. Still, LND accounts for the vast majority of Lightning implementations, so many of you are using aezeed without realizing it, and I think it's worth understanding its features and how to restore it.
How to import aezeed into Sparrow Wallet
The method described here is meant as a last resort. If you restore to Sparrow and use the on-chain wallet while your LND node is still running, you could lose the funds in the LND node, so don't use the two side by side.
To import aezeed into Sparrow, you first need to have written down your LND seed phrase offline. For this walkthrough, I set up an LND node on Umbrel and prepared a wallet funded with 10,000 sats.

Open the settings in the top right and click "View secret words" to display the 24 English words. Next, to derive an xprv (master private key) from this seed phrase, we'll use chantools, a tool that can run offline, developed by Lightning Labs (the company behind LND).
It's a BIP32 extended private key encoded as a string. Anyone who knows the xprv can generate every private key and public key beneath it.
When getting chantools, always download the latest release from the GitHub repository and verify the developer's GPG signature before installing it.
When using the tool, always run the following command on a computer that is offline.
chantools showrootkey
You'll see the prompt
Input your 24-word mnemonic separated by spaces:
so type in your seed phrase with a single space between each word and press Enter. If you set a passphrase, enter it when prompted. If you didn't, just leave it blank and press Enter.
The output will read Your BIP32 HD root key is : xprv9s21ZrQH1…, so write down everything from xprv onward.
Next, create a wallet in Sparrow to restore the aezeed into.

For Policy Type (the signing scheme), you can choose from the following three options.
- Single Signature HD (single-sig)
- Multi Signature HD (multisig)
- Single Signature SP (silent payments)
LND's on-chain wallet is single-sig, so choose Single Signature HD.
For Script Type (the address type), choose from the following four.
- Legacy (P2PKH)
- Nested Segwit (P2SH-P2WPKH)
- Native Segwit (P2WPKH)
- Taproot (P2TR)
Select the address type that was used by your LND on-chain wallet. (Legacy isn't used with Lightning, so you can rule it out.)
Deposit addresses are usually Native Segwit (P2WPKH) (the addresses generated in Umbrel's interface are this type too). However, since LND v0.15.1, change from sends and channel opens and funds returned after a force close, as well as funds returned from a cooperative close if the peer node supports it, go to Taproot (P2TR) addresses. So create separate wallets with different Script Types, load the same xprv into each, and check both.

When importing an xprv as we're doing here, select Master Private Key (BIP32) on the screen and enter the xprv. Once you do, the following screen appears.

You'll probably see an unfamiliar string like m/84'/0'/0’. This is a kind of path that tells the software how to derive the keys, and it's filled in automatically from the address type you selected earlier.
See the table below for how derivation paths correspond to addresses.
| LND address prefix | Sparrow Script Type | Derivation path |
|---|---|---|
| bc1q | Native Segwit (P2WPKH) | m/84'/0'/0’ |
| bc1p | Taproot (P2TR) | m/86'/0'/0’ |
| 3 | Nested Segwit (P2SH-P2WPKH) | m/49'/0'/0’ |
If everything looks right, click Import Keystore.

Checking the balance shows 10,000 sats, confirming that the aezeed backup was restored successfully.
Here's a tip worth knowing whenever you restore addresses from a seed phrase in Sparrow, not just with aezeed: to keep the software from scanning addresses forever, there's a rule that once it finds a set number (20 by default) of unused addresses (with a zero balance), it stops looking further. So if you generated a lot of unused addresses in LND or elsewhere, try increasing the Gap limit value under Advanced in the wallet settings.
Summary
LND's seed phrase format, aezeed, is incompatible with BIP39 and can't be restored in ordinary wallets. You can import it, however, by running chantools' showrootkey command in an offline environment to derive an xprv (master private key) from the 24 words, then importing it through Sparrow's "Master Private Key (BIP32)" option.
Choose "Single Signature HD" as the Policy Type. Create wallets with both the "Native Segwit (P2WPKH)" Script Type used for deposits and the "Taproot (P2TR)" type that receives change and similar funds, and check the balance in each. If no balance shows up, try increasing the Gap limit.
This method is a last resort for when your node becomes unusable, so avoid using it alongside a running LND node. Also note that aezeed alone can't restore channel balances, so make a habit of keeping your SCB (Static Channel Backup) safe as well.
