• BTC Dominance: %
XBT.Market
Advertisement
  • Home
  • Coins MarketCap
  • Crypto Exchanges
  • Crypto Calculator
  • Top Gainers and Loser
  • News
  • Contact Us
No Result
View All Result
XBT.Market
No Result
View All Result
Home Bitcoin

Integrating Statechains With Lightning Channels Can Allow For Off-Chain Balancing And Improved Flexibility

Jon Hartney by Jon Hartney
December 22, 2022
in Bitcoin, Blockchain, Business, Market
0
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter

A Commerceblock BLIP facilitates Lightning channels built on Bitcoin statechains, improving flexibility for the Layer 2 protocol.

Related articles

Bitcoin derivatives data shows room for BTC price to move higher this week

January 23, 2023

Bitcoin price consolidation opens the door for APE, MANA, AAVE and FIL to move higher

January 22, 2023

Last year, I wrote about Commerceblock’s Mercury Wallet, an implementation of both statechains and CoinSwaps. This simultaneously introduced a new mixing tool as well as the first wallet to implement a new second-layer scaling solution. The team built off of Ruben Somsen’s original statechain proposal with some changes to make it work without the needed ANYPREVOUT/Eltoo sighash flag, and integrated a new CoinSwap design to allow users to mix multiple times without needing to transact on chain for each mix.

Background

To just quickly summarize for those who didn’t read my previous piece: a statechain is an off-chain mechanism for transferring freely between anyone completely off-chain. The original owner/user collaborates with a statechain operator to construct a ECDSA-MPC address where the private key is sharded with one half held by the user and the other half by the operator, then a timelocked, pre-signed withdrawal transaction is created and signed, with the operator before sending funds to the new address.

Neither side fully controls the private key, and the user has a pre-signed transaction that allows them to unilaterally take the coins back after the timelock. When the user wishes to transfer the statechain, they notify the operator who then collaborates with the receiver. The receiver and operator generate a new set of private key shares that correspond with the same address, and generate a new pre-signed transaction with a lower timelock than the last one, and then the operator deletes their old keyshare.

The way the cryptography works, the operator’s new keyshare will only work with the new user’s keyshare, so if they delete the old one, it is not even possible for them to collaborate with the old user to spend the coins. Also, with the newer withdrawal transaction having a lower timelock, that transaction can always be confirmed before the prior owner’s. This limits the number of times the statechain can be transferred before it has to be closed, but if the operator acts honestly, this prevents older owners from stealing funds.

A Lightning Channel On Top of A Statechain

Commerceblock is now working on a new BLIP (Bitcoin Lightning Improvement Proposal) to implement a design for something proposed in Somsen’s initial statechain proposal: establishing a Lightning channel on top of a statechain.

One of the shortcomings of a statechain by itself is that the entire UTXO has to be transferred at once. If, however, the statechain withdrawal transaction spends into a Lightning channel instead of a single user’s address, then fractions of the statechain can be transferred through the initial balance distribution in a channel and that channel can be used conventionally to make Lightning payments afterward.

The process first begins with a user creating a statechain. The creator and operator go through the normal process of creating the sharded key and signing a backup withdrawal transaction with a timelock, then the creator (Alice) finds a counterparty (Bob) that will accept statechains. Alice and Bob engage in the same protocol used to create a sharded key that Alice did with the statechain operator and generate their own shared key. Both of them then share both the cumulative public key and their individual public key shares to the statechain operator. This allows the operator to challenge both of them to individually sign and prove that they agree on the current balance for cooperative closes without waiting for the statechain withdrawal timelock to expire.

From here, with Bob’s authorization, Alice and the statechain operator sign a transaction directly spending the statechain into the Lightning channel multisig and handle the Lightning channel transaction creation. At this point, the statechain address is still controlled by just Alice and the operator but the transaction opening a Lightning channel is now in Bob’s possession with a lower timelock than the original statechain withdrawal, guaranteeing it can be confirmed before Alice can unilaterally close the statechain to herself. Then Alice and Bob finalize the protocol by completing one last update with the statechain entity, creating a final statechain transaction with a further decremented timelock using their combined key with the operator’s to make a withdrawal transaction that spends the funds to the Lightning channel. They can both now advertise the Lightning channel as open and the protocol is complete.

Improving The Utility Of Statechains

