Spark
What changes when the co-signer is a group and coins come in pieces?
Spark is a statechain with two upgrades: the server is replaced by a committee of operators, any two of three of whom must sign, and coins can be divided into leaves, like banknotes, that change hands separately. A service provider makes change and connects Spark to Lightning.
- Built by
- Lightspark; beta mainnet since 29 April 202514
- Operators
- Lightspark, Breez and Flashnet; any two of the three can sign7
- What moves
- Leaves in power-of-two amounts, each a branch of a pre-signed tree
- You trust
- Enough operators delete old key shares at each transfer; the service provider for swaps and Lightning
The idea: a committee and banknotes
Spark starts from the statechain trick, a coin locked to your key plus a server’s key that changes owners when the server swaps its key, and makes two changes.
- The server is a committee. The operators’ key is split between several companies, today Lightspark, Breez and Flashnet, and any two of the three must cooperate to use it.2,7 No single company can help a previous owner cheat.
- Coins can be divided into banknotes. Each leaf changes hands on its own, so you can pay amounts other than your whole deposit. The SDK starts a deposit with a single leaf; splitting and swaps with the service provider supply smaller leaves, using powers of two sats as denominations.4,6,18
A third party, the Spark Service Provider, makes change when your leaves don’t add up to the amount you want to pay, and connects Spark to Lightning.1,10 Figure 1 illustrates a coin split into a tree; this is not a required step for every deposit.
Paying an exact amount
Because leaves come in fixed sizes, paying works like paying with banknotes. The wallet first looks for leaves that add up to exactly the amount. If there is no exact combination, it hands some small leaves to the Service Provider, which sends back leaves in the sizes needed, like a change machine, and then pays.6 Both halves of the swap are ordinary Spark transfers, and the provider charges a fee.11
Lightning without a channel
Spark wallets do not run Lightning nodes. To pay an invoice, the user agrees to transfer leaves to the SSP on condition that the invoice gets paid, and the operators lock those leaves until a deadline. The SSP pays the invoice over Lightning and presents proof of payment, and the operators then finalise the transfer. If the deadline passes first, the operators unlock the leaves and they stay with the user.10
For receiving, the invoice’s preimage is split among the operators, who have to cooperate to reconstruct it. This lets a user receive a Lightning payment while offline.10 In both directions, the atomicity is enforced by the operators, under the same threshold assumption as transfers.
Fees listed on 10 October 2026: Spark-to-Spark transfers are free for now; sending to Lightning costs 0.25% plus routing; receiving from Lightning is free for the receiver, while the sender pays 0.15% through route hints.11
Tokens
Spark also carries tokens, under the name BTKN. A token holding, called a TTXO, records an owner, a token identifier, an amount, a revocation commitment and withdrawal parameters, and maps to a pre-signed Bitcoin transaction that can take it on chain. When a TTXO is spent, the operators release their shares of its revocation key, so if anyone later broadcasts the spent output, watchtowers can sweep it.12
Issuers can freeze a public key. The operators keep a list of frozen keys and reject transfers from them; Spark’s documentation notes that this is enforced by the operators, not at the protocol level, and that it can be undone.13 Holding a stablecoin on Spark therefore adds the issuer’s reserves and policies to everything else this chapter asks you to trust.
Leaving
Cooperatively, the user and the operators sign a transaction that pays the leaves to any Bitcoin address. The listed fee is 250 × fee rate + 750 sats, flat regardless of the amount.11
Unilaterally, the wallet broadcasts the leaf’s chain from the root down, each node transaction submitted as a package with a fee-bumping child, and then the refund once its timelock has passed.9 Spark’s documentation lists the conditions: Bitcoin Core 29 or later, for ephemeral anchors; confirmed Bitcoin of your own to pay the fees; and completing the process in one session, during which the wallet cannot be used. It recommends exiting only leaves above 16,348 sats, because smaller ones cost more in fees than they hold.9 The feature is marked beta.9
What you trust
- That enough operators delete their old key shares at every transfer. With two of three needed to sign, at least two must delete. Nothing on chain shows whether they did.
- That operators stay available. Any off-chain action needs two of the three. If the Entity stops, transfers stop, and users can only exit unilaterally.15
- That the SSP, and the operators, complete swaps and Lightning payments as agreed. The SDK’s mainnet configuration points at a single SSP run by Lightspark.7
- That your wallet, or a watchtower, is watching in case a stale refund path is broadcast.
- That issuers honour their tokens, if you hold any.
Spark makes no attempt to hide transfers from the operators. By default, a wallet’s Bitcoin balance and transfer history can also be queried publicly; a privacy setting limits those queries to the owner and one viewer key, and token activity stays public either way.17
Reliability so far
Spark’s public status page lists, among others, outages of a single operator (a database outage and an expired certificate), intermittent Lightning failures at the SSP, and a degraded leaf-renewal service that left some leaves stuck in a RENEW_LOCKED state. None of the listed incidents reports a loss of funds. The page does not show dates in its incident summary.16
The precise version
Keys. The operators’ key is created by distributed key generation and Shamir-shared, so any t of the n operators can sign. A leaf’s key is Y = U + S, the user’s key plus the operators’ key, and Spark’s modified FROST makes the user a required signer. A transfer tweaks the operators’ shares by the difference between the old and new owner’s keys without any operator learning the tweak.2,3 The SDK’s mainnet configuration lists three operators with a threshold of two.7 Spark calls its model “moment-in-time” trust: enough operators must behave honestly during a transfer, and operators compromised later cannot undo it.1 With two of three, at least two must really delete their old shares.
Timelocks. Refunds use relative timelocks. A new leaf’s refund waits InitialTimeLock = 2000 blocks, and each transfer lowers it by TimeLockInterval = 100. When it reaches RenewTimelockThreshold = 300 or less, the leaf is renewed: the wallet and operators re-sign the leaf’s transactions so the refund starts high again.5 Because the countdown starts only when the tree is broadcast, a leaf has no fixed expiry date.4
Fees for the tree. Every tree transaction is signed twice: once with a zero-value pay-to-anchor output, so a child transaction can pay its fee, and once as a “direct” version that pays its own fee but waits DirectTimelockOffset = 50 blocks longer.5,8 Watchtowers, which hold no secrets and can be run by anyone, broadcast the current owner’s refund if a stale one appears.15
Leaf selection. The SDK picks leaves greedily, largest first, and succeeds only on an exact sum. Otherwise it hands the smallest leaves that cover the amount to the SSP and selects again from what comes back. Denominations run from 20 to 227 sats.6
The 16,348-sat figure is quoted from Spark’s unilateral-exit documentation as written; 214 is 16,384, so it may be a typo.9
Where this explanation stops
- The FROST modifications, distributed key generation and the transfer’s exact message flow are summarised, not shown.
- The leaf figure ignores swap fees and does not model the SSP’s actual choice of leaves.
- Renewal has several variants in the code; only its purpose is described here.
- Token exits, bonds and watchtower incentives are mentioned but not explained.
Sources
Code is cited from buildonspark/spark at commit 0b3a32a (24 August 2026).
- Spark documentation, “Trust model” and “Core concepts”.
- Spark documentation, “FROST signing”.
- Spark documentation, “Transfers”.
- Spark documentation, “Technical definitions” (leaves, branches, splits, timelocks).
- Timelock constants
InitialTimeLock = 2000,TimeLockInterval = 100,RenewTimelockThreshold = 300,DirectTimelockOffset = 50. spark/constant.go, lines 15–42. - Spark SDK leaf selection and swap: services/leaf-manager.ts, lines 1140–1320; power-of-two denominations: utils/optimize.ts, line 3.
- Spark SDK configuration: threshold 2 (line 277), signing operators (lines 381–405), SSP endpoint (line 28).
- Zero-value pay-to-anchor output: spark/common/bitcoin.go, lines 19–21; CPFP and direct node transactions: utils/transaction.ts, lines 63–105.
- Spark documentation, “Unilateral exit”.
- Spark documentation, “Lightning”.
- Spark documentation, “Estimate fees” and FAQ.
- Spark documentation, “Tokens: core concepts”.
- Spark documentation, “Tokens: freezing”.
- Spark, “Spark is live”, 29 April 2025.
- Spark documentation, “Limitations” (watchtowers, loss of liveness).
- Spark, status page, viewed 10 October 2026.
- Spark documentation, “Privacy”.
- SDK deposit construction: createTreeRoot, a single root node and its refunds.
Checked 10 October 2026.