From 705e500a5dd841ad1be068116423f88305b96dd3 Mon Sep 17 00:00:00 2001 From: mottla Date: Mon, 13 May 2019 10:41:08 +0200 Subject: [PATCH] -initial commit, -extending flat code compiler to a more general compiler -reducing all gates to multiplication gates only in the R1CS description of a program. --- .idea/go-snark.iml | 8 + .idea/misc.xml | 6 + .idea/modules.xml | 8 + .idea/vcs.xml | 6 + .idea/workspace.xml | 552 +++++++++++++++++++++++++++++++ README.md | 14 +- bn128/bn128.go | 2 +- bn128/g1.go | 2 +- bn128/g2.go | 2 +- circuitcompiler/Programm.go | 382 +++++++++++++++++++++ circuitcompiler/Programm_test.go | 78 +++++ circuitcompiler/circuit.go | 445 +++++++++++++++++-------- circuitcompiler/circuit_test.go | 182 ++++++---- circuitcompiler/lexer.go | 54 ++- circuitcompiler/parser.go | 196 ++++------- cli/main.go | 6 +- r1csqap/r1csqap.go | 2 +- r1csqap/r1csqap_test.go | 2 +- snark.go | 8 +- snark_test.go | 380 +++++---------------- 20 files changed, 1675 insertions(+), 660 deletions(-) create mode 100644 .idea/go-snark.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 circuitcompiler/Programm.go create mode 100644 circuitcompiler/Programm_test.go diff --git a/.idea/go-snark.iml b/.idea/go-snark.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/.idea/go-snark.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..28a804d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..b9cbca6 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..405f86d --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,552 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + arnaucube + oneConst + getmain + opera + + + mottla + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +