loomnetwork / plasma-cash

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

[WIP] Plasma Debit - EXPERIMENTAL #115

Closed gakonst closed 5 years ago

gakonst commented 6 years ago

Implementing Plasma Debit. Very experimental, still no spec for conciseness.

Currently supports partial withdrawals where a user will get a and the operator v-a. If the operator cheats and submits an earlier nonce they can get challenged and forfeit the whole coin in a similar fashion to how the whole value inside a payment channel goes to the challenger if they win the dispute. Response still not impemented but will require the op to prove that a tx with a higher nonce was either signed by the user or was the one included in the block in question (probably?) Also supports liquidity injections by the operator in a coin