r1cs
¶
from https://github.com/ethereum/research/blob/master/zksnark/code_to_r1cs.py ref: https://medium.com/@VitalikButerin/quadratic-arithmetic-programs-from-zero-to-hero-f6d558cea649
Module Contents¶
Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
-
r1cs.
insert_var
(arr, varz, var, used, reverse=False)¶
-
r1cs.
get_var_placement
(inputs, flatcode)¶
-
r1cs.
flatcode_to_r1cs
(inputs, flatcode, field=int)¶
-
r1cs.
grab_var
(varz, assignment, var)¶
-
r1cs.
assign_variables
(inputs, input_vars, flatcode, field)¶
-
r1cs.
code_to_r1cs_with_inputs
(code, input_vars, field)¶
-
r1cs.
mul
(a, b)¶