Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

lightning-watchtowers

БесплатноБез исполняемых скриптовНе проверен

Watchtower architecture: encrypted breach blob storage, justice transactions, monitoring outsourced for offline channels. LN-Symmetry (eltoo, BIP 448)…

claude-dev-suiteот claude-dev-suite★ 51 звезда на GitHub

Об этом скилле

Watchtowers

A Lightning channel partner can cheat by broadcasting an old commitment tx. To detect and revert, the honest party must broadcast a "justice tx" within to_self_delay blocks. Watchtowers do this monitoring on your behalf when you're offline.

Threat model

Watchtower is untrusted for fund custody. It only learns:

  • Channel txid (from txid_prefix you provide).
  • Encrypted blob (the justice tx).

It does NOT learn:

  • Channel balance.
  • Counterparty identity.
  • Payment activity.

If the watchtower colludes with the cheating party, it gains nothing (it doesn't have funds; it only fails to broadcast → channel partner might steal anyway).

Protocol (implementation-defined)

There is no watchtower BOLT. As of September 2026 the lightning/bolts repo root contains BOLTs 00-05, 07-12 plus the bolt-simple-taproot.md extension document — there is no 13-*.md and no watchtower spec, and lightning/blips contains no watchtower bLIP at all (September 2026). An unmerged personal draft titled "Watchtower protocol specification (BOLT DRAFT REV.1)" lives at sr-gi/bolt13 (last pushed August 2023) and is what The Eye of Satoshi implements; Core Lightning's beginners guide links to it. It is a different protocol from LND's, using register_top_up / subscription_details / add_update_appointment messages.

Consequence: there is no cross-implementation tower interop. An LND client can only use an LND-protocol tower. The wire protocol below is LND's wtwire (watchtower/wtwire, message types 600-607 as of lnd v0.21.3-beta, September 2026) — the de-facto deployed one.

Registration

Client → Watchtower (create_session, type 602):

create_session {
  blob_type,       // altruist/reward + commit/anchor/taproot flags
  max_updates,     // uint16, updates honored for this session
  reward_base,     // uint32, flat tower cut if blob_type has reward
  reward_rate,     // uint32, millionths of revoked commitment balance
  sweep_fee_rate,  // sat/kw the justice tx must be built at
}

Watchtower replies create_session_reply (603) with the session parameters. The session is identified by the client's brontide key, not by an explicit session ID field.

Update push

When client signs new commitment, sends state_update (604):

state_update {
  seq_num,         // uint16, 1-indexed, <= max_updates
  last_applied,    // uint16, echoes tower's last_applied
  is_complete,     // 1 = tower closes the connection after replying
  hint,            // 16-byte prefix of the revoked commitment txid
  encrypted_blob,  // justice kit, encrypted under the FULL txid
}

Watchtower stores (hint → blob) mapping. Cannot decrypt without seeing the actual commitment tx on chain.

Monitoring

Watchtower watches the chain:

  • For each block, scan all txs.
  • For each tx in block, compute hint = first-16-bytes-of-txid.
  • If hint matches a stored update, decrypt blob using full txid.
  • Decrypt yields a justice tx; broadcast it.

Justice tx

Pre-built sweep tx:

  • Spends to_local of cheating commitment using revocation key.
  • Spends the to_remote output when the blob carries one.
  • Pays output to a client-specified address.

HTLC outputs are not swept by an LND tower: as of lnd v0.21.3-beta (September 2026) watchtower/lookout/justice_descriptor.go still carries // TODO(conner): sweep htlc outputs, and the blob Type flags cover commitment outputs only. In-flight HTLC value is outside watchtower coverage.

The watchtower fee model:

  • Altruist — tower takes nothing, client pays only on-chain fees. This is what LND ships and the only mode in practice.
  • Reward — reward_base + reward_rate negotiated in create_session add a tower output to the justice tx. Wire support exists; lnd's own docs/watchtower.md still says reward towers "will be enabled in a subsequent release" as of v0.21.3-beta (September 2026).
  • Subscription — the sr-gi/bolt13 draft and The Eye of Satoshi use a prepaid slot count topped up over Lightning, independent of LND's model.

Implementations

LND watchtower

LND has built-in client (wtclient) and tower (watchtower), enabled with watchtower.active=1; it listens on :9911 by default:

# Tower (your friend's node)
lncli tower info

# Client side: add tower
lncli wtclient add <pubkey>@<addr>:<port>

The tower is private altruist only — it takes no cut, so there are no tower fees to configure (lnd v0.21.3-beta, September 2026). Access control is by whoever knows the tower URI.

Eclair

Eclair has no watchtower, client or server: as of September 2026 there is no watchtower code in ACINQ/eclair and no eclair.conf setting for one. Eclair relies on the node itself being online.

Core Lightning

CLN has no built-in tower. It exposes the commitment_revocation hook, which watchtower plugins (e.g. rust-teos' watchtower-plugin) use to capture the penalty tx for each revoked state.

Sta

Полный SKILL.md на GitHub

Установить lightning-watchtowers в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob

FAQ

Что делает скилл lightning-watchtowers?

Watchtower architecture: encrypted breach blob storage, justice transactions, monitoring outsourced for offline channels. LN-Symmetry (eltoo, BIP 448) alternatives. USE WHEN: deploying a watchtower service, evaluating watchtower vendors, designing self-hosted monitoring.

Как установить скилл lightning-watchtowers?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл lightning-watchtowers запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить lightning-watchtowers с