mirror of
https://github.com/logos-storage/nim-groth16.git
synced 2026-01-08 00:23:09 +00:00
small comments / fix typos
This commit is contained in:
parent
26f708f908
commit
502e031e95
@ -33,6 +33,8 @@ proc exportPublicIO*( fpath: string, prf: Proof ) =
|
||||
let f = open(fpath, fmWrite)
|
||||
defer: f.close()
|
||||
|
||||
# note: we start from 1 because the 0th element is the constant 1 "variable",
|
||||
# which is automatically added by the tools
|
||||
for i in 1..<n:
|
||||
let str : string = toQuotedDecimalFr( prf.publicIO[i] )
|
||||
if i==1:
|
||||
|
||||
@ -43,7 +43,7 @@
|
||||
# ...
|
||||
# ...
|
||||
#
|
||||
# 4: Custom gates application
|
||||
# 5: Custom gates application
|
||||
# ---------------------------
|
||||
# ...
|
||||
# ...
|
||||
|
||||
@ -11,9 +11,7 @@
|
||||
#
|
||||
# nvars = 1 + pub + secret = 1 + npubout + npubin + nprivin + nsecret
|
||||
#
|
||||
# NOTE: Unlike the `.zkey` files, which encode field elements in the
|
||||
# Montgomery representation, the `.wtns` file encode field elements in
|
||||
# the standard representation!
|
||||
# Field elements are encoded in the standard representation.
|
||||
#
|
||||
|
||||
import std/streams
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
# beta2 : G2 = [beta]_2
|
||||
# gamma2 : G2 = [gamma]_2
|
||||
# delta1 : G1 = [delta]_1
|
||||
# delta2 : G2 = [delta_2]
|
||||
# delta2 : G2 = [delta]_2
|
||||
#
|
||||
# 3: IC
|
||||
# -----
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user