Inside a Spark Transfer: How Statechain Ownership Changes Without an On-Chain Transaction
Spark transfers move Bitcoin ownership off-chain through statechain key rotation. A technical walkthrough of what happens during a Spark payment.
When you send Bitcoin on Spark, no transaction hits the blockchain. The same UTXO sits at the same address, controlled by the same 2-of-2 multisig. What changes is who holds the keys. The sender's key share is destroyed, a new share is generated for the recipient, and the Spark Entity adjusts its own share to match. The entire process completes in under a second, costs nearly nothing, and preserves self-custody throughout.
This article walks through the full lifecycle of a Spark transfer: from the moment a sender initiates a payment to the moment the recipient gains exclusive spending authority. Along the way, it explains the cryptographic machinery that makes this possible: FROST threshold signatures, key rotation, and pre-signed exit transactions that guarantee users can always leave.
How Statechains Move Bitcoin Without Transactions
Traditional Bitcoin transfers broadcast a transaction that spends one UTXO and creates another. Statechains take a different approach: instead of moving coins, they rotate the keys that control them. The concept was introduced by Ruben Somsen in 2018 and has since evolved through several implementations, including Mercury Layer and now Spark.
The core idea relies on a 2-of-2 key arrangement. One key belongs to the user, the other to a facilitating entity. Neither party can spend the funds alone. On each transfer, both sides cooperate to rotate the entity's share and generate a fresh share for the new owner. The previous owner's share becomes cryptographically useless once this rotation completes.
Spark enhances this original design with two critical additions: FROST threshold signatures distribute the entity's key across multiple independent operators, and a leaf architecture enables partial-balance transfers instead of requiring whole-UTXO movements.
The Two-of-Two Key Model
Every Spark leaf (the off-chain representation of a user's balance) is locked by a combined public key derived from two shares: the user's share and the Spark Entity's share. The Spark Entity is not a single server: it is a group of independent Spark Operators (currently Lightspark and Flashnet) who collectively hold one share using distributed key generation and threshold signing via FROST.
No single operator ever possesses the entity's complete key. A threshold quorum (t-of-n) must cooperate to produce a valid signature on the entity's side. The user always holds a full, independent key share. This means:
- A rogue operator cannot sign without the rest of the quorum and the user
- The user cannot spend without operator cooperation (except via the exit path)
- Valid spending requires both sides: the user and a quorum of operators
Why 2-of-2, not multisig? From Bitcoin's perspective, the on-chain output looks like a standard Taproot output locked to a single aggregated public key. The 2-of-2 structure is hidden inside Schnorr signature aggregation: both the user's key and the operator quorum's key combine into one public key. This is more efficient and more private than a traditional multisig script.
Step-by-Step: What Happens During a Spark Transfer
The following sequence describes what happens when Alice sends Bitcoin to Bob on Spark. The Bitcoin never moves on-chain. Instead, cryptographic authority over a leaf rotates from Alice to Bob through a coordinated FROST signing protocol.
Step 1: Alice initiates the transfer
Alice's wallet contacts the Spark Entity to signal a transfer to Bob's Spark address. The request includes the leaf (or leaves) Alice wants to transfer and Bob's public identity. At this point, Alice still holds her key share and retains full spending authority.
Step 2: The Spark Entity begins key rotation
The operators in the Spark Entity execute a distributed key generation round to produce a new key share for Bob. Simultaneously, each operator adjusts its own portion of the entity's key. The mathematical relationship is preserved: Bob's new share combined with the entity's adjusted share yields the same aggregated public key that locks the on-chain UTXO. From Bitcoin's perspective, nothing has changed.
Step 3: Pre-signed exit transactions are created
Before the transfer finalizes, the Spark Entity cooperates with Bob to produce a new set of pre-signed exit transactions. These transactions allow Bob to unilaterally withdraw his funds to Bitcoin L1 at any time, even if the operators go offline. Each exit transaction uses a relative timelock (CSV): the current owner always gets the shortest timelock, ensuring previous owners cannot race to claim the funds.
Step 4: Alice's key share is deleted
Once Bob's exit transactions are in place, the operators delete the key material associated with Alice's previous share. This is the critical step: Alice's share becomes cryptographically useless. Without a valid share that pairs with the entity's current key, Alice cannot produce a signature, cannot initiate a transfer, and cannot spend the funds.
Step 5: Bob receives ownership
Bob's wallet now holds a valid key share that, combined with the entity's adjusted share, constitutes full spending authority over the leaf. Bob also holds pre-signed exit transactions that let him leave Spark for L1 at any time. The transfer is complete. No block confirmation was needed. No on-chain fee was paid.
The FROST Key Rotation in Detail
The key rotation that powers Spark transfers is built on FROST (Flexible Round-Optimized Schnorr Threshold Signatures), a protocol designed by Chelsea Komlo and Ian Goldberg. FROST allows a group of signers, each holding a share of a private key, to cooperatively produce a valid Schnorr signature without any single party ever reconstructing the full key.
Two-round signing
Per the IETF CFRG specification, FROST signing requires exactly two rounds:
- Commitment round: each participating operator generates a random nonce pair and broadcasts the corresponding commitment to the other participants. These nonces are not deterministic: using deterministic nonces in a threshold setting is insecure because a malicious co-signer could extract the honest signer's key share.
- Signing round: each participant uses the collected commitments, the message being signed, and its own key share to compute a partial signature. These partial signatures are then combined into a single valid Schnorr signature that is indistinguishable from a standard single-signer signature.
Key tweaking for ownership transfer
During a Spark transfer, the FROST protocol does more than produce a signature: it rotates key shares. The entity adjusts its key material (a process called key tweaking) such that the new owner's freshly generated share pairs correctly with the updated entity share. The old owner's share no longer corresponds to any valid key pair. This is the mathematical mechanism that invalidates the sender's control.
The elegance of this design is that the aggregated public key visible on the Bitcoin blockchain does not change. The UTXO stays exactly where it is, with the same locking script. Only the internal distribution of key shares has shifted.
Message Flow: Sender, Operator, Recipient
The following table shows the sequence of messages exchanged during a Spark transfer. Each row represents a distinct protocol step, and the arrows indicate the direction of communication.
| Step | From | To | Action |
|---|---|---|---|
| 1 | Sender | Spark Entity | Request transfer: specify leaf, recipient address, amount |
| 2 | Spark Entity | Operators (internal) | Initiate distributed key generation for recipient's new share |
| 3 | Operators | Operators (internal) | Exchange nonce commitments (FROST round 1) |
| 4 | Operators | Operators (internal) | Compute and combine partial signatures (FROST round 2) |
| 5 | Spark Entity | Recipient | Deliver new key share and pre-signed exit transactions |
| 6 | Spark Entity | Internal | Delete sender's old key material |
| 7 | Spark Entity | Sender | Confirm transfer complete; sender's leaf is invalidated |
This entire sequence completes in sub-second timeframes under normal network conditions. For a deeper look at signing performance benchmarks, see FROST Signing Rounds in Spark.
Why the Operator Cannot Steal Funds
The 2-of-2 structure means that the Spark Entity alone cannot produce a valid signature. Even if every operator in the entity colluded, they would hold only one of the two required key shares. Without the user's cooperation, the funds cannot move. This is the fundamental guarantee that distinguishes Spark from custodial solutions.
There is one nuance: if all operators collude with a previous owner (someone who held a key share before it was supposedly deleted), they could theoretically reconstruct the 2-of-2. This is the key deletion assumption: security relies on at least one operator honestly discarding old key material after each transfer.
1-of-n security: Spark's trust model requires that only one out of n operators behaves honestly during each transfer. This is a weaker assumption than requiring all operators to be honest. As the operator set grows and diversifies across jurisdictions and organizations, the probability of total collusion decreases significantly. For a full analysis of this trust model, see Statechains: Bitcoin Scaling Deep Dive.
How Users Can Always Exit to On-Chain Bitcoin
Every Spark user holds pre-signed exit transactions that enable unilateral withdrawal to Bitcoin L1. These are created during the transfer process (step 3 above) and do not require any further cooperation from the Spark Entity to broadcast.
The exit mechanism
According to the Spark withdrawal documentation, the unilateral exit works as follows:
- The user broadcasts the branch transaction that connects their leaf to the on-chain UTXO root
- A relative timelock (using Bitcoin's OP_CHECKSEQUENCEVERIFY) begins counting from the moment the branch transaction is confirmed
- Once the timelock expires, the user broadcasts the pre-signed exit transaction, which sends the funds to the user's personal Bitcoin address
The critical detail: each successive transfer uses a shorter relative timelock. The current owner always has the shortest path to exit, which prevents previous owners from racing to claim the same funds. Even if a prior owner broadcasts an old exit transaction, the current owner's transaction becomes valid first.
Cooperative vs. unilateral exit
| Property | Cooperative Exit | Unilateral Exit |
|---|---|---|
| Requires operator cooperation | Yes | No |
| Speed | Near-instant (single on-chain tx) | Slower (timelock waiting period) |
| On-chain cost | One transaction fee | Multiple transaction fees (branch + exit per leaf) |
| When to use | Normal withdrawals | Operators unresponsive or censoring |
| Trust required | Operator must cooperate | None: purely cryptographic |
The worst case for a Spark user is not theft: it is unavailability. If all operators go offline, new Spark transfers stop, but existing funds remain accessible via the unilateral exit path. This is a liveness guarantee, not a safety concern.
Leaves: How Spark Handles Partial Transfers
Original statechains had a significant limitation: each transfer moved an entire UTXO. If you deposited 1 BTC, you could only send exactly 1 BTC. Spark solves this with a tree structure of off-chain leaves, allowing partial-balance transfers.
Tree structure
A Spark deposit creates a tree with three layers:
- Root: the on-chain UTXO funding the tree, locked by the aggregated 2-of-2 key
- Branches: internal off-chain transactions that connect the root to individual leaves
- Leaves: terminal off-chain transactions representing individual user balances, each with its own key share pair and exit path
When Alice wants to send 0.3 BTC of her 1 BTC leaf, the leaf splits into two new leaves: one worth 0.3 BTC for the recipient and one worth 0.7 BTC that remains with Alice. This splitting happens entirely off-chain through key rotation on each new leaf. Leaves can also merge back together when a user consolidates balances.
Comparing Spark Transfers to Lightning and On-Chain
To understand what makes Spark's transfer model distinct, it helps to compare it directly against the two most common ways to move Bitcoin: on-chain transactions and Lightning payments.
| Property | On-Chain Bitcoin | Lightning Network | Spark |
|---|---|---|---|
| What moves | UTXO ownership (broadcast) | Channel balance (routed HTLCs) | Key shares (rotated off-chain) |
| Finality | Probabilistic (confirmations) | Instant (within channel) | Instant (key rotation) |
| On-chain footprint | Every transfer | Channel open/close only | Deposit/withdrawal only |
| Requires channel | No | Yes | No |
| Inbound liquidity needed | No | Yes | No |
| Offline receiving | Yes (address only) | No (must be online) | Yes (SSPs hold conditionally) |
| Trust model | Trustless (PoW consensus) | Trustless (penalty mechanism) | 1-of-n honest operator |
| Cost per transfer | Mining fee (variable) | Routing fee (small) | Near zero |
| Partial amounts | Native (change outputs) | Native (channel updates) | Via leaf splitting |
The key UX difference is that Spark requires no channel setup, no inbound liquidity management, and no online presence to receive payments. For wallet developers, this translates to a significantly simpler integration path. For users, it means payments work more like sending a text message than managing a payment channel.
Lightning Interoperability
Spark is not a replacement for the Lightning Network: the two protocols interoperate. Spark Service Providers (SSPs) bridge the gap by executing atomic swaps between Spark leaves and Lightning HTLCs. When a Spark user pays a Lightning invoice, the SSP routes the payment through Lightning while atomically receiving the equivalent Spark leaf. Either both legs complete or neither does: there is no custodial risk in the bridge.
A notable feature: Spark users can receive Lightning payments while offline. The SSP holds the incoming payment conditionally until the recipient comes online. If the recipient never claims it, the payment times out and returns to the sender, following standard Lightning behavior.
The Trust Model: What You Are Actually Trusting
Spark's security rests on one core assumption: at least one Spark Operator honestly deletes its old key share after each transfer. This is sometimes called the “moment-in-time” trust model because trust is only required at the instant of transfer. Once key rotation completes and old shares are deleted, previous operators (even if later compromised) cannot affect the funds. This property is called perfect forward security.
What operators can and cannot do
| Operators can | Operators cannot |
|---|---|
| See transfer metadata (amounts, participants) | Move funds without the user's signature |
| Temporarily delay transfers by going offline | Steal Bitcoin (even if all operators collude) |
| Refuse to process new transfers (censorship) | Reverse a finalized transfer |
| Observe which leaves are being transferred | Prevent a user's unilateral exit to L1 |
The key deletion caveat
There is no way to cryptographically prove that a key has been deleted. This is a fundamental limitation of the statechain model, not specific to Spark. Somsen acknowledged this in his original proposal: the protocol is non-custodial only if the statechain entity behaves correctly.
Spark mitigates this through operator distribution. With multiple independent operators running in different jurisdictions and organizations, the attack requires all of them to collude with a specific previous owner. As the operator set expands, this becomes increasingly impractical. For a thorough treatment of these trust assumptions, see the statechain scaling deep dive.
Watchtowers and Fraud Prevention
Spark operators double as watchtowers, monitoring the Bitcoin blockchain for fraudulent exit attempts by previous owners. If a prior owner tries to broadcast an old pre-signed exit transaction, the watchtower detects the on-chain activity and can alert the current owner.
Unlike Lightning's penalty mechanism, Spark exit transactions are not “toxic.” Multiple parties can broadcast competing exits simultaneously, and the valid one with the shortest timelock wins. The current owner always holds the shortest timelock, so honest behavior is always rewarded even if a prior owner attempts fraud.
Developer Integration
For developers evaluating Spark for wallet integration, the transfer mechanism translates into a simple API. The Spark SDK exposes a transfer() method that takes a recipient's Spark address and an amount in satoshis. The SDK handles all the underlying complexity: contacting the Spark Entity, running the FROST signing rounds, rotating keys, and verifying that old shares have been invalidated. Developers do not need to implement FROST, manage key shares, or construct exit transactions manually.
Transfer status can be queried through getTransfers() with optional pagination. For a complete integration walkthrough, see the Spark SDK integration guide or start with the Spark developer documentation. Wallets like General Bread demonstrate what a production Spark wallet looks like in practice.
Key Takeaways
Spark transfers replace on-chain broadcasting with off-chain key rotation. The UTXO never moves: what changes is the cryptographic authority to spend it. FROST threshold signatures ensure no single operator holds the complete key, and pre-signed exit transactions guarantee that users can always fall back to Bitcoin L1.
The tradeoff is the key deletion assumption: you trust that at least one operator honestly discards old key material. This is a weaker trust requirement than custodial solutions demand, but a stronger one than Lightning's fully trustless penalty model. For many use cases, particularly mobile wallets and applications where channel management is impractical, Spark's model offers the right balance between simplicity and sovereignty.
This article is for educational purposes only. It does not constitute financial or investment advice. Bitcoin and Layer 2 protocols involve technical and financial risk. Always do your own research and understand the tradeoffs before using any protocol.

