BOLT (Basis of Lightning Technology)

The documents that define how Lightning implementations interoperate: messages, channel states, invoices.

Basically

BOLTs are the written rules for the Lightning Network. They let different Lightning software work together.

Key Takeaways

  • BOLTs are the technical specification documents that define how the Lightning Network works. Every implementation, including LND, Core Lightning, Eclair and LDK, follows them to ensure interoperability across the network.
  • There are 12 BOLTs, numbered 0 through 12 and skipping 6. They cover everything from encrypted transport and channel management to invoice encoding and reusable offers.
  • Unlike BIPs, which propose changes to Bitcoin's base layer, BOLTs require at least two independent implementations to demonstrate interoperability before a specification is accepted.

What Is a BOLT?

BOLT stands for Basis of Lightning Technology. The BOLTs are the formal specification documents that define the Lightning Network protocol: a layer-2 system for off-chain Bitcoin transfers using mutual cooperation, with on-chain transactions as the enforcement mechanism when cooperation fails. Each BOLT covers a specific aspect of the protocol, from how nodes establish encrypted connections to how payments are routed across multiple hops.

The specifications are maintained in an open-source repository at github.com/lightning/bolts, originally named lightning-rfc. The process began at a 2016 developer meeting in Milan, where Lightning implementers agreed on a shared specification framework. Since then, the BOLTs have served as the interoperability contract between competing implementations: if two nodes follow the same BOLT, they can open channels, route payments and close channels together regardless of which software they run.

The Complete BOLT Index

The Lightning specification consists of 12 documents. Each covers a distinct layer of the protocol stack.

BOLT 0: Introduction and Index

BOLT 0 is the overview document. It defines core terminology, including channel, HTLC, funding transaction and commitment transaction, and provides the index to all other BOLTs. It is the starting point for anyone reading the specification.

BOLT 1: Base Protocol

BOLT 1 defines the foundational messaging format for node-to-node communication. It covers message framing, with a 2-byte type field followed by a variable-length payload, Type-Length-Value (TLV) encoding for backward-compatible extensibility, and the "it's OK to be odd" rule: odd-numbered feature types may be ignored by peers, while even-numbered ones must be supported. It also specifies init messages, error handling and ping/pong keepalives.

BOLT 2: Peer Protocol for Channel Management

BOLT 2 is one of the largest specifications. It covers the full channel lifecycle across three stages: establishment, including opening a channel and negotiating parameters; normal operation, including sending and receiving HTLCs and updating commitment transactions; and closing, both cooperative and unilateral. It defines the rules for adding, removing and settling payments within a channel.

BOLT 3: Bitcoin Transaction and Script Formats

BOLT 3 specifies the exact structure of on-chain transactions used by Lightning. These include commitment transactions that encode channel state, HTLC output scripts, and the funding transaction that creates a channel via a 2-of-2 multisig. It also defines key derivation requirements for the cryptographic keys used in these transactions.

BOLT 4: Onion Routing Protocol

BOLT 4 describes the Sphinx-based onion routing construction that makes Lightning payments private. Each hop in a payment route can only see the previous and next hop, not the full path. The specification covers ECDH-derived shared secrets, ephemeral key blinding, per-hop payloads, HMAC integrity verification, encrypted error reporting along the reverse path, and route blinding for receiver privacy.

BOLT 5: On-chain Transaction Handling

BOLT 5 provides recommendations for handling on-chain transactions when channels close unexpectedly. It covers unilateral close scenarios, resolution of expired HTLCs, fee bumping strategies, and dispute resolution when participants disagree or fail to respond. It is the guide for what happens when cooperation breaks down and the blockchain becomes the arbiter.

BOLT 7: P2P Node and Channel Discovery

BOLT 7 defines the gossip protocol for network topology discovery. It specifies three key message types: node_announcement for advertising a node's existence and features, channel_announcement for proving a channel exists with on-chain evidence, and channel_update for broadcasting routing parameters like fees and capacity. These messages let every node build its map of the network for pathfinding.

BOLT 8: Encrypted and Authenticated Transport

BOLT 8 specifies how all communications between Lightning nodes are encrypted. It implements the Noise Protocol Framework, specifically Noise_XK_secp256k1_ChaChaPoly_SHA256, using a three-act handshake for authenticated key exchange with secp256k1 keys, ChaCha20-Poly1305 encryption and SHA-256 hashing. Encryption keys rotate every 1,000 messages for forward secrecy.

BOLT 9: Assigned Feature Flags

BOLT 9 is the central registry for Lightning protocol capabilities. It uses a bitmask system where even bits indicate a required feature and odd bits indicate an optional one. When two nodes connect, they exchange feature flags to determine which protocol features they share, allowing the protocol to evolve without breaking backward compatibility.

BOLT 10: DNS Bootstrap

