Code Monkey home page Code Monkey logo

Comments (3)

gakonst avatar gakonst commented on June 7, 2024 1

TLDR You need to allow multiple challenges per exit, or loss of funds can occur. Extending the exit period is not feasible because of the griefing vector that I described above. An alternative to splitting the challenge period, is to simply not allow an exit to be finalized if it has pending challenges. This is done in https://github.com/counterfactual/plasma-cash however it does not work with security bonds.


Long version: Your suggestion was the first approach I had. However, this means that a malicious challenger can infinitely extend a coin's exit (at the cost of 1 bond per exit period extension).

Attack:
A exits coin
M challenges exit at seconds before 7 days (needs to put up a security bond)
Challenge period gets extended by 3 days (example)
A responds to the challenge, exit can be finalized after the 3 days pass. M also loses the security bond.
M challenges exit at seconds before 3 days.
...(repeat)

The naive solution to the above is to allow the exit to be challenge only once. This however is also broken, since (by collaborating with the operator), a user can try to exit a coin with an invalid history, challenge their own exit, and then respond to their own exit, making the coin no longer challenge-able.

from plasma-cash.

gakonst avatar gakonst commented on June 7, 2024

We split the challenge period for challenges with invalid history to avoid an attack where an interactive challenge is made right before the challenge period is over and there is not enough time to respond to it. The full 7 days can be used for non-interactive challenges. The 7 days is just a security parameter and you can adjust it to be however much you want.

from plasma-cash.

syuhei176 avatar syuhei176 commented on June 7, 2024

Thank you for your replying! I understood.

This is just a question.
Extending "respondChallenge period" when challengeBefore occurred is not good implementation?

from plasma-cash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.