Skip to content

Add witness calculation to the browser version - #8

Open
poma wants to merge 3 commits into
iden3:masterfrom
poma:master
Open

poma wants to merge 3 commits into
iden3:masterfrom
poma:master

Conversation

@poma

@poma poma commented Jul 13, 2019

Copy link
Copy Markdown

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

poma commented Jul 15, 2019

Copy link
Copy Markdown
Author

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

@CLAassistant

CLAassistant commented Aug 27, 2019

Copy link
Copy Markdown

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