A few of you might keep in mind the article I revealed just a few years in the past, “Utilizing an Abacus to Perceive the Lightning Community.” I wrote this text after it grew to become clear that many individuals do not totally perceive how Lightning works. My purpose on the time was to not clarify Lightning’s encryption or implementation particulars, however to demystify the core concepts behind the fee channel. I used the analogy of an abacus to concentrate on the idea slightly than the mechanism. It labored so properly that folks later adopted the abacus analogy to clarify lightning to inexperienced persons.
These days, I have been feeling a powerful sense of déjà vu.
Whereas discussing Spark, I seen an analogous sample. Some folks know the time period “state chain,” however for most individuals, the understanding stops there. And like Lightning again then, the issue is not an absence of intelligence or effort, it is merely that the underlying psychological mannequin will not be clear. So let’s strive the identical method once more. With out stepping into cryptographic terminology, I am going to clarify how Spark works conceptually.
At its core, Spark permits customers to ship and obtain Bitcoin with out broadcasting on-chain transactions. Bitcoins don’t transfer on the chain when possession adjustments. As an alternative, what adjustments is who can collectively approve spending. This joint authorization is shared between customers and a bunch of operators known as Spark Entities (SEs).
As an example how this works, think about that so as to spend a specific set of Bitcoins in Spark, you’ll want to full a easy two-piece puzzle.
- One piece of the puzzle is held by the person.
- The opposite half is held by SE.
You may solely spend your Bitcoin in case you have each matching items. Completely different Bitcoin units require totally different puzzles to be accomplished.
Now let’s examine what occurs when possession adjustments.
First, Alice has a puzzle piece that matches the piece SE has. She will spend Bitcoin by combining items to finish puzzles. When Alice desires to ship her Bitcoin to Bob, she permits Bob to create a brand new puzzle with SE. Importantly, the puzzle itself stays the identical. The previous and new puzzles have the identical form, however the items that make up them change. A brand new puzzle is designated for Bob. One face is related to Bob and the opposite face is related to SE. From that time on, solely the Bob half matches the SE half. Alice should have the previous puzzle items, however they’re not helpful. As a result of SE destroyed the matching half, Alice’s half not matches into some other half and can’t be used to spend Bitcoin. Though the Bitcoin in query by no means moved on-chain, possession successfully handed to Bob.
Bob can repeat the identical course of later and ship the identical set of Bitcoins to Carol, and so on. Every switch works by displacing a bit of the puzzle slightly than transferring funds up the chain.
At this level, questions naturally come up. What if SE merely does not throw away the previous puzzle piece? In that case, SE may collude with its earlier proprietor Alice to make use of Bob’s Bitcoin. We have now to belief SE that when possession handed from Alice to Bob, in addition they destroyed the puzzle piece. Nevertheless, you will need to perceive that SE will not be a single occasion. It’s made up of a bunch of operators, so the SE facet of the puzzle is rarely held by only one operator. Swapping puzzles requires the cooperation of a number of operators. Neither occasion can secretly maintain previous puzzles lively or recreate them later. It’s sufficient for one operator to behave actually in the course of the switch to stop the previous puzzle from being activated once more.

The important thing thought is easy. Spark doesn’t transfer Bitcoin on-chain between customers. This replaces anybody who holds legitimate permissions to make use of them. On-chain Bitcoin doesn’t transfer. What adjustments is which two puzzle items match collectively.
To maintain this dialogue targeted, I deliberately unnoticed Spark’s unilateral termination mechanism. This is a vital a part of Spark’s safety mannequin, but it surely distracts from the central thought I need to convey right here. Importantly, Spark will not be a system the place customers are completely depending on SE. Though day by day transfers depend on co-authorization, Spark additionally gives customers with a solution to spend funds on-chain with out requiring SE cooperation. This escape hatch is current by design and is past the scope of this dialogue.
This submit “Spark Defined Like You are 5” first appeared in Bitcoin Journal and was written by Roy Sheinfeld.
