• About
  • FAQ
  • Earn Bitcoin while Surfing the net
  • Buy & Sell Crypto on Paxful
Newsletter
Approx Foundation
  • Home
    • Home – Layout 1
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Business
  • Guide
  • Contact Us
No Result
View All Result
  • Home
    • Home – Layout 1
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Business
  • Guide
  • Contact Us
No Result
View All Result
Approx Foundation
No Result
View All Result
Home Bitcoin

lightning network – How the is the refund transaction in Asymmetric Revocable Commitments constructed?

Moussa by Moussa
March 20, 2025
in Bitcoin
0
peer discovery – how to obtain the IP addresses of nodes for mining pools?
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


When you first create the channel, the first thing Hitesh and Irene do is sign the initial commitments, which assigns the initial balance to themselves. This is what is called the refund, because if one of the parties decide not to proceed, the coins returns to the owners. This transaction is a normal commitment transaction but is created because if not, the funds could be locked forever on a multisig if one of the parties of the channel disappears!

First two examples

The first two examples are commitment transactions created. Each user creates one commitment transaction with two outputs. In these, both Hitesh and Irene have two outputs:

  1. The first output is a payment to the other person of the initial
    balance (5 BTC).
  2. The second output is a payment to the same person making the
    commitment but with a locktime of 1000 blocks. (The locktime goes there, not in the refund!)
    This commitment is not broadcasted, each one of the parties has his own version. Each one of the parties at any moment can sign it and broadcast it. In that case the other person would receive the 5 BTC instantly and the person responsible for the broadcast will have to wait 1000 blocks.

Note that this commitment transactions are incomplete as the penalty mechanism is missing in case some party tries to cheat. In the book they show this uncompleted version to give an idea of how it looks

Third example

This last example shows how to create a real commitment transaction with the penalty mechanism included.

It adds a condition which allows a user to retrieve the funds of the second output if it has the revocation private key. The revocation key is a key which both parties can calculate the public key, but they can only get half of the private key. So they only have half of the private key. If at any moment, one of the two users has the two halfs of the private key, it could claim the funds in the second output.

If the channel state is updated and a new commitment transaction is created, they exchange their half of the revocation private key. This gives them the security that if the other person cheats and broadcast an old commitment transaction, the victim will be able to claim the other person the funds as a punishment.

Imagine Hitesh tries to cheat; since Irene can claim his 5 BTC instantly (output 1), and Hitesh has to wait 1000 blocks to get the 5 BTC, Irene can claim Hitesh coins as she has the full revocation private key (this is the new condition we added in the 3rd example).

Note that if Irene doesn’t claim the funds before 1000 blocks Hitesh will be able to proceed and claim himself the coins.

Summary

So as a summary, commitment transactions look like the third example as the penalty mechanism is needed. Refund transaction is just the first commitment transaction that just returns the funds to the users. The penalty mechanism is also needed there because if you don’t add it you could cheat and steal coins by broadcasting the refund transaction in the future when the channel state has advanced.



Source link

Related articles

Grayscale Names 3 Cryptos That Could Gain From Surging US Debt

Grayscale Names 3 Cryptos That Could Gain From Surging US Debt

August 29, 2026
Bitcoin Price Retreats After Warsh’s Hawkish Jackson Hole Keynote

Bitcoin Price Retreats After Warsh’s Hawkish Jackson Hole Keynote

August 29, 2026
Share76Tweet47

Related Posts

Grayscale Names 3 Cryptos That Could Gain From Surging US Debt

Grayscale Names 3 Cryptos That Could Gain From Surging US Debt

by Moussa
August 29, 2026
0

Key TakeawaysGrayscale says government debt could support three cryptocurrencies.U.S. public debt exceeded $40 trillion for the first time.Treasury buybacks address...

Bitcoin Price Retreats After Warsh’s Hawkish Jackson Hole Keynote

Bitcoin Price Retreats After Warsh’s Hawkish Jackson Hole Keynote

by Moussa
August 29, 2026
0

Key TakeawaysBitcoin fell 2.5% to $77,588 after Kevin Warsh’s hawkish Jackson Hole speech.U.S. spot bitcoin ETFs snapped a 9-day inflow...

Trump-Linked Account Rugs GOLD Token, Nets $312K Profit

Trump-Linked Account Rugs GOLD Token, Nets $312K Profit

by Moussa
August 29, 2026
0

Key TakeawaysRealtrumpcoins, an account Trump follows, controlled 82.45% of GOLD’s total token supply before the dump.Fifteen wallets tied to GOLD...

What happens to old transactions in case of a fork?

by Moussa
August 29, 2026
0

I'm confused about forking. What happens to the 'old' version of a blockchain and related transactions/data in case of a...

NFL Returns to Draftkings and Fanduel, Still Shuns Prediction Markets

NFL Returns to Draftkings and Fanduel, Still Shuns Prediction Markets

by Moussa
August 29, 2026
0

