Off-chain Bitcoin

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.

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.

Figure 1.An illustrative split tree and a transfer; the SDK’s deposit flow starts with a single leaf. Trees can have more levels, and every transaction also exists in a second, “direct” version; see the precise version.

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

Figure 2.Paying Bob from a wallet of leaves, following the selection rules in Spark’s SDK. Pay a few amounts in a row and watch the wallet change. The provider’s fee is ignored, and the leaves it returns are modelled as the binary pieces of the amount and of the change.

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

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

Sources

Code is cited from buildonspark/spark at commit 0b3a32a (24 August 2026).

  1. Spark documentation, “Trust model” and “Core concepts”.
  2. Spark documentation, “FROST signing”.
  3. Spark documentation, “Transfers”.
  4. Spark documentation, “Technical definitions” (leaves, branches, splits, timelocks).
  5. Timelock constants InitialTimeLock = 2000, TimeLockInterval = 100, RenewTimelockThreshold = 300, DirectTimelockOffset = 50. spark/constant.go, lines 15–42.
  6. Spark SDK leaf selection and swap: services/leaf-manager.ts, lines 1140–1320; power-of-two denominations: utils/optimize.ts, line 3.
  7. Spark SDK configuration: threshold 2 (line 277), signing operators (lines 381–405), SSP endpoint (line 28).
  8. Zero-value pay-to-anchor output: spark/common/bitcoin.go, lines 19–21; CPFP and direct node transactions: utils/transaction.ts, lines 63–105.
  9. Spark documentation, “Unilateral exit”.
  10. Spark documentation, “Lightning”.
  11. Spark documentation, “Estimate fees” and FAQ.
  12. Spark documentation, “Tokens: core concepts”.
  13. Spark documentation, “Tokens: freezing”.
  14. Spark, “Spark is live”, 29 April 2025.
  15. Spark documentation, “Limitations” (watchtowers, loss of liveness).
  16. Spark, status page, viewed 10 October 2026.
  17. Spark documentation, “Privacy”.
  18. SDK deposit construction: createTreeRoot, a single root node and its refunds.

Checked 10 October 2026.