This proposal would greatly improve the utility of a statechain by loosening the strict liquidity dynamics of how they work. Whenever someone would be willing to accept a statechain but the denomination doesn’t match the payment, the sender can simply open a Lightning channel between them instead and wait until they need to spend the rest of the funds (or wind up receiving what they sent back) to finalize a transfer of the entire statechain balance. Such a possibility not only increases the utility of a statechain, but also increases the utility of the Lightning Network if properly supported.

Channel rebalancing is a necessity for nodes on the network, both routing nodes as well as edge nodes simply sending and receiving transactions. When funds flow completely to one side of a channel, it makes the channel useless for passing payments in one direction (if all of the money is on your side, then you can’t receive payments; if it’s on the other side, then you can’t send payments). This necessitates shuffling money from one channel to another, which also contributes to unbalancing the channels along the way to rebalance your own. Eventually this dynamic gets to a point where things must actually be rebalanced by swapping funds between Lightning and the base layer on-chain.

Statechains allow liquidity to be moved around with the same freedom provided by doing so on-chain, without needing to create the on-chain footprint or pay fees for it. Say you have a depleted channel, with all of the liquidity on the other side leaving you, no spending capacity and you also have a statechain. That statechain can be freely transferred to anyone who will accept it, and it can even have a Lightning channel on top of it if you aren’t sending the entire value, and it can be used to rebalance funds in your regular channel on your side.

This allows for much more efficiency in terms of how many channels you have to route through in order to rebalance your channel (remember, you are contributing to shifting the balances of every other channel you route through), in the best case literally sending it directly to the same peer that you have the channel that you are rebalancing open with. If you wish to close a channel with one peer and open it with another, you can even rebalance things so you have all of the balance of the channel and move it entirely off-chain to the new peer if it is built on top of a statechain.

The Future Of Statechains And Lightning

Discussing their plans going forward, Nicolas Gregory from Commerceblock said: “Our goal is to establish a standardized approach for combining statechains and Lightning technology in order to facilitate off-chain balancing of Lightning channels through the use of state channels. This specification will serve as the foundation for achieving this objective.”

From the very beginning, statechains were always proposed to interact with Lightning in order to solve the issue of using them by themselves: that you must transfer the entire value of the whole UTXO. They also provide a degree of flexibility to Lightning that it does not have on its own in terms of how liquidity is managed and transferred around the network.

Now that Lightning is at a healthy stage in its early growth, and a concrete implementation of statechains has existed for over a year, it’s time to start considering how these two technologies can interact together. Lightning as a network is a system for atomically-escrowing transfers between two parties that are not directly connected on the network graph. How each connection on that graph works, strictly speaking, should not matter to senders and receivers of payments, as long as it works.

Statechains and Lightning channels both have a lot to offer each other in terms of benefits, all that needs to be done is to work out standardizing the two interacting with each other.

This is a guest post by Shinobi. Opinions expressed are entirely their own and do not necessarily reflect those of BTC Inc or Bitcoin Magazine.

Read Entire Article
Tags: bitcoinMagzineCryptocurrencyInvestmentMining Bitcoin
Share76Tweet47

Related Posts

Bitcoin derivatives data shows room for BTC price to move higher this week

by Jon Hartney
January 23, 2023
0

BTC options data suggest that the Bitcoin price rally still has legs, even with wider economic concerns growing and the

Bitcoin price consolidation opens the door for APE, MANA, AAVE and FIL to move higher

by Jon Hartney
January 22, 2023
0

BTC could take a break from its sharp rally and if BTC price bounces off underlying support, APE, MANA, AAVE...

Genesis bankruptcy case scheduled for first hearing

by Jon Hartney
January 22, 2023
0

The first hearing in Genesis Capital's bankruptcy case will be held on January 23, according to court filings

Terra lending protocol Mars to launch mainnet

by Jon Hartney
January 22, 2023
0

The Mars Hub will launch an independent Cosmos application chain and issue MARS to users who hold the token during...

Central African Republic eyes legal framework for crypto adoption

by Jon Hartney
January 22, 2023
0

A 15-member committee is tasked with working on a legal framework that will allow cryptocurrencies to operate in

Load More
  • Trending
  • Comments
  • Latest

Ethereum Classic gets ‘endorsement’ from Vitalik Buterin, but ETC price still risks 50% crash

July 27, 2022

Critique on Helium’s $6.5K monthly revenue causes a stir

July 28, 2022

All aboard! Elon Musk’s Vegas Loop now taking Dogecoin payments

July 7, 2022

Cardano Vasil hard fork hit with another delay for several weeks

July 29, 2022

