Lightning channel anchor. Verifies local and remote channel pubkeys alongside a commitment number. Used to anchor Lightning channel state on-chain for backup and verification purposes.
AnchorInvertible
Ladder Diagram
Fields
Field
Data Type
Size
Side
Description
commitment_number
NUMERIC
1-4 B
Conditions
Channel commitment number (must be > 0)
Both public keys folded into Merkle leaf via merkle_pub_key (PubkeyCountForBlock = 2). No key fields in conditions.
No witness fields required. The commitment number is committed in conditions.
Anchors commitment #42 of a Lightning channel identified by the local and remote pubkeys.
Use Cases
Lightning Channel State Anchoring
Commit the current channel state on-chain, creating a verifiable record of the commitment number and both channel keys. Enables trustless channel state auditing without closing the channel.
Channel Backup Verification
Anchor channel parameters on-chain as a backup reference. If local state is lost, the anchored data can be used to verify the correct channel keys and latest known commitment number.