mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -05:00
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:
@@ -1,4 +1,5 @@
|
||||
k = 13;
|
||||
field = "pallas";
|
||||
|
||||
constant "Arith" {}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
k = 13;
|
||||
field = "pallas";
|
||||
|
||||
constant "Burn" {
|
||||
EcFixedPointShort VALUE_COMMIT_VALUE,
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
# This is basically the el gamal scheme in ZK
|
||||
|
||||
k = 13;
|
||||
field = "pallas";
|
||||
|
||||
constant "Encrypt" {}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
k = 13;
|
||||
field = "pallas";
|
||||
|
||||
constant "InclusionProof" {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
k = 13;
|
||||
field = "pallas";
|
||||
|
||||
constant "Lead" {
|
||||
EcFixedPointShort VALUE_COMMIT_VALUE,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
k = 13;
|
||||
field = "pallas";
|
||||
|
||||
constant "Mint" {
|
||||
EcFixedPointShort VALUE_COMMIT_VALUE,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
k = 13;
|
||||
field = "pallas";
|
||||
|
||||
constant "Opcodes" {
|
||||
EcFixedPointShort VALUE_COMMIT_VALUE,
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
k = 13;
|
||||
field = "pallas";
|
||||
|
||||
constant "tx" {
|
||||
EcFixedPointShort VALUE_COMMIT_VALUE,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
k = 13;
|
||||
field = "pallas";
|
||||
|
||||
constant "Vote" {
|
||||
EcFixedPointShort VALUE_COMMIT_VALUE,
|
||||
|
||||
Reference in New Issue
Block a user