Commitment Point
A commitment point is a per-state elliptic curve point used in Lightning channels to derive revocation and HTLC keys.
Key Takeaways
- A commitment point is a unique elliptic curve point generated for each channel state, used to derive the per-state keys that control outputs in a commitment transaction.
- By combining commitment points with static basepoints, Lightning channels produce fresh public keys for every state update, ensuring that each commitment transaction uses a distinct set of keys without requiring new key generation from scratch.
- Revealing a prior commitment point's secret is what makes revocation work: once the counterparty has that secret, they can derive the revocation key needed to claim a penalty if the old state is ever broadcast.
What Is a Commitment Point?
A commitment point (formally per_commitment_point) is a public key on the secp256k1 curve that is unique to a single state in a Lightning channel. Every time two parties update their channel balance, a new commitment point is generated. It serves as the cryptographic seed from which all per-state keys: the delayed payment key, the HTLC key, and the revocation key: are derived.
The commitment point itself is computed by multiplying a per-commitment secret (a 256-bit scalar) by the generator point G. As long as the secret remains hidden, only the public point is known. When a state is revoked, the secret behind that state's commitment point is revealed to the counterparty, enabling them to reconstruct the revocation private key and enforce penalties against cheating.
This mechanism is defined in the BOLT 3 specification, under the key derivation section. It is one of the most elegant constructions in the Lightning protocol: a single point per state enables an entire family of derived keys while keeping the revocation mechanism trustless.
How It Works
Each party in a Lightning channel maintains a deterministic chain of per-commitment secrets. For state number N, the per-commitment secret is a 32-byte value, and the corresponding commitment point is:
per_commitment_point = per_commitment_secret * GHere, G is the secp256k1 generator point. The commitment point is shared with the counterparty during channel setup and updates, while the secret stays private until revocation.
Deriving Per-State Keys
BOLT 3 defines two categories of key derivation from commitment points: simple keys and revocation keys.
Simple keys (used for delayed payment outputs and HTLC outputs) are derived by tweaking a static basepoint with the commitment point:
pubkey = basepoint + SHA256(per_commitment_point || basepoint) * GThe corresponding private key derivation adds the same SHA-256 hash to the basepoint secret:
privkey = basepoint_secret + SHA256(per_commitment_point || basepoint)This means the owner of the basepoint secret can always compute the per-state private key, as long as they know the commitment point (which is public).
Revocation Key Derivation
The revocation key uses a more complex two-term construction that requires knowledge of both parties' secrets:
revocationpubkey = revocation_basepoint * SHA256(revocation_basepoint || per_commitment_point)
+ per_commitment_point * SHA256(per_commitment_point || revocation_basepoint)Neither party can compute the revocation private key alone. The counterparty holds the revocation basepoint secret, while the channel owner holds the per-commitment secret. Only when the per-commitment secret is revealed during revocation can the counterparty combine both secrets to derive the full revocation private key:
revocation_privkey = revocation_basepoint_secret * SHA256(revocation_basepoint || per_commitment_point)
+ per_commitment_secret * SHA256(per_commitment_point || revocation_basepoint)This split-knowledge design ensures that the revocation key cannot be used prematurely. It only becomes usable after the state has been explicitly revoked.
The Revocation Flow
When Alice and Bob update their channel from state N to state N+1:
- Both parties exchange new commitment points for state N+1
- They sign new commitment transactions using keys derived from these points
- Each party sends a
revoke_and_ackmessage containing the per-commitment secret for state N - The counterparty now has the secret for state N, allowing them to derive the revocation private key for that state
- State N is now revoked: broadcasting it would let the counterparty execute a justice transaction using the revocation key
Efficient Secret Storage
A long-lived channel can accumulate thousands of state updates, each with its own per-commitment secret. Storing every secret individually would be impractical. Lightning implementations use a shachain structure (defined in BOLT 3) that stores all secrets in O(log n) space by exploiting their derivation from a single seed. Secrets are revealed in reverse order, allowing each new secret to compact the storage of previous ones.
Use Cases
Channel State Isolation
Because each state uses a unique commitment point, every commitment transaction has a completely independent set of output keys. This isolation prevents key reuse across states and ensures that revoking one state does not affect the security of the current state.
Penalty Enforcement
The commitment point is the linchpin of Lightning's penalty mechanism. Without per-state points, there would be no way to create keys that are initially secure but become revocable. The split between public point (shared immediately) and private secret (shared only on revocation) is what makes trustless channel updates possible.
Watchtower Delegation
Watchtowers can be given pre-computed breach remedy data for each revoked state. The deterministic relationship between commitment points and derived keys means watchtowers can verify and act on old states without holding the channel's long-term private keys.
Future Protocol Upgrades
The commitment point abstraction is flexible enough to support protocol evolution. For example, Taproot channels modify how commitment points interact with Taproot key paths, but the fundamental per-state point concept remains. Proposals like eltoo (LN-Symmetry) replace the penalty-based revocation model entirely, using SIGHASH_ANYPREVOUT instead of per-commitment secrets, which would eliminate the need for commitment points in their current form.
Risks and Considerations
Secret Management
Per-commitment secrets must be stored reliably. If a node loses its secret storage and accidentally broadcasts an old commitment transaction, it has no defense against the counterparty's penalty claim. This is a core reason why channel backups in Lightning are more complex than simple wallet backups: restoring from a stale backup risks triggering a penalty against yourself.
Liveness Requirements
The revocation model requires that parties (or their watchtowers) remain online to detect breaches and respond before the timelock expires. If a node goes offline for longer than the channel's to_self_delay period and the counterparty broadcasts a revoked state, the honest party may miss their window to claim the penalty. This liveness assumption is a fundamental tradeoff of the commitment-point-based revocation model.
Computational Overhead
Deriving keys from commitment points involves elliptic curve point multiplication and SHA-256 hashing for every state update. For typical channel usage, this overhead is negligible. However, in high-throughput scenarios with thousands of updates per second, the derivation cost adds up. Implementations optimize this with key caching and batch derivation.
Shachain Integrity
The shachain storage structure is space-efficient but sensitive to corruption. If even one intermediate node in the shachain is lost or corrupted, entire ranges of per-commitment secrets may become unrecoverable. Implementations must treat the shachain database as critical data that requires the same durability guarantees as the channel state itself.
Commitment Points in Context
The per-commitment point construction is part of a broader family of key derivation techniques used in Bitcoin and Lightning. The key tweaking approach: adding a hash-derived scalar to a base key: appears throughout BIP-32 HD wallets, Taproot key paths, and silent payments. What makes commitment points distinctive is the split-knowledge property: the public point is shared freely, but the underlying secret is withheld until revocation, creating a time-delayed key reveal that anchors the entire Lightning Network security model.
Layer-2 protocols like Spark take a different approach to state management. Instead of per-commitment points and penalty-based revocation, Spark uses statechain transfers with FROST threshold signatures, eliminating the need for watchtowers and liveness requirements while preserving self-custody.
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.