News for hackers. Stuff that matters.
Re:Learn to Code Ethereum DApps by Building Your Own Game by theptip on Wednesday January 10, 2018 @10:57AM (#16115855)
It's one half of it; Lightning also needs a "time lock" mechanism to somehow execute payment for the committed balance of the channel if one party unilaterally abandons it. This is quite complex involving both parties holding a delayed and revokable payment from the other party.

In the case of a game, this might be simpler since you can have each player sign their own moves and the other player's last move, so that you can always broadcast your opponent's last move if they quit.

Re:Learn to Code Ethereum DApps by Building Your Own Game by DennisP on Wednesday January 10, 2018 @11:41AM (#16116418)
It's not too complicated on Ethereum. Here's some sample code, which Raiden devs have told me works much like their system.

http://www.blunderingcode.com/a-lightning-network-in-two-pag...