A quick Demo, showcasing some ZK features
- run
curl -LSfs get.zokrat.es | sh
- We're going to create a zk program that calculates the SHA256 hash two given field elements
- The resulting proof can then be used to prove knpowledge of the premimage, without revealing it
zokrates compile -i sha.zok
zokrates setup
zokrates compute-witness -a 2 4 6 8
zokrates generate-proof
zokrates export-verifier
- visit
https://remix.ethereum.org/
and copy one of the contracts into the editor - select Remix environment
Web3 Provider
- select
Contract Verifier
as contract