Skip to main content
2 votes

ZoKrates witness computation

I'm not familiar with Zokrates, so let provide a partially generic answer. I assume this is related to proof generation. When generating proofs, depending on the used ZK proving system, your program (...
Lauri Peltonen's user avatar
2 votes

ZK-SNARKS with ZoKrates - problems with proving the hash preimage tutorial

The problem was that input from proof.json was not in string hex representation like the rest of the fields. "input" : [263561599766550617289250058199814760685,65303172752238645975888084098459749904,...
ivicaa's user avatar
  • 7,539
1 vote

ZoKrates witness computation

The arguments given to -a are the arguments that will be passed to your main function. These can be public or private depending on the main functions type signature. If you look at the final proof....
JW.'s user avatar
  • 111
1 vote

Issue with installing ZoKrates on Windows

Worked after waiting a whole hour
Osama Elghazaly's user avatar
1 vote

What would be the optimal way to store data in structure with comparisons in zokrates?

The best way to structure them is subjective - either way, you're going to have to iterate through at least one of your data files completely to ascertain which parameters they share. If it's for the ...
immaxkent's user avatar
  • 519
1 vote

How does zocrates process zk-SNARK step by step?

Disclaimer I am adding this answer on the off chance that it helps future readers. Answer to the q. 1: G is what is called the "trusted setup" phase. In trusted setup, a secret (the lambda) ...
Mahdad Baghani's user avatar
1 vote
Accepted

How to verify the sha256 result of integer 5 in the Zokrates tutorial?

So, I found a convincing verification via this link. In python there exists a function that turns a hex string into a byte representation like so: >>> preimage = bytes.fromhex('00 00 00 00 ...
Ytsen de Boer's user avatar
1 vote

Zokrates backend "gm17" not supported

GM 17 is the only backend that is supported by default. To enable GM16 (and PHGR13) you would have to build Zokrates from source using the appropriate flags. cargo +nightly -Z package-features build ...
0xsegfault's user avatar
  • 1,260
1 vote

Is there a way to obtain the same Hash using Keccak256 from Web3 and ZoKrates hash function such as sha256packed?

I think I solved it. What you have to do is using the method web3.eth.abi.encodeParameters(VALUES) inside function web3.utils.keccak256. This means: web3.utils.keccak256(web3.eth.abi....
eloramirez1356's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible