• 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

Jeff Bezos Says One Question in a Job Interview Reveals Who Never Did the Reading

Jeff Bezos’ Parents Put $250,000 Into His 1995 Internet Bet Despite a 70% Loss Risk

October 14, 2026
Bitwise, SVRN Bet on NEAR as AI Infrastructure Thesis Takes Shape

Bitwise, SVRN Bet on NEAR as AI Infrastructure Thesis Takes Shape

October 14, 2026
Share76Tweet47

Related Posts

Jeff Bezos Says One Question in a Job Interview Reveals Who Never Did the Reading

Jeff Bezos’ Parents Put $250,000 Into His 1995 Internet Bet Despite a 70% Loss Risk

by Moussa
October 14, 2026
0

Key TakeawaysMiguel and Jackie Bezos put $250,000 into Jeff Bezos’s 1995 online bookstore after he warned of a 70% chance...

Bitwise, SVRN Bet on NEAR as AI Infrastructure Thesis Takes Shape

Bitwise, SVRN Bet on NEAR as AI Infrastructure Thesis Takes Shape

by Moussa
October 14, 2026
0

Key TakeawaysBitwise’s NEAR ETF and SVRN’s 10% supply goal offer two routes into the same AI-blockchain thesis.NRR adds staking exposure,...

US Government Moves $100M in Seized Crypto, No Sale

by Moussa
October 14, 2026
0

Join Our Telegram channel to stay up to date on breaking news coverage Wallets linked to the US government moved...

Patented Equilibrium Architecture Takes the Stage at Korea Blockchain Week as Whisper Unveils Veria, Targeting Q1 2027 Mainnet Launch

Patented Equilibrium Architecture Takes the Stage at Korea Blockchain Week as Whisper Unveils Veria, Targeting Q1 2027 Mainnet Launch

by Moussa
October 14, 2026
0

Paulus J. Lee, Founder & Chairman of Whisper and Veria and co-inventor of the patented Equilibrium blockchain architecture (US Patent...

Kraken Launches Krak, A No-Fee App To Use And Store Bitcoin And Crypto

Kraken Parent Payward Wins Full Dubai License, Plans UAE Launch

by Moussa
October 14, 2026
0

Crypto exchange Kraken’s parent company Payward has said it has plans to launch in the United Arab Emirates.  After receiving...

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]JTNDcCUzRSUzQ2RpdiUyMGNsYXNzJTNEJTIydG5wJTIwdG5wLXN1YnNjcmlwdGlvbiUyMiUzRSUwQSUzQ2Zvcm0lMjBtZXRob2QlM0QlMjJwb3N0JTIyJTIwYWN0aW9uJTNEJTIyaHR0cHMlM0ElMkYlMkZhcHByb3gub3JnJTJGJTNGbmElM0RzJTIyJTNFJTBBJTBBJTNDaW5wdXQlMjB0eXBlJTNEJTIyaGlkZGVuJTIyJTIwbmFtZSUzRCUyMm5sYW5nJTIyJTIwdmFsdWUlM0QlMjIlMjIlM0UlM0NkaXYlMjBjbGFzcyUzRCUyMnRucC1maWVsZCUyMHRucC1maWVsZC1maXJzdG5hbWUlMjIlM0UlM0NsYWJlbCUyMGZvciUzRCUyMnRucC0xJTIyJTNFRmlyc3QlMjBuYW1lJTIwb3IlMjBmdWxsJTIwbmFtZSUzQyUyRmxhYmVsJTNFJTBBJTNDaW5wdXQlMjBjbGFzcyUzRCUyMnRucC1uYW1lJTIyJTIwdHlwZSUzRCUyMnRleHQlMjIlMj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]
No Result
View All Result
  • Contact Us
  • Homepages
  • Business
  • Guide

© 2024 APPROX FOUNDATION - The Crypto Currency News