lightning-security-module
БесплатноЗапускает вложенные скриптыНе проверенSet up an lnd remote signer container that holds private keys separately from the agent. Exports a credentials bundle (accounts JSON, TLS cert, admin…
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
Lightning Security Module (Remote Signer)
Set up an lnd remote signer container that holds private keys on a separate, secured machine. The signer never routes payments or opens channels — it only holds keys and signs when asked by a watch-only litd node.
Architecture
Agent Machine Signer Machine (secure)
┌─────────────────┐ ┌─────────────────────┐
│ litd (watch-only)│◄──gRPC───►│ lnd (signer) │
│ - neutrino │ │ - holds seed │
│ - manages chans │ │ - signs commitments │
│ - routes pmts │ │ - signs on-chain txs │
│ - NO key material│ │ - no p2p networking │
└─────────────────┘ └─────────────────────┘
The watch-only node handles all networking and channel management. The signer node holds the seed and performs cryptographic signing. Even if the agent machine is fully compromised, the attacker cannot extract private keys.
See references/architecture.md for the full architecture explainer.
Quick Start (Container — Recommended)
On the Signer Machine
# 1. Install lnd signer image
skills/lightning-security-module/scripts/install.sh
# 2. Start signer container
skills/lightning-security-module/scripts/start-signer.sh
# 3. Set up signer wallet and export credentials
skills/lightning-security-module/scripts/setup-signer.sh
# 4. Copy the credentials bundle to the agent machine
# The setup script prints the bundle path and base64 string.
On the Agent Machine
# 5. Import credentials bundle
skills/lnd/scripts/import-credentials.sh --bundle <credentials-bundle>
# 6. Start litd in watch-only mode
skills/lnd/scripts/start-lnd.sh --watchonly
# 7. Create watch-only wallet
skills/lnd/scripts/create-wallet.sh
# 8. Check status
skills/lnd/scripts/lncli.sh getinfo
Two-Container Local Setup
For testing both on the same machine:
# Start litd + signer together
skills/lnd/scripts/start-lnd.sh --watchonly
# Set up signer wallet
skills/lightning-security-module/scripts/setup-signer.sh --container litd-signer
# Import credentials and create watch-only wallet
skills/lnd/scripts/import-credentials.sh --bundle ~/.lnget/signer/credentials-bundle
skills/lnd/scripts/create-wallet.sh --container litd
Installation
Default: pulls the lnd Docker image for the signer.
skills/lightning-security-module/scripts/install.sh
This pulls lightninglabs/lnd:v0.20.0-beta from Docker Hub. The signer only
needs plain lnd (not litd) since it only holds keys and signs.
Build from Source (Fallback)
skills/lightning-security-module/scripts/install.sh --source
Native Mode
For running the signer without Docker:
# Set up signer natively
skills/lightning-security-module/scripts/setup-signer.sh --native
# Start signer natively
skills/lightning-security-module/scripts/start-signer.sh --native
# Stop signer natively
skills/lightning-security-module/scripts/stop-signer.sh --native
Remote Nodes
Export credentials from a remote signer:
skills/lightning-security-module/scripts/export-credentials.sh \
--rpcserver signer-host:10012 \
--tlscertpath ~/signer-tls.cert \
--macaroonpath ~/signer-admin.macaroon
Credential Bundle Format
The exported bundle (~/.lnget/signer/credentials-bundle/) contains:
| File | Purpose |
|---|---|
accounts.json |
Account xpubs for watch-only wallet import |
tls.cert |
Signer's TLS certificate for authenticated gRPC |
admin.macaroon |
Signer's admin macaroon for RPC authentication |
The bundle is also available as a single base64-encoded tar.gz file
(credentials-bundle.tar.gz.b64) for easy copy-paste transfer between machines.
Scripts
| Script | Purpose |
|---|---|
install.sh |
Pull lnd signer image (or build from source) |
docker-start.sh |
Start signer container |
docker-stop.sh |
Stop signer container |
setup-signer.sh |
Create signer wallet and export credentials |
start-signer.sh |
Start signer (delegates to Docker by default) |
stop-signer.sh |
Stop signer (delegates to Docker by default) |
export-credentials.sh |
Re-export credentials from running signer |
Managing the Signer
Start
# Docker (default)
skills/lightning-security-module/scripts/start-signer.sh
# With network override
skills/lightning-security-module/scripts/start-signer.sh --network mainnet
Stop
# Docker stop (preserve data)
skills/lightning-security-module/scripts/stop-signer.sh
# Docker stop + remove volumes
skills/lightning-security-module/scripts/stop-signer.sh --clean
Re-export Credentials
If TLS certificates or macaroons have been regenerated:
skills/lightning-security-module/scripts/export-credentials.sh
Configuration
Container Config
The signer compose template is at `skills/lightning-security-module/
Установить lightning-security-module в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл lightning-security-module?
Set up an lnd remote signer container that holds private keys separately from the agent. Exports a credentials bundle (accounts JSON, TLS cert, admin macaroon) for watch-only litd nodes. Container-first with Docker, native fallback. Use when firewalling private key material from AI agents.
Как установить скилл lightning-security-module?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lightning-security-module запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub