Skip to main content

From offchain to offchain: Statechains meets Lightning

 


Without a doubt, the most significant off-chain Bitcoin solution is the Lightning network. But in its wake, the statechain has emerged as an intriguing replacement. There is currently a proposal to link the two offchain networks.


From an ocean, for example, you can see sunbeams glistening in the water, waves rippling, and possibly a jellyfish drifting toward the light.


But you only see a small portion of it. The distance from the sea's surface to its bottom is hundreds of meters. It has dozens of different fish species swimming in it, crabs and starfish crawling on the bottom, shells clinging to rocks, and sea plants climbing up. A completely new world starts where your gaze diverges.


You can picture a blockchain like Bitcoin, just like the sea. What you see on the outside is only a small portion of what is actually there; the set of UTXOs (coins) and transaction history that full nodes store are just the beginning of a much larger world.


It's the plan, at least. With Bitcoin, it is primarily Lightning that acts as "Layer 2" on the blockchain and transports transactions "offchain.". However, there are other layers below the surface in addition to Lightning. The state chain is another. It is more recent, experimental, and scarcer still. But it already functions.


The idea of fusing Statechain and Lightning has even been floated recently, which is an intriguing idea. Let's first define a statechain, though, before moving on.


Statechains: deliver keys rather than sending bitcoins.

The fundamental concept behind the statechain is that private keys are transferred rather than actual bitcoins when sending money using the blockchain. Similar to how the fabled coins that were featured in every bitcoin article's image used to.


It goes without saying that there are drawbacks: There is no assurance that I won't keep my private key if I give it to you. To be certain, you would need to initiate a transaction right away to send the bitcoins to a new address for which you hold the private keys. The key handover could have been abandoned at that point.


A solution to the issue was put forth by Bitcoin developer Ruben Somsen back in 2018: the bitcoin is stored in a 2-of-2 multisig address, making it impossible to move it without two keys approving the transaction. As usual, I've got one key that I'd like to give to you instead of making a transaction. On the other hand, the second key is held by an independent entity that controls the statechain. When the final owner of the given key requests it, it must co-sign a transaction.


The sender tells her, and she tells the receiver, which is a fairly straightforward way for the neutral party to find out who the true owner of the key is. The sender also signs a message indicating that he is sending the recipient the key at the same time, and so on. By doing this, a public mini-blockchain that lists the true owner is created. Although this does not stop the neutral party from lying, at least it makes it known.


The sender then creates a backup transaction that sends the coins from the multisig address to a new address, but only after a specific amount of time has passed, in case the neutral party disappears or misplaces their keys. Before the sender deposits the coins on the multisig address, this transaction is signed by the neutral party. The recipient creates an analog transaction that can replace mine in order to stop me from paying the coins back to myself in the past.


The construction is reminiscent of Lightning's payment channels, and the details are intricate.


Mercury's initial use of it.

Schnorr, for the multisig construction, and Sighash_Anyprevout, a unique method of hashing the signature, were still lacking in the Bitcoin protocol when Ruben Somsen first proposed statechains in 2018.


Taproot enabled the activation of Schnorr, but a softfork is still required to enable Sighash_Anyprevout. Although there is a thorough BIP, it still appears to be up for debate. At least no date has been set for when it should be turned on.


The creators of CommerceBlock 2020 have begun to implement a variant that does not need Sighash_Anyprevout in order to still enable statechains. They make use of a clever nLocktime design known as Mercury, where the backup transactions are only valid at a specific block height X. the initial backup transaction at X, the subsequent ones at X-1, X-2, and so forth. In the event of a fraud attempt, the current owner can always pay out the bitcoins to himself first thanks to this method.


The Mercury Wallet, developed by CommerceBlock, embodies this idea. In addition, the Mercury Wallet offers CoinSwaps, which let users trade their own coins for those of other users in an anonymous fashion. This is a risky, but intriguing, way to increase privacy. It's risky because you might get unlucky and receive bitcoins that are extremely soiled.


Lightning and statechain collide.

The BLIP provided by CommerceBlock is equally as daring. BLIP stands for "Bitcoin Lightning Improvement Proposal," i.e. e. a suggestion to make Lightning better.


It should be possible to create a Lightning channel through a statechain balance rather than by sending an onchain transaction, as proposed by CommerceBlock, to connect Lightning with Statechain.


To accomplish this, the sender must simply create a statechain transaction that creates a lightning channel with the contents of the statechain address, along with all the information and Lightning-specific smart contracts.


One way this connection helps is by allowing fractions of the coin to be transferred within the payment channel rather than having to spend the entire coin, which is required when a key is given. On the other hand, a state chain makes it possible to transfer a payment channel to another party.


From a higher perspective, such as the sea's surface, connecting statechains to Lightning would have several benefits. For one, it would enable Lightning to scale even further since onchain transactions would no longer be required to generate an open Lightning channel. They would also enhance privacy by erasing the link between a Lightning channel and users' wallets.


Interestingly shaped but unlaid eggs.

Naturally, we're still discussing unhatched eggs here. Statechains appear to still have a niche existence, centered around CommerceBlocks or Mercury, while Lightning is experiencing increasing adoption. There is a statechain transaction every few hours, or occasionally just every few days, according to the Mercury block explorer.


It is still unclear whether the BLIP will be put into action. Since lightning is already complicated, adding more complexity might not be the best idea at this time. How do stock exchanges handle this, and how should wallet developers ever do something like this?


Despite this, the proposal makes one thing abundantly clear: a vast array of off-chain layers are capable of developing beneath the surface of the Bitcoin blockchain.

My Top Picks
Honeygain - Passive earner that pays in BTC or PayPal
MandalaExchange -The Best no KYC crypto Exchange! 
Womplay - Mobile dApp gaming platform that rewards in EOS and Bitcoin
Cointiply - The #1 Crypto Earning Site
LiteCoinPay - The #1 FaucetPay earner for Litecoin 
LBRY/Odysee - YouTube Alternative that lets you earn Money by viewing videos!
FaucetPay - The #1 Microwallet Platform
FREEBTC - The #1 FaucetPay earner for Satoshi's
FireFaucet - An earning site that pays better for some than Cointiply

Comments

Popular posts from this blog

The 5 largest platforms for non-fungible token (NFT) collectibles

  Since the beginning of 2021, non-fungible tokens (NFT) have had no holding back and the sector is setting new records almost every day.  More and more artists, stars and brands are realizing the potential - NFT are well on their way to catapulting the crypto space into the mainstream.  But which collectibles are currently the most popular? What are NFT? NFT are unique tokens that cannot be exchanged one-for-one for an equivalent token.  Any asset that is tokenizable can be an NFT.  This includes, for example, (digital) works of art, trading cards, game items and crypto domains.  Theoretically, however, real estate or securities can also be mapped as NFT. NFTs can be used to transparently map ownership structures on a public blockchain.  This allows them to store value just like real objects, even if additional copies are easy to make.  For example, the original picture of the Mona Lisa is significantly more valuable than a photo, as everyone kno...

CARDALONIA: THE CARDANO METAVERSE OPENS THE GATES!

  Have you ever been to Cardalonia? With these words, the Cardano Metaverse called Cardalonia starts the gates. In this 3D world, developers and users can interact with each other. First of all, users have to create an individual character with which they can move online. After that you can enter one of the worlds built by developers with this character. You can also purchase your own land in the Cardano Metaverse via the marketplaces in Cardalonia . This is secured by Cardano's blockchain technology and therefore offers a relatively secure transfer of ownership. Since these are only digital plots of land, it is not yet entirely clear when the plots of land are purchased whether they can also be sold again in the future. A possible profit cannot be estimated at the moment. In Cardalonia, the cryptocurrency Lonia is used. The maximum amount of tokens in circulation is 100,000,000. The team consists of Alice Sand (Co-Founder), Vasil Air (CTO) and Dustan Water (Fullstack Developer). T...

Cardano: This is the vision that founder Charles Hoskinson has

  The Altcoin Cardano has tended to decline in recent weeks.  The Alonzo upgrade was supposed to bring improvements, but it soon turned out to be a disappointment.  Cardano founder Charles Hoskinson presented his vision for the cyber motto in a live Twitter video. • Cardano in the last few months under pressure • Charles Hoskinson explains his Cardano vision via Twitter • Security and privacy at the center The cryptocurrency  Cardano  has had a difficult few months.  While founder Charles Hoskinson's cyber motto has had a strong run in 2021, it has been steadily downhill in recent months.  Cardano is faced with some difficulties.  The so-called Alonzo upgrade went live in mid-September, for which crypto fans had high hopes, but which soon turned out to be a disappointment.  The upgrade should make it possible to use smart contracts on the cryptocurrency as well.  It soon turned out, however, that although these were entered into Cardano,...