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).
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
verifier_common.sol
file for the shared library codeBackwards Compatibility
Not applicable