Laszlo Fazekas
Laszlo Fazekas
The result is the same (only index.css is generated) with this config: ``` "targets": { "client": { "source": "./src/client/index.ts", "distDir": "./dist/client", "context": "browser" }, "client_ssr": { "source": "./src/client/index_ssr.ts", "distDir": "./dist/client",...
Could you paste some code here to see the problem better?
Maybe the problem is the finite field. In ZKP every number is represented as X mod P where P is a large prime. Are you using these numbers everywhere? I'm...
Can you send me the full stack trace? Which method throws this error?
I think, it is a restriction of the provider. Check this answer on STO: https://ethereum.stackexchange.com/questions/107590/contract-queryfilterfilter-giving-me-errors-in-ethers-js
Hi! The events are used to build the Merkle tree locally to calculate the Merkle proof. The code is in the calculateMerkleRootAndPathFromEvents method. It queries only the Commit events, and...
Yep, building the tree and calculating the zkproof can be CPU intensive.
I'm not a ZKP expert, but as I know FIELD_SIZE is a large prime number for the finite field math, and I'm not sure that you can change it. MerkleTreeWithHistory...
Hmm. One of the possible solutions is if you split your address into parts (10-10 bytes), and calculates the mimc hash of it as TC calculates the commitment from the...
If I understand well, you don't need ZKP for this because you don't have to hide the address of the voter in the registration phase. Simply build a Merkle tree...