All aboard! Elon Musk’s Vegas Loop now taking Dogecoin payments

0

Crypto owners banned from working on US Government crypto policies

0

Korean startup Uprise lost $20M shorting LUNC

0

Ethereum testnet Merge mostly successful — ‘Hiccups will not delay the Merge.’

0

Bitcoin derivatives data shows room for BTC price to move higher this week

January 23, 2023

Bitcoin price consolidation opens the door for APE, MANA, AAVE and FIL to move higher

January 22, 2023

Genesis bankruptcy case scheduled for first hearing

January 22, 2023

Terra lending protocol Mars to launch mainnet

January 22, 2023

XBT.Market

This website is an automated news feed powered by the Nebulome cloud system. The site is made possible by YYC TECH Consulting and Alberta Digital Mining Company. As a team with major crypto and bitcoin enthusiasm, we have curated major sources of news, trading and financial data to bring you, our viewer, an unbiased source of truth.

Recent Posts

  • Bitcoin derivatives data shows room for BTC price to move higher this week January 23, 2023
  • Bitcoin price consolidation opens the door for APE, MANA, AAVE and FIL to move higher January 22, 2023
  • Genesis bankruptcy case scheduled for first hearing January 22, 2023
  • Terra lending protocol Mars to launch mainnet January 22, 2023
  • Central African Republic eyes legal framework for crypto adoption January 22, 2023

News Categories

  • Bitcoin
  • Blockchain
  • Business
  • Market

Tags

bitcoinMagzine Cointelegraph Cryptocurrency insidebitcoins Investment Mining Bitcoin NewsBTC

Quicklinks

  • Home
  • Coins MarketCap
  • Crypto Exchanges
  • Crypto Calculator
  • Top Gainers and Loser
  • News
  • Contact Us

© 2022 Xbt.Market - Powered by YYC Tech Consulting & ADMCO.

No Result
View All Result
  • Home
  • Coins MarketCap
  • Crypto Exchanges
  • Crypto Calculator
  • Top Gainers and Loser
  • News
  • Contact Us

