the principles behind JSnark
framework
An arithmetic circuit is quite simple. Typically, it consists of a set of wires and gates. For example, the function f(x1, x2, x3, x4) = (x1 * x2 + 5) * ((x3 + x4) * 6) can be computed by the following circuit:
total 12
input 0 # The one-input wire.
const-mul-0 in 1 <0> out 1 <1>
input 2