5 ms·
> If players are taking turns, they can sign the state changes as they go, and submit the final couple moves to the blockchain. This is the same way that the
by albertgoeswoof 9y ago
> If players are taking turns, they can sign the state changes as they go, and submit the final couple moves to the blockchain.
This is the same way that the lightning / plasma network works, right?
- DennisP 9y agoYes, Lightning is similar, the previous blog post covers that. Plasma is a bit different, I'm still wrapping my head around it.
- theptip 9y agoIt'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.
- DennisP 9y agoIt'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-pages-of-solidity/ http://www.blunderingcode.com/a-lightning-network-in-two-pag...