© 2022 Xbt.Market by Nebulome.

  • bitcoinBitcoin(BTC)$26,967.00-3.47%
  • ethereumEthereum(ETH)$1,715.49-3.00%
  • USDEXUSDEX(USDEX)$1.07-0.53%
  • tetherTether(USDT)$1.00-0.17%
  • binancecoinBNB(BNB)$308.09-6.29%
  • usd-coinUSD Coin(USDC)$1.000.08%
  • rippleXRP(XRP)$0.4802024.56%
  • cardanoCardano(ADA)$0.347983-1.51%
  • dogecoinDogecoin(DOGE)$0.072467-2.18%
  • Lido Staked EtherLido Staked Ether(STETH)$1,676.59-5.04%
  • matic-networkPolygon(MATIC)$1.04-4.93%
  • Binance USDBinance USD(BUSD)$1.00-0.07%
  • SolanaSolana(SOL)$19.83-4.23%
  • polkadotPolkadot(DOT)$5.83-2.86%
  • litecoinLitecoin(LTC)$86.40-6.67%
  • Shiba InuShiba Inu(SHIB)$0.000010-2.29%
  • tronTRON(TRX)$0.063687-1.23%
  • AvalancheAvalanche(AVAX)$16.47-2.58%
  • daiDai(DAI)$1.000.02%
  • UniswapUniswap(UNI)$5.61-2.81%
  • wrapped-bitcoinWrapped Bitcoin(WBTC)$27,043.00-3.28%
  • chainlinkChainlink(LINK)$6.84-4.91%
  • leo-tokenLEO Token(LEO)$3.38-2.58%
  • cosmosCosmos Hub(ATOM)$10.73-4.23%
  • ToncoinToncoin(TON)$2.08-2.89%
  • ethereum-classicEthereum Classic(ETC)$19.91-1.23%
  • moneroMonero(XMR)$151.98-5.71%
  • OKBOKB(OKB)$41.90-0.44%
  • Aerarium FiAerarium Fi(AERA)$7.14-13.09%
  • stellarStellar(XLM)$0.091469-1.68%
  • bitcoin-cashBitcoin Cash(BCH)$120.82-2.56%
  • filecoinFilecoin(FIL)$5.32-4.94%
  • true-usdTrueUSD(TUSD)$1.00-0.15%
  • AptosAptos(APT)$10.96-7.39%
  • Lido DAOLido DAO(LDO)$2.08-4.19%
  • HederaHedera(HBAR)$0.058688-4.53%
  • QuantQuant(QNT)$118.75-2.99%
  • CronosCronos(CRO)$0.066765-2.24%
  • NEAR ProtocolNEAR Protocol(NEAR)$1.83-5.62%
  • vechainVeChain(VET)$0.021786-4.45%
  • ApeCoinApeCoin(APE)$3.98-1.49%
  • ArbitrumArbitrum(ARB)$1.13-12.26%
  • algorandAlgorand(ALGO)$0.200422-4.17%
  • Internet ComputerInternet Computer(ICP)$4.72-4.47%
  • eosEOS(EOS)$1.11-1.72%
  • StacksStacks(STX)$0.87-10.34%
  • The GraphThe Graph(GRT)$0.131952-5.95%
  • FantomFantom(FTM)$0.404979-7.88%
  • The SandboxThe Sandbox(SAND)$0.60-3.97%
  • FraxFrax(FRAX)$1.00-0.04%
  • MultiversXMultiversX(EGLD)$40.85-3.75%
  • decentralandDecentraland(MANA)$0.56-4.08%
  • tezosTezos(XTZ)$1.07-6.73%
  • AaveAave(AAVE)$68.97-5.90%
  • theta-tokenTheta Network(THETA)$0.97-3.41%
  • FlowFlow(FLOW)$0.91-5.66%
  • ImmutableXImmutableX(IMX)$1.03-4.77%
  • Axie InfinityAxie Infinity(AXS)$8.00-3.75%
  • neoNEO(NEO)$12.43-2.94%
  • kucoin-sharesKuCoin(KCS)$8.23-4.99%
  • Rocket PoolRocket Pool(RPL)$41.01-1.38%
  • paxos-standardPax Dollar(USDP)$1.00-0.02%
  • BitDAOBitDAO(BIT)$0.51-2.06%
  • havvenSynthetix Network(SNX)$2.30-5.27%
  • USDDUSDD(USDD)$0.99-0.12%
  • WhiteBIT TokenWhiteBIT Token(WBT)$4.98-1.15%
  • Terra Luna ClassicTerra Luna Classic(LUNC)$0.000120-3.30%
  • KlaytnKlaytn(KLAY)$0.223890-2.46%
  • GateGate(GT)$4.85-5.14%
  • Curve DAOCurve DAO(CRV)$0.88-4.91%
  • bitcoin-cash-svBitcoin SV(BSV)$35.27-3.07%
  • ConfluxConflux(CFX)$0.312749-9.12%
  • PancakeSwapPancakeSwap(CAKE)$3.56-4.68%
  • OptimismOptimism(OP)$2.05-7.66%
  • Mina ProtocolMina Protocol(MINA)$0.72-9.26%
  • dashDash(DASH)$55.62-4.40%
  • CloutContractsCloutContracts(CCS)$52.461,000.00%
  • GMXGMX(GMX)$72.005.38%
  • ChilizChiliz(CHZ)$0.114006-5.06%
  • makerMaker(MKR)$674.910.82%
  • BitTorrentBitTorrent(BTT)$0.0000010.17%
  • huobi-tokenHuobi(HT)$3.59-1.91%
  • eCasheCash(XEC)$0.000029-3.74%
  • iotaIOTA(MIOTA)$0.199715-4.39%
  • XDC NetworkXDC Network(XDC)$0.039650-1.29%
  • Bitget TokenBitget Token(BGB)$0.382513-5.56%
  • Frax ShareFrax Share(FXS)$7.44-4.84%
  • EdgecoinEdgecoin(EDGT)$1.00-0.02%
  • cETHcETH(CETH)$34.41-3.18%
  • PAX GoldPAX Gold(PAXG)$1,976.67-0.68%
  • singularitynetSingularityNET(AGIX)$0.402335-6.46%
  • Tokenize XchangeTokenize Xchange(TKX)$6.04-3.81%
  • Tether GoldTether Gold(XAUT)$1,960.07-0.97%
  • BinaryXBinaryX(BNX)$23.94-86.46%
  • FlareFlare(FLR)$0.0373385.58%
  • Trust WalletTrust Wallet(TWT)$1.09-8.21%
  • cUSDCcUSDC(CUSDC)$0.022795-0.12%
  • Halo CoinHalo Coin(HALO)$0.057345-0.05%
  • OsmosisOsmosis(OSMO)$0.77-3.54%
  • zilliqaZilliqa(ZIL)$0.026035-4.19%