ZoKrates | A toolbox for zkSNARKs on Ethereum | Cryptocurrency library
kandi X-RAY | ZoKrates Summary
kandi X-RAY | ZoKrates Summary
ZoKrates is a toolbox for zkSNARKs on Ethereum.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ZoKrates
ZoKrates Key Features
ZoKrates Examples and Code Snippets
Community Discussions
Trending Discussions on ZoKrates
QUESTION
I'm new to ZoKrates and ZK stuff in general. I am confused about how the witness works. If I compute an invalid witness the verifier still verifies the proof as correct. For example (based on ZoKrates "get started").
Given this program:
...ANSWER
Answered 2021-May-28 at 21:39I have realised the understanding that I was missing and it is rather simple. The proof in this case is not verifying that a * a
is equal to b
but instead it is simply a proof that I have run the computation.
For example the following generates a proof that I have run this program with a = 337
and b = 113569
and the return value is true
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ZoKrates
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page