• About
  • Landing Page
  • Buy JNews
Newsletter
Impact Crypto News
Advertisement
  • Home
  • DeFi News
  • EVM News
    • Avalanche Network
    • Ethereum
    • Fantom Opera Chain
    • Harmony Chain
    • Huobi Eco Chain
    • Polkadot Chain
    • Polygon Chain
  • NFT News
  • Altcoin News
  • Crypto News
    • Crypto Regulation News
    • Bitcoin
    • Blockchain
    • Crypto Exchanges
    • Crypto Mining
    • Metaverse
    • Scam News
    • Web 3.0
No Result
View All Result
  • Home
  • DeFi News
  • EVM News
    • Avalanche Network
    • Ethereum
    • Fantom Opera Chain
    • Harmony Chain
    • Huobi Eco Chain
    • Polkadot Chain
    • Polygon Chain
  • NFT News
  • Altcoin News
  • Crypto News
    • Crypto Regulation News
    • Bitcoin
    • Blockchain
    • Crypto Exchanges
    • Crypto Mining
    • Metaverse
    • Scam News
    • Web 3.0
No Result
View All Result
Impact Crypto News
No Result
View All Result
Home Crypto News Ethereum

3-phase commit for L2 payments

IMPACTCRYPTO by IMPACTCRYPTO
June 12, 2025
in Ethereum
55 3
0
3-phase commit for L2 payments
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


3-phase commit for L2 payments

The two 2-phase commits that are possible for L2 payments (cancel-on-timeout or finish-on-timeout) will always have a penalty on one of the phases but never on the other, and either 2-phase commit will have on opposite phases. To avoid a non-attacker getting stuck with the whole payment as penalty, the penalty can be done in "chunks ". But when penalty is done in chunks, the combined time until the payment has fully timed out tends to increase, and this makes the phase with no penalty vulnerable to Denial of Service (DoS) attacks. The solution is to combine both 2-phase commits, and use the one with the penalty on the first phase as the first phase, and the one with the penalty on the second phase as the second phase. This requires an intermediary phase that shifts from finish-on-timeout to cancel-on-timeout. This is the logical way to do "payment channels", and people will notice this eventually.

https://preview.redd.it/vrffejdbzh6f1.png?width=1008&format=png&auto=webp&s=32cf8df9632cf458cd31f888b93c1a66044171b8

https://preview.redd.it/wwkwq53czh6f1.png?width=1013&format=png&auto=webp&s=f96072a6846c21e25e61be7680a85f0b7ccf93e6

Update:
"Cancel" in "finish-on-timeout" or the 3-phase commit is issued by the sender (not by intermediaries or recipient) and has to be authenticated by the sender to avoid an intermediary lying about it (and thus receiving the payment via the finish-on-timeout). This is analogous to how "Commit" is from the recipient (not from intermediaries or sender) and has to be authenticated as well, to avoid an intermediary lying about it (and thus receiving the payment).

The 3-phase commit deters DoS attacks in all scenarios except when the person paying penalty and the person receiving it are the same person. This scenario is easily deterred by adding fee on top of the payment, paid out in proportion to how long payment was stuck. This is separate from the 3-phase commit though (and the 2-phase commits also has this problem, but, they rely on short timeout which means this problem never becomes a problem).

This is all very simple. I already implemented it for a backed-by-trust multihop payment system (Ryan Fuggers Ripple) and building Lightning Network, Raiden, Interledger, or whatever else on the 3-phase commit, is simple. The hard part, it seems, is noticing the 3-phase commit. As it seems no one ever noticed it before, at least it was never popularized as everyone seems to try and make either of the 2-phase commits work despite the obvious problems…

submitted by /u/johanngr
[comments]



Source link

Related articles

We Analyze Which Blockchain is Best for Developers: Ethereum or Solana

We Analyze Which Blockchain is Best for Developers: Ethereum or Solana

July 13, 2025
"privacy is a keystone to the future of finance being built on ethereum"

"privacy is a keystone to the future of finance being built on ethereum"

July 11, 2025
Tags: 3phasebitcoin newsCommitcrypto analysiscrypto newsEthoz EdgeLatest bitcoin newslatest crypto newsPayments
Share76Tweet47

Related Posts

We Analyze Which Blockchain is Best for Developers: Ethereum or Solana

We Analyze Which Blockchain is Best for Developers: Ethereum or Solana

by IMPACTCRYPTO
July 13, 2025
0

Blockchain developers must choose between Ethereum and Solana; this decision will determine a project’s cost, speed, and technical feasibility. Ethereum...

"privacy is a keystone to the future of finance being built on ethereum"

"privacy is a keystone to the future of finance being built on ethereum"

by IMPACTCRYPTO
July 11, 2025
0

ethereum is completely pseudonymous. if someone knows your address, they... can track everything about that account. this makes privacy a...

The Future of Ecosystem Development at the EF

The Future of Ecosystem Development at the EF

by IMPACTCRYPTO
July 10, 2025
0

Ethereum stands at a pivotal moment. Interest in Ethereum has expanded beyond technologists and enthusiasts, bringing enterprises, governments, and everyday...

Shipping an L1 zkEVM #1: Realtime Proving

Shipping an L1 zkEVM #1: Realtime Proving

by IMPACTCRYPTO
July 10, 2025
0

Thanks to Kevaundray Wedderburn, Alex Stokes, Tim Beiko, Mary Maller, Alexander Hicks, George Kadianakis, Dankrad Feist, and Justin Drake for...

Partial history expiry announcement | Ethereum Foundation Blog

Partial history expiry announcement | Ethereum Foundation Blog

by IMPACTCRYPTO
July 8, 2025
0

As of today, all Ethereum execution clients support partial history expiry in accordance with EIP-4444. While work on full, rolling...

Load More

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Please enter CoinGecko Free Api Key to get this plugin works.
No Result
View All Result
  • Home
  • DeFi News
  • EVM News
    • Avalanche Network
    • Ethereum
    • Fantom Opera Chain
    • Harmony Chain
    • Huobi Eco Chain
    • Polkadot Chain
    • Polygon Chain
  • NFT News
  • Altcoin News
  • Crypto News
    • Crypto Regulation News
    • Bitcoin
    • Blockchain
    • Crypto Exchanges
    • Crypto Mining
    • Metaverse
    • Scam News
    • Web 3.0

© 2018 JNews by Jegtheme.