• About
  • Privacy Poilicy
  • Disclaimer
  • Contact
CoinInsight
  • Home
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Ripple
  • Future of Crypto
  • Crypto Mining
No Result
View All Result
  • Home
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Ripple
  • Future of Crypto
  • Crypto Mining
No Result
View All Result
CoinInsight
No Result
View All Result
Home Bitcoin

lightning community – How the is the refund transaction in Uneven Revocable Commitments constructed?

Coininsight by Coininsight
March 20, 2025
in Bitcoin
0
lightning community – How the is the refund transaction in Uneven Revocable Commitments constructed?
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


While you first create the channel, the very first thing Hitesh and Irene do is signal the preliminary commitments, which assigns the preliminary steadiness to themselves. That is what known as the refund, as a result of if one of many events determine to not proceed, the cash returns to the homeowners. This transaction is a traditional dedication transaction however is created as a result of if not, the funds might be locked without end on a multisig if one of many events of the channel disappears!

First two examples

The primary two examples are dedication transactions created. Every consumer creates one dedication transaction with two outputs. In these, each Hitesh and Irene have two outputs:

  1. The primary output is a cost to the opposite particular person of the preliminary
    steadiness (5 BTC).
  2. The second output is a cost to the identical particular person making the
    dedication however with a locktime of 1000 blocks. (The locktime goes there, not within the refund!)
    This dedication shouldn’t be broadcasted, every one of many events has his personal model. Every one of many events at any second can signal it and broadcast it. In that case the opposite particular person would obtain the 5 BTC immediately and the particular person accountable for the published must wait 1000 blocks.

Word that this dedication transactions are incomplete because the penalty mechanism is lacking in case some celebration tries to cheat. Within the e-book they present this uncompleted model to offer an concept of the way it appears

Third instance

This final instance reveals methods to create an actual dedication transaction with the penalty mechanism included.

It provides a situation which permits a consumer to retrieve the funds of the second output if it has the revocation personal key. The revocation key’s a key which each events can calculate the general public key, however they’ll solely get half of the personal key. So that they solely have half of the personal key. If at any second, one of many two customers has the 2 halfs of the personal key, it may declare the funds within the second output.

If the channel state is up to date and a brand new dedication transaction is created, they trade their half of the revocation personal key. This offers them the safety that if the opposite particular person cheats and broadcast an previous dedication transaction, the sufferer will be capable of declare the opposite particular person the funds as a punishment.

Think about Hitesh tries to cheat; since Irene can declare his 5 BTC immediately (output 1), and Hitesh has to attend 1000 blocks to get the 5 BTC, Irene can declare Hitesh cash as she has the complete revocation personal key (that is the brand new situation we added within the third instance).

Word that if Irene does not declare the funds earlier than 1000 blocks Hitesh will be capable of proceed and declare himself the cash.

Abstract

In order a abstract, dedication transactions appear like the third instance because the penalty mechanism is required. Refund transaction is simply the primary dedication transaction that simply returns the funds to the customers. The penalty mechanism can be wanted there as a result of in the event you do not add it you would cheat and steal cash by broadcasting the refund transaction sooner or later when the channel state has superior.

Related articles

JPMorgan Confirms Bitcoin Buying and selling, Sends Merchants Rallying for High Altcoins like Bitcoin Hyper

JPMorgan Confirms Bitcoin Buying and selling, Sends Merchants Rallying for High Altcoins like Bitcoin Hyper

October 14, 2025
After $234M Hack, WazirX Will get Courtroom Approval For Main Rebuild

After $234M Hack, WazirX Will get Courtroom Approval For Main Rebuild

October 13, 2025


While you first create the channel, the very first thing Hitesh and Irene do is signal the preliminary commitments, which assigns the preliminary steadiness to themselves. That is what known as the refund, as a result of if one of many events determine to not proceed, the cash returns to the homeowners. This transaction is a traditional dedication transaction however is created as a result of if not, the funds might be locked without end on a multisig if one of many events of the channel disappears!

First two examples

The primary two examples are dedication transactions created. Every consumer creates one dedication transaction with two outputs. In these, each Hitesh and Irene have two outputs:

  1. The primary output is a cost to the opposite particular person of the preliminary
    steadiness (5 BTC).
  2. The second output is a cost to the identical particular person making the
    dedication however with a locktime of 1000 blocks. (The locktime goes there, not within the refund!)
    This dedication shouldn’t be broadcasted, every one of many events has his personal model. Every one of many events at any second can signal it and broadcast it. In that case the opposite particular person would obtain the 5 BTC immediately and the particular person accountable for the published must wait 1000 blocks.

Word that this dedication transactions are incomplete because the penalty mechanism is lacking in case some celebration tries to cheat. Within the e-book they present this uncompleted model to offer an concept of the way it appears

Third instance

This final instance reveals methods to create an actual dedication transaction with the penalty mechanism included.

It provides a situation which permits a consumer to retrieve the funds of the second output if it has the revocation personal key. The revocation key’s a key which each events can calculate the general public key, however they’ll solely get half of the personal key. So that they solely have half of the personal key. If at any second, one of many two customers has the 2 halfs of the personal key, it may declare the funds within the second output.

If the channel state is up to date and a brand new dedication transaction is created, they trade their half of the revocation personal key. This offers them the safety that if the opposite particular person cheats and broadcast an previous dedication transaction, the sufferer will be capable of declare the opposite particular person the funds as a punishment.

Think about Hitesh tries to cheat; since Irene can declare his 5 BTC immediately (output 1), and Hitesh has to attend 1000 blocks to get the 5 BTC, Irene can declare Hitesh cash as she has the complete revocation personal key (that is the brand new situation we added within the third instance).