Key TakeawaysNFL signed three sportsbook partners on Aug. 27, its first since deals lapsed March 31.Partners agreed to prohibit bets...

Load More

youssufi.com

sephina.com

[vc_row full_width="stretch_row" parallax="content-moving" vc_row_background="" background_repeat="no-repeat" background_position="center center" footer_scheme="dark" css=".vc_custom_1517813231908{padding-top: 60px !important;padding-bottom: 30px !important;background-color: #191818 !important;background-position: center;background-repeat: no-repeat !important;background-size: cover !important;}" footer_widget_title_color="#fcbf46" footer_button_bg="#fcb11e"][vc_column width="1/4"]

We bring you the latest in Crypto News

[/vc_column][vc_column width="1/4"][vc_wp_categories]
[/vc_column][vc_column width="1/4"][vc_wp_tagcloud taxonomy="post_tag"][/vc_column][vc_column width="1/4"]

Newsletter

[vc_raw_html]JTNDcCUzRSUzQ2RpdiUyMGNsYXNzJTNEJTIydG5wJTIwdG5wLXN1YnNjcmlwdGlvbiUyMiUzRSUwQSUzQ2Zvcm0lMjBtZXRob2QlM0QlMjJwb3N0JTIyJTIwYWN0aW9uJTNEJTIyaHR0cHMlM0ElMkYlMkZhcHByb3gub3JnJTJGJTNGbmElM0RzJTIyJTNFJTBBJTBBJTNDaW5wdXQlMjB0eXBlJTNEJTIyaGlkZGVuJTIyJTIwbmFtZSUzRCUyMm5sYW5nJTIyJTIwdmFsdWUlM0QlMjIlMjIlM0UlM0NkaXYlMjBjbGFzcyUzRCUyMnRucC1maWVsZCUyMHRucC1maWVsZC1maXJzdG5hbWUlMjIlM0UlM0NsYWJlbCUyMGZvciUzRCUyMnRucC0xJTIyJTNFRmlyc3QlMjBuYW1lJTIwb3IlMjBmdWxsJTIwbmFtZSUzQyUyRmxhYmVsJTNFJTBBJTNDaW5wdXQlMjBjbGFzcyUzRCUyMnRucC1uYW1lJTIyJTIwdHlwZSUzRCUyMnRleHQlMjIlMjBuYW1lJTNEJTIybm4lMjIlMjBpZCUzRCUyMnRucC0xJTIyJTIwdmFsdWUlM0QlMjIlMjIlM0UlM0MlMkZkaXYlM0UlMEElM0NkaXYlMjBjbGFzcyUzRCUyMnRucC1maWVsZCUyMHRucC1maWVsZC1lbWFpbCUyMiUzRSUzQ2xhYmVsJTIwZm9yJTNEJTIydG5wLTIlMjIlM0VFbWFpbCUzQyUyRmxhYmVsJTNFJTBBJTNDaW5wdXQlMjBjbGFzcyUzRCUyMnRucC1lbWFpbCUyMiUyMHR5cGUlM0QlMjJlbWFpbCUyMiUyMG5hbWUlM0QlMjJuZSUyMiUyMGlkJTNEJTIydG5wLTIlMjIlMjB2YWx1ZSUzRCUyMiUyMiUyMHJlcXVpcmVkJTNFJTNDJTJGZGl2JTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJ0bnAtZmllbGQlMjB0bnAtcHJpdmFjeS1maWVsZCUyMiUzRSUzQ2xhYmVsJTNFJTNDaW5wdXQlMjB0eXBlJTNEJTIyY2hlY2tib3glMjIlMjBuYW1lJTNEJTIybnklMjIlMjByZXF1aXJlZCUyMGNsYXNzJTNEJTIydG5wLXByaXZhY3klMjIlM0UlQzIlQTBCeSUyMGNvbnRpbnVpbmclMkMlMjB5b3UlMjBhY2NlcHQlMjB0aGUlMjBwcml2YWN5JTIwcG9saWN5JTNDJTJGbGFiZWwlM0UlM0MlMkZkaXYlM0UlM0NkaXYlMjBjbGFzcyUzRCUyMnRucC1maWVsZCUyMHRucC1maWVsZC1idXR0b24lMjIlM0UlM0NpbnB1dCUyMGNsYXNzJTNEJTIydG5wLXN1Ym1pdCUyMiUyMHR5cGUlM0QlMjJzdWJtaXQlMjIlMjB2YWx1ZSUzRCUyMlN1YnNjcmliZSUyMiUyMCUzRSUwQSUzQyUyRmRpdiUzRSUwQSUzQyUyRmZvcm0lM0UlMEElM0MlMkZkaXYlM0UlM0NiciUyRiUzRSUzQyUyRnAlM0U=[/vc_raw_html][/vc_column][/vc_row]
No Result
View All Result
  • Contact Us
  • Homepages
  • Business
  • Guide

© 2024 APPROX FOUNDATION - The Crypto Currency News