statechannels / dispute-game

A prototype of the dispute game in typescript and solidity.
MIT License
9 stars 0 forks source link

[NOT CAREFULLY WRITTEN] have a stab at storing low & high #1

Closed andrewgordstewart closed 3 years ago

andrewgordstewart commented 3 years ago

This takes advantage of the fact that the step indices are a function of:

Rather than supplying the step indices and validating them, the contract implicitly assumes. The off-chain logic should be updated accordingly:

The math might be a little wrong...