fileName
fileName
The circuit config file has a field fileName for every circuit declared inside circuits.
This value of this field is used to resolve the file path of your circuit and helps CircomJS from it.
The resolved file path is inputDIR/fileName. The below diagram illustrates this.

In the above scenario, the fileName is "multiply.circom", hence the file path where CircomJS will look for this circuit, will be at inputDIR/fileName, i.e ./circuits/multiply.circom.
What about nested file paths?
What if your circuit is inside a multiply directory? Then you should assign the following value to fileName->multiply/multiply.circom, this way CircomJS will look inside inputDir/multiply directory for a Circom file with the name multiply.circom.

Last updated