You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ZK proof verifier contracts auto-generated by snarkjs from circom circuits. They are just standard solidity contracts with a verifiyProof function.
Poseidon hash function contracts (with various input counts), which actually take the form of raw bytecode that is generated by a circomlibjs function. Currently I am copying this bytecode directly into a PoseidonSystem and then deploying it with an assembly create() call in the system constructor.
For both of these cases, I think it makes the most sense to store the resulting contract addresses in an AddressComponent, but I am wondering what the best way is to include the creation of these contracts into the mud deployment process, or non-standard use cases like this more generally?
The text was updated successfully, but these errors were encountered:
I have two use cases currently:
snarkjs
fromcircom
circuits. They are just standard solidity contracts with averifiyProof
function.circomlibjs
function. Currently I am copying this bytecode directly into aPoseidonSystem
and then deploying it with an assemblycreate()
call in the system constructor.For both of these cases, I think it makes the most sense to store the resulting contract addresses in an
AddressComponent
, but I am wondering what the best way is to include the creation of these contracts into the mud deployment process, or non-standard use cases like this more generally?The text was updated successfully, but these errors were encountered: