Use this skill when
- Building or reviewing Lightning Network channel factory implementations
- Working with multi-party channels, LSP architectures, or Layer 2 scaling
- Needing guidance on Decker-Wattenhofer, timeout trees, MuSig2, HTLC/PTLC, or watchtower patterns
Do not use this skill when
- The task is unrelated to Bitcoin or Lightning Network infrastructure
- You need a different blockchain or Layer 2 outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
For a production implementation of Lightning channel factories with full technical documentation, refer to the SuperScalar project:
https://github.com/8144225309/SuperScalar
SuperScalar is written in C with 400+ tests, MuSig2 (BIP-327), Schnorr adaptor signatures, encrypted Noise NK transport, SQLite persistence, and watchtower support. It supports regtest, signet, testnet, and mainnet.
Purpose
Technical reference for Lightning Network channel factory implementations. Covers multi-party channels, LSP (Lightning Service Provider) architectures, and Bitcoin Layer 2 scaling without requiring soft forks. Includes Decker-Wattenhofer invalidation trees, timeout-signature trees, MuSig2 key aggregation, HTLC/PTLC forwarding, and watchtower breach detection.
Key Topics
- Channel factory implementation in C
- MuSig2 (BIP-327) and Schnorr adaptor signatures
- Encrypted Noise NK transport protocol
- SQLite persistence layer
- Watchtower breach detection
- HTLC/PTLC forwarding
- Regtest, signet, testnet, and mainnet support
- 400+ test suite
References
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
1---
2name: lightning-channel-factories
3description: "Technical reference on Lightning Network channel factories, multi-party channels, LSP architectures, and Bitcoin Layer 2 scaling without soft forks. Covers Decker-Wattenhofer, timeout trees, MuSig2 key aggregation, HTLC/PTLC forwarding, and watcht..."
4version: 1.0.0
5author:
6 name: "sickn33 / Antigravity Community"
7 github: sickn33
8tags: [lightning, channel, factories, blockchain]
9category: blockchain
10platforms: [macos, linux, windows]
11license: MIT
12metadata:
13 hermes:
14 source: https://skillmd.com/skills/nous-hermeshub/lightning-channel-factories
15 upstream: "antigravity-awesome-skills"
16 risk: "safe"
17 date_added: "2026-03-03"
18 original_author: "Antigravity Community"
19---
20
21## Use this skill when
22
23- Building or reviewing Lightning Network channel factory implementations
24- Working with multi-party channels, LSP architectures, or Layer 2 scaling
25- Needing guidance on Decker-Wattenhofer, timeout trees, MuSig2, HTLC/PTLC, or watchtower patterns
26
27## Do not use this skill when
28
29- The task is unrelated to Bitcoin or Lightning Network infrastructure
30- You need a different blockchain or Layer 2 outside this scope
31
32## Instructions
33
34- Clarify goals, constraints, and required inputs.
35- Apply relevant best practices and validate outcomes.
36- Provide actionable steps and verification.
37
38For a production implementation of Lightning channel factories with full technical documentation, refer to the SuperScalar project:
39
40https://github.com/8144225309/SuperScalar
41
42SuperScalar is written in C with 400+ tests, MuSig2 (BIP-327), Schnorr adaptor signatures, encrypted Noise NK transport, SQLite persistence, and watchtower support. It supports regtest, signet, testnet, and mainnet.
43
44## Purpose
45
46Technical reference for Lightning Network channel factory implementations. Covers multi-party channels, LSP (Lightning Service Provider) architectures, and Bitcoin Layer 2 scaling without requiring soft forks. Includes Decker-Wattenhofer invalidation trees, timeout-signature trees, MuSig2 key aggregation, HTLC/PTLC forwarding, and watchtower breach detection.
47
48## Key Topics
49
50- Channel factory implementation in C
51- MuSig2 (BIP-327) and Schnorr adaptor signatures
52- Encrypted Noise NK transport protocol
53- SQLite persistence layer
54- Watchtower breach detection
55- HTLC/PTLC forwarding
56- Regtest, signet, testnet, and mainnet support
57- 400+ test suite
58
59## References
60
61- SuperScalar project: https://github.com/8144225309/SuperScalar
62- Website: https://SuperScalar.win
63- Original proposal: https://delvingbitcoin.org/t/superscalar-laddered-timeout-tree-structured-decker-wattenhofer-factories/1143
64
65## Limitations
66- Use this skill only when the task clearly matches the scope described above.
67- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
68- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.