Zokrates / ZoKrates

A toolbox for zkSNARKs on Ethereum
https://zokrates.github.io
GNU Lesser General Public License v3.0
1.83k stars 361 forks source link

CLI switch that preps for multiple solidity verifier contracts #1128

Open ddengster opened 2 years ago

ddengster commented 2 years ago

Abstract

I'm exporting multiple verifiers for my number guessing game. I've had to rework code to cater to this. Most notable is that since contract inheritance is the way to save on gas costs while organizing code, my verifier functions and structs need to have a prefix so we can get around name collisions when inheriting (not sure if there's an alternative solidity-style way around this).

See https://github.com/ddengster/zk_numberguesser/tree/master/contracts , namely the 3 verifier .sol contracts.

Motivation

Saves on some dev time.

Specification

Backwards Compatibility

Not applicable