2 min to read.
LND
Lightning Network Daemon: a widely used software implementation of a Lightning Network node.
What is LND?
LND stands for Lightning Network Daemon. It is an open-source software implementation of a Lightning Network node, developed by the company Lightning Labs and written in the Go programming language. A "daemon" is a program that runs in the background; LND runs continuously and handles Lightning payments on behalf of its operator or of applications connected to it.
How it works
The Lightning Network is defined by a set of shared specifications. Any software that follows them can take part, and LND is one of several implementations; others include Core Lightning and Eclair. Nodes running different implementations can open channels with each other.
An LND node:
- connects to the Bitcoin network, through a full node or a lighter client, to watch the blockchain,
- contains a wallet that holds the keys for on-chain funds and channels,
- opens, manages and closes payment channels,
- creates invoices, sends payments, and forwards payments for others in exchange for small routing fees,
- offers programming interfaces (APIs) that wallets and services use to control it.
Example
An online shop wants to accept Lightning payments without relying on a payment provider. It runs LND on a server, opens channels to well-connected nodes, and its shop software asks LND to create an invoice for each order and to report when it is paid.
Why it matters
Much of the software around Lightning, including many node-management tools and wallet back ends, is built on LND. Several independent implementations matter too: a bug in one program does not affect the whole network.
Risks and practical points
- A Lightning node is a hot wallet. Its keys are on an online machine, so server security matters.
- Channel state must be backed up correctly. Restoring an outdated state and broadcasting it can lead to loss of funds, so LND uses special channel backups designed for safe recovery.
- Software should be kept up to date, since security fixes are released from time to time.
- Running a routing node takes ongoing management of channel balances.
Common misunderstanding
LND is not the Lightning Network itself, and it is not a coin or token.