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.
Anchor Invertible| 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.
| Condition | Result |
|---|---|
| Fewer than 2 pubkey fields | ERROR |
| Missing NUMERIC field | ERROR |
| commitment_number ≤ 0 | UNSATISFIED |
| 2 pubkeys + commitment_number > 0 | SATISFIED |
{
"type": "ANCHOR_CHANNEL",
"inverted": false,
"fields": [
{ "type": "PUBKEY", "hex": "02a1b2c3...local channel key...33 bytes" },
{ "type": "PUBKEY", "hex": "03d4e5f6...remote channel key...33 bytes" },
{ "type": "NUMERIC", "value": 42 }
]
}Anchors commitment #42 of a Lightning channel identified by the local and remote pubkeys.