Skip to content

Commit

Permalink
add utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dple committed Apr 3, 2024
1 parent ee6375d commit 5af7d95
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions gorth16/understanding_groth16.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@
Let's reuse some code implemented in the file enc_eval_qap.py.
You can get more explanation on why these calculations on the above source file.
The task is to evaluate out <== 3xˆ3 - 5xˆ2yˆ2 + 7xyˆ2 - 21y + 11
- Constraints
v1 = xx
v2 = yy
v3 = 3xv1
v4 = 5v1v2
out - 11 - v3 + v4 + 21y = 7xv2 -> as addition is 'free', we move them to the output side
witness = [1, out, x, y, v1, v2, v3, v4]
"""

from py_ecc.bn128 import G1, G2, multiply, add, pairing, curve_order, Z1
Expand Down

0 comments on commit 5af7d95

Please sign in to comment.