Safety: Never type or paste a real aezeed phrase or unlock passphrase into a website, chat, or any tool you do not fully control and trust. The sample phrase below is published in LND's official aezeed README.
aezeed is the cipher-seed scheme used by LND (Lightning Network Daemon). A typical backup is 24 English words from the default BIP39 wordlist. That shared list is why an aezeed can look like a BIP39 mnemonic. It is not BIP39.
The official README states the design goals directly. BIP39 has no version field, so a wallet may not know how to re-derive addresses on recovery. BIP39 has no wallet birthday, so a restorer may not know how far back to scan. aezeed stores both. It also rejects BIP39's KDF as too weak and uses scrypt with modern parameters instead.
What the 24 words encode
The words are not a direct encoding of raw HD entropy, as in BIP39. They encode a 33-byte cipher seed. Before enciphering, the plaintext seed is 19 bytes:
- 1 byte internal version — so a wallet can know how to re-derive keys
- 2 byte timestamp — the wallet birthday, expressed as the number of days since the timestamp in Bitcoin's genesis block (the README calls this Bitcoin Days Genesis). The field can express dates through 2188.
- 16 bytes of entropy — the raw entropy that should be used to derive the wallet's HD root
That plaintext is then enciphered, and the resulting 33-byte cipher text is mapped to 24 BIP39 English words.
Enciphering takes a user-defined passphrase. If no passphrase is provided, the official scheme uses the string aezeed. Version 0, the first external version, uses scrypt with parameters n=32768, r=8, p=1 to derive a 32-byte encryption key from the passphrase and a 5-byte salt. The salt is there, the README says, to make rainbow tables infeasible. The payload is encrypted with aez, an AEAD with nonce-misuse resistance and a configurable MAC; the scheme uses an 8-byte (64-bit) checksum. Associated data is the version and salt.
Because the mnemonic is ciphertext, the official README says leaving the words in plaintext is more acceptable if the user also set a passphrase — in contrast to BIP39, where the mnemonic alone (with an empty passphrase) may be enough to spend. That is a design claim about the encoding. It is not a reason to email yourself an unencrypted 24-word backup. Treat an aezeed the way you would treat any other seed.
Passphrase changes and upgrades
Two properties follow from the fact that the words encode ciphertext, not a one-way BIP39 seed.
First, a cipher seed can have its passphrase changed. You decipher with the old passphrase and encipher with a new one. The official README contrasts this with BIP39, where a passphrase is part of a one-way KDF into the HD seed, so changing the passphrase would change the keys. In aezeed, the 16 bytes of HD entropy are inside the plaintext; changing the encryption passphrase does not change that entropy.
Second, a cipher seed can be upgraded. An external version describes how the seed was enciphered. Offline tools can decipher with the old parameters and encipher with new ones if the cipher, scrypt, or scrypt parameters change.
On restore, you still need the correct passphrase (or the default aezeed if none was set). The wrong passphrase should fail the checksum rather than silently open a different HD wallet, because the words carry a MAC. That is another contrast with BIP39, where a wrong passphrase usually yields a different but valid-looking seed.
The birthday is used so the wallet knows how far back to look when recovering. Official LND recovery documentation is the place to follow for the restore procedure itself. This page is only about the seed format.
Official sample
Public test vector, never use for funds.
ability dance scatter raw fly dentist bar nominee exhaust wine snap super cost case coconut ticket spread funny grain chimney aspect business quiz ginger
Do not use this phrase in a real LND instance, and do not assume a BIP39 tool that accepts these words is "checking" an aezeed. A BIP39 tool will run PBKDF2 on the sentence and produce a 64-byte seed that aezeed does not use.
aezeed fixes two BIP39 shortcomings that BIP39 itself now lists: there is no version, and the mnemonic does not record how the wallet used the seed. Bitcoin's later answer on the descriptor side is output descriptors. LND's answer for a Lightning node backup is this versioned cipher seed plus the birthday. The two answers are not interchangeable. An aezeed does not describe Bitcoin script types, and a Bitcoin descriptor does not open an LND wallet.
FAQ
The words are on the BIP39 English list. Is this BIP39? No. Official LND documentation uses that list to encode a 33-byte cipher seed. The KDF is scrypt, the plaintext includes a version and a birthday, and the default passphrase string is aezeed.
What if I never set a passphrase? The scheme still enciphers, using the default passphrase aezeed. A restore tool that prompts for a passphrase and is given nothing should follow that default, not BIP39's empty-string salt suffix.
Can I change my aezeed passphrase later? Yes, according to the official README: decipher with the old passphrase and encipher with the new one. The HD entropy inside does not change.
Will a generic 24-word importer find my Lightning funds? Only if that importer implements aezeed. A BIP39 importer will compute a different seed.
See also
- Other seeds and derivation schemes
- BIP39 passphrase
- Electrum seeds and SLIP39, two other 24-word-looking backups that are not BIP39
- Bitcoin Core descriptors, another answer to BIP39's lack of versioning