bitcoin-l2-spark
Spark by Lightspark: statechain-derived L2 with FROST threshold signatures, leaf architecture, Lightning compatibility. Beta launched April 2025; managed by Spark Operators (SOs). USE WHEN: integrating with Spark, evaluating Spark vs Ark vs Lightning, designing leaf-based UTXO trees.
What this skill does
# Spark (Lightspark)
Spark is an open-source L2 by Lightspark (David Marcus, ex-PayPal /
ex-Facebook) launched April 2025. Builds on statechain concepts with
**FROST threshold signing** and a **leaf-based** structure for
partial transfers.
## Architecture
Core components:
- **Spark Operators (SOs)**: collective threshold signers, FROST
k-of-n.
- **Leaves**: terminal off-chain UTXOs owned by users; each has a
relative-timelock exit transaction.
- **Trees**: hierarchical structure supporting partial-balance
transfers.
## Leaves
Each Spark leaf is:
- An off-chain UTXO with FROST-aggregated multisig.
- A **relative-timelock unilateral exit tx** that anyone can broadcast
after CSV expiry to extract the leaf on chain.
- Transferable off-chain via SO-coordinated protocol.
## Security model
**1-of-n trust on Spark Operator collective**:
- As long as one operator behaves honestly, user funds remain secure.
- FROST threshold signing means no single SO controls the keys.
- Exit guarantee: even if all SOs collude/disappear, user can always
exit via timelocked path.
Currently launched with 2 operators (Lightspark + Flashnet); planned
expansion to diverse jurisdictions.
## Lightning compatibility
Spark integrates with Lightning:
- Spark balance can be used to pay Lightning invoices.
- Lightning balance can flow into Spark.
- Bridges via Lightspark's Lightning infrastructure.
## API
Lightspark provides SDKs:
- TypeScript / JavaScript.
- Go.
- Python.
- iOS / Android (Swift / Kotlin).
```typescript
const wallet = new SparkWallet({ apiKey });
await wallet.deposit({ amount: 10000 });
await wallet.send({ to: "[email protected]", amount: 5000 });
await wallet.payLightningInvoice("lnbc100u...");
```
## Compared to Ark
| Aspect | Spark | Ark |
|--------|-------|-----|
| Operator | k-of-n FROST | 1 ASP per round |
| Architecture | Leaf trees | VTXO trees |
| Round-based | Continuous | Periodic rounds |
| Status | Live beta | ARKADE live beta |
| Lightning integration | Native | Optional / future |
| Stablecoins / tokens | Yes (planned) | Yes (Arkade Assets) |
## Use cases
- **Stablecoin / token payments** on Bitcoin (multi-asset).
- **Mobile-first wallets** with no channel-management UX.
- **Enterprise**: integrated with Lightspark's existing LN
infrastructure.
## Status & roadmap (2026 Q2)
- Beta active with 2 operators.
- Q2 2026 roadmap: expanded operator set, more jurisdictions, deeper
Lightning integration, asset support.
- UMA (Universal Money Address) integration alongside Spark for
cross-currency payments.
## Limitations
- **k-of-n trust**: although FROST minimizes single-operator
compromise, you still trust the operator collective.
- **Lightning bridging**: requires LSP-like layer; integration costs
apply.
- **Newer**: less battle-tested than Lightning.
## See also
- [statechains/SKILL.md](../statechains/SKILL.md)
- [ark/SKILL.md](../ark/SKILL.md)
- [../../cryptography/frost/SKILL.md](../../cryptography/frost/SKILL.md)
- [../../lightning/uma/SKILL.md](../../lightning/uma/SKILL.md)
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.