BOLT 10 specifies how new nodes discover the network for the first time using DNS seeds. When a fresh Lightning node starts up, it queries DNS seed records to find initial peers to connect to. The process is similar to how Bitcoin nodes bootstrap their peer connections.

BOLT 11: Invoice Protocol

BOLT 11 defines the encoding format for Lightning invoices and uses bech32 encoding for QR code compatibility. The human-readable part includes a prefix, lnbc for mainnet Bitcoin, and an optional amount with multiplier suffixes. Required fields include payment hash, payment secret and description, and BOLT 11 invoices are single-use, with each invoice corresponding to one specific payment.

BOLT 12: Offers

BOLT 12 is the newest BOLT, officially merged in September 2024 and the first new specification added since the original set in 2017. Offers introduce reusable, static payment identifiers that replace the single-use model of BOLT 11. Key features include reusable payment requests through static QR codes that work for multiple payments, receiver privacy via route blinding, recurring and subscription payments, and dynamic pricing with amounts denominated in non-Bitcoin currencies.

How the Specification Process Works

The BOLT process follows a collaborative, implementation-driven approach. It prioritises working code over theoretical proposals.

The two-implementation requirement is the critical bar for adoption. It ensures that specifications are not just theoretically sound but practically workable across different codebases.

bLIPs, or Bitcoin Lightning Improvement Proposals, provide a parallel process for experimental or application-level features that do not need to be universal, hosted at github.com/lightning/blips. bLIPs are opt-in specifications. A feature intended to become universal must go through the full BOLT process.

BOLTs vs. BIPs

BOLTs are often compared to Bitcoin Improvement Proposals (BIPs), the specification process for Bitcoin's base layer. Both serve as technical standards, but they differ in important ways.

BOLTs build on BIP-defined primitives. For example, Lightning channels rely on SegWit (BIP 141), BOLT 11 invoices use bech32 encoding (BIP 173), and newer channel types leverage Taproot (BIPs 340-342). The two specification tracks are complementary: BIPs define what the base layer can do, and BOLTs define how Lightning uses it.

Major Implementations

Four major implementations follow the BOLT specifications. A different organisation maintains each one.

All four teams actively participate in the specification process, with changes requiring cross-implementation agreement and interoperability testing. Their multi-vendor approach ensures the Lightning Network remains an open protocol rather than a product controlled by a single entity.

Interoperability Across Wallets and Nodes

BOLTs primarily enable interoperability. A payment sent from an LND node can route through Core Lightning and Eclair nodes to reach an LDK-powered mobile wallet because every implementation follows the same specification for channel management, onion routing and invoice encoding.

Developer Integration

Developers building on Lightning reference BOLTs to understand protocol behaviour. When integrating BOLT 11 invoices into a payment system, for example, the specification defines exactly how to parse the bech32-encoded string, extract the payment hash and amount, and validate the signature. Our BOLT 11 vs. BOLT 12 deep dive explains more about how invoices and offers compare.

Protocol Evolution

The feature flag system in BOLT 9 allows the protocol to evolve gracefully. New capabilities like anchor outputs, splicing or offers can be deployed incrementally: nodes that support them advertise the feature flag, and those that do not simply ignore it. The Lightning Network adds functionality this way without requiring a hard fork or forcing all nodes to upgrade simultaneously.

Recent Developments

The BOLT specifications continue to evolve. Their development tracks the maturing Lightning Network.

Our research on the state of the Lightning Network provides a broader view. It examines where the network is headed.

Why It Matters for Spark

Spark operates as a layer-2 protocol for Bitcoin alongside the Lightning Network. Spark uses a different architecture based on statechains with FROST threshold signatures, but both protocols exist in the same ecosystem and benefit from the standardisation that BOLTs provide. Lightning interoperability through BOLTs means Bitcoin layer-2 solutions can complement each other: you can move value between Spark and Lightning through atomic swaps and bridge mechanisms, leveraging the strengths of each protocol.

Specification Complexity

The BOLTs collectively run to hundreds of pages of detailed technical prose. Implementing a compliant Lightning node requires correctly interpreting every edge case across all relevant BOLTs. Small misinterpretations can lead to channel failures, fund loss or security vulnerabilities, and this complexity is one reason why only four major implementations exist despite the protocol being open.

Consensus Among Implementers

The two-implementation interoperability requirement means changes move slowly when implementers disagree. BOLT 12 took over seven years from initial proposal to final merge. This caution reduces the risk of introducing flawed specifications, but it also means the protocol cannot respond quickly to emerging needs.

Backward Compatibility

Backward compatibility becomes increasingly challenging as the protocol evolves. The feature flag system in BOLT 9 helps, but nodes running older software may not support newer payment types or channel features. Network-wide upgrades, like the transition from legacy channels to simple Taproot channels, require significant coordination across the ecosystem.

This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.

0

← All 1876 glossary terms