distaff icon indicating copy to clipboard operation
distaff copied to clipboard

Consider getting inspiration from ZKVM

Open gakonst opened this issue 4 years ago • 5 comments

This is great work! Do consider taking inspiration from ZkVM, since it implements a nice Bitcoin Script-like language (w/ bulletproofs as the proof system). You might get some nice ideas about the lang design from there https://github.com/stellar/slingshot/tree/main/zkvm

gakonst avatar Apr 24 '20 18:04 gakonst

Thank you! That's a very cool project - will definitely go there for inspiration from time to time.

bobbinth avatar Apr 24 '20 20:04 bobbinth

Thank you! That's a very cool project - will definitely go there for inspiration from time to time.

You are also doing a great project. I have a question. The sentence "A way to specify secret inputs which can change between program executions is not yet available, but will be provided in the future." , do it means the project doesn't support the secret inputs at present, so it is not zero-knowledge?

Federico2014 avatar Apr 30 '20 07:04 Federico2014

Thank you! You could provide secret inputs using a PUSH operation - but these inputs then become a part of the program - so, that's very limiting, and is definitely not the intent of how it should work.

In the future, you'll be able to provide a list of secret inputs, and there will be another operation (something like READ or maybe a different name). Every time READ is executed, it will take a value from the input list and push it onto the stack.

bobbinth avatar Apr 30 '20 14:04 bobbinth

Thank you very much for your reply. I really expect it. I wonder is it a general-purpose VM for arbitrary zero-knowledge implementation? Then many privacy-related problems on the blockchain can be solved by it. I feel it is will be very powerful

Federico2014 avatar May 01 '20 14:05 Federico2014

@Federico2014 I've just released a new version of the VM. It now has full support for unlimited number of secret inputs (as well as many other nice things) :)

bobbinth avatar Jun 03 '20 16:06 bobbinth