loomnetwork / plasma-cash

Plasma Cash Contract & Client. ERC721, ERC20, and ETH compatible
https://loomx.io/developers
Other
271 stars 62 forks source link

Fix/challenge between exploit #59

Closed gakonst closed 6 years ago

gakonst commented 6 years ago

Fixes #52. This fix adds a new prevOwner field in an exit which allows us to have the necessary information in each challenge case when verifying the origin of a challenge.

We can try discussing ways this can become cleaner. The first exploit commit illustrates the issue.