Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Plasma Debit - EXPERIMENTAL #115

Closed
wants to merge 9 commits into from
Closed

[WIP] Plasma Debit - EXPERIMENTAL #115

wants to merge 9 commits into from

Conversation

gakonst
Copy link
Contributor

@gakonst gakonst commented Aug 17, 2018

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

Add authority for simplicity, will modify for multiple validators in the
future
Modify Transaction format to include a nonce (will be used for challenges)
When an exit gets finalized, the coin's balance value will be written with the exit's balance value
If an operator tries to submit an earlier state the user can challenge by submitting a signed transaction by the operator for some nonce
The operator has to respond, otherwise the challenge goes through
Finalizing a channel challenge initiates an exit for the coin under the challenge and awards the WHOLE coin to the user, even if the operator previously owned a part of it in the off-chain state

This is experimental and the technique may be subject to change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant