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
Variable inputs have type any. Every time we changed circom file we need to update inputs structs. However any make us hard to remember and easy to create error/bugs.
I think we should create function for auto gen inputs/outputs interface of circom. It's help developer easy to test and use circom.
Proposal
Create new interface command line to generate inputs/outputs interface.
Example
circom merkle_tree.circom --types types.ts
Circom file
include "../../../node_modules/circomlib/circuits/comparators.circom";
template Example() {
signal input first_input;
signal input second_input[100];
signal output first_output;
}
Motivation
We are using snarkjs as backend for circom.
Variable
inputs
have typeany
. Every time we changed circom file we need to update inputs structs. Howeverany
make us hard to remember and easy to create error/bugs.I think we should create function for auto gen inputs/outputs interface of circom. It's help developer easy to test and use circom.
Proposal
Create new interface command line to generate inputs/outputs interface.
Example
Circom file
We will generate inputs interface like bellow:
Samething for outputs interface.
Thank Iden3 for awesome work!
The text was updated successfully, but these errors were encountered: