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

Add witness calculation to the browser version #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

poma
Copy link

@poma poma commented Jul 13, 2019

Most of the time when someone wants to use a prover in browser, they also want to calculate witness in browser too. I've added witness calculation by pulling only small subset of snarkjs, and added it in the same way as previous genZKSnarkProof function. It also outputs public snark inputs with the proof. In addition there is a small function zkSnarkProofToSolidityInput that converts the proof to format solidity verifier expects.

I've added all my code to main.js put probably some parts of it should be moved to other places.

@poma
Copy link
Author

poma commented Jul 15, 2019

Now all code is in proper places, PR is ready for review

@CLAassistant
Copy link

CLAassistant commented Aug 27, 2019

CLA assistant check
All committers have signed the CLA.

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.

2 participants