zkas: Add a field definition on top of the circuit file.

Currently unused, but will probably be expanded to define proofs over
different fields.
This commit is contained in:
parazyd
2023-08-14 17:09:18 +02:00
parent af01483bfb
commit 6a024ab801
32 changed files with 79 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
k = 13;
field = "pallas";
constant "Arith" {}

View File

@@ -1,4 +1,5 @@
k = 13;
field = "pallas";
constant "Burn" {
EcFixedPointShort VALUE_COMMIT_VALUE,

View File

@@ -6,6 +6,7 @@
# This is basically the el gamal scheme in ZK
k = 13;
field = "pallas";
constant "Encrypt" {}

View File

@@ -1,4 +1,5 @@
k = 13;
field = "pallas";
constant "InclusionProof" {
}

View File

@@ -1,4 +1,5 @@
k = 13;
field = "pallas";
constant "Lead" {
EcFixedPointShort VALUE_COMMIT_VALUE,

View File

@@ -1,4 +1,5 @@
k = 13;
field = "pallas";
constant "Mint" {
EcFixedPointShort VALUE_COMMIT_VALUE,

View File

@@ -1,4 +1,5 @@
k = 13;
field = "pallas";
constant "Opcodes" {
EcFixedPointShort VALUE_COMMIT_VALUE,

View File

@@ -6,6 +6,7 @@
# 2 ** k is the maximum nubmer of rows in the circuit.
k = 11;
field = "pallas";
# Section to declare constants used in the circuit.
# "Set_V1" is the namepsace of circuit.

View File

@@ -1,4 +1,5 @@
k = 13;
field = "pallas";
constant "tx" {
EcFixedPointShort VALUE_COMMIT_VALUE,

View File

@@ -1,4 +1,5 @@
k = 13;
field = "pallas";
constant "Vote" {
EcFixedPointShort VALUE_COMMIT_VALUE,