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

Supporting custom instructions #59

Open
mrsmkl opened this issue Sep 7, 2018 · 0 comments
Open

Supporting custom instructions #59

mrsmkl opened this issue Sep 7, 2018 · 0 comments

Comments

@mrsmkl
Copy link
Member

mrsmkl commented Sep 7, 2018

To support custom instructions, a kind of plugin architecture will be needed.

The way custom instructions for in the interpreter is that the instruction will modify a file inside the VM (this way any amount of data can be passed).

When the dispute involves a custom instruction, the verification game proceed into another smart contract, called a custom judge. So the solvers and verifiers have to listen for events in the custom judge. The file data before and after the instruction is given as arguments to this judge. Then the solver will have to show that the instruction has been handled correctly. The data before instruction can be generated by running the interpreter up to that point.

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

No branches or pull requests

1 participant