Word that if Irene does not declare the funds earlier than 1000 blocks Hitesh will be capable of proceed and declare himself the cash.

Abstract

In order a abstract, dedication transactions appear like the third instance because the penalty mechanism is required. Refund transaction is simply the primary dedication transaction that simply returns the funds to the customers. The penalty mechanism can be wanted there as a result of in the event you do not add it you would cheat and steal cash by broadcasting the refund transaction sooner or later when the channel state has superior.

Tags: AsymmetricCommitmentsconstructedLightningNetworkrefundRevocableTransaction
Share76Tweet47

Related Posts

JPMorgan Confirms Bitcoin Buying and selling, Sends Merchants Rallying for High Altcoins like Bitcoin Hyper

JPMorgan Confirms Bitcoin Buying and selling, Sends Merchants Rallying for High Altcoins like Bitcoin Hyper

by Coininsight
October 14, 2025
0

Trusted Editorial content material, reviewed by main trade specialists and seasoned editors. Advert Disclosure Fast Details: 1️⃣ JPMorgan’s International Head...

After $234M Hack, WazirX Will get Courtroom Approval For Main Rebuild

After $234M Hack, WazirX Will get Courtroom Approval For Main Rebuild

by Coininsight
October 13, 2025
0

They are saying journalists by no means actually clock out. However for Christian, that is not only a metaphor, it...

The ‘Technique Of Latin America’ OranjeBTC Expands Holdings With $1.94M Bitcoin Buy

The ‘Technique Of Latin America’ OranjeBTC Expands Holdings With $1.94M Bitcoin Buy

by Coininsight
October 13, 2025
0

OranjeBTC has acquired an extra 16 BTC for roughly $1.94 million at a mean value of $121,058 per Bitcoin, bringing...

Tapbit Delivers a Robust Presence at TOKEN2049 Singapore

Tapbit Delivers a Robust Presence at TOKEN2049 Singapore

by Coininsight
October 13, 2025
0

Singapore, Singapore, October thirteenth, 2025, ChainwireThe world-renowned blockchain occasion, TOKEN2049 Singapore, efficiently concluded on the Marina Bay Sands Expo and...

Establishments To Double Digital Asset Publicity By 2028

Establishments To Double Digital Asset Publicity By 2028

by Coininsight
October 12, 2025
0

Be a part of Our Telegram channel to remain updated on breaking information protection Institutional buyers are set to greater...

Load More
  • Trending
  • Comments
  • Latest
MetaMask Launches An NFT Reward Program – Right here’s Extra Data..

MetaMask Launches An NFT Reward Program – Right here’s Extra Data..

July 24, 2025
BitHub 77-Bit token airdrop information

BitHub 77-Bit token airdrop information

February 6, 2025
Haedal token airdrop information

Haedal token airdrop information

April 24, 2025
MilkyWay ($milkTIA, $MILK) Token Airdrop Information

MilkyWay ($milkTIA, $MILK) Token Airdrop Information

March 4, 2025
Kuwait bans Bitcoin mining over power issues and authorized violations

Kuwait bans Bitcoin mining over power issues and authorized violations

2
The Ethereum Basis’s Imaginative and prescient | Ethereum Basis Weblog

The Ethereum Basis’s Imaginative and prescient | Ethereum Basis Weblog

2
Unchained Launches Multi-Million Greenback Bitcoin Legacy Mission

Unchained Launches Multi-Million Greenback Bitcoin Legacy Mission

1
Earnings Preview: Microsoft anticipated to report larger Q3 income, revenue

Earnings Preview: Microsoft anticipated to report larger Q3 income, revenue

1
Can SOL Climb to $200 by November, Whereas Nexchain AI Token Presale Sees Over 900% Beneficial properties?

Can SOL Climb to $200 by November, Whereas Nexchain AI Token Presale Sees Over 900% Beneficial properties?

October 14, 2025
Rising Markets Outperform Developed Counterparts in Bond Sector

Rising Markets Outperform Developed Counterparts in Bond Sector

October 14, 2025
What It Might Imply for Bitcoin and for Digitap

What It Might Imply for Bitcoin and for Digitap

October 14, 2025
JPMorgan Confirms Bitcoin Buying and selling, Sends Merchants Rallying for High Altcoins like Bitcoin Hyper

JPMorgan Confirms Bitcoin Buying and selling, Sends Merchants Rallying for High Altcoins like Bitcoin Hyper

October 14, 2025

CoinInight

Welcome to CoinInsight.co.uk – your trusted source for all things cryptocurrency! We are passionate about educating and informing our audience on the rapidly evolving world of digital assets, blockchain technology, and the future of finance.

Categories

  • Bitcoin
  • Blockchain
  • Crypto Mining
  • Ethereum
  • Future of Crypto
  • Market
  • Regulation
  • Ripple

Recent News

Can SOL Climb to $200 by November, Whereas Nexchain AI Token Presale Sees Over 900% Beneficial properties?

Can SOL Climb to $200 by November, Whereas Nexchain AI Token Presale Sees Over 900% Beneficial properties?

October 14, 2025
Rising Markets Outperform Developed Counterparts in Bond Sector

Rising Markets Outperform Developed Counterparts in Bond Sector

October 14, 2025
  • About
  • Privacy Poilicy
  • Disclaimer
  • Contact

© 2025- https://coininsight.co.uk/ - All Rights Reserved

No Result
View All Result
  • Home
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Ripple
  • Future of Crypto
  • Crypto Mining

© 2025- https://coininsight.co.uk/ - All Rights Reserved

Social Media Auto Publish Powered By : XYZScripts.com
Verified by MonsterInsights