Ver Fonte

contracts: adjust k values to smallest possible

zero há 2 anos atrás
pai
commit
441150bbad

BIN
doc/src/assets/zk-circuit-layout.png


+ 4 - 0
doc/src/zkas/writing-zk-proofs.md

@@ -94,3 +94,7 @@ To generate an image of the circuit layout, simply run:
 ./bin/zkrunner/zkrender.py -w src/contract/dao/proof/witness/exec.json src/contract/dao/proof/exec.zk /tmp/layout.png
 ./bin/zkrunner/zkrender.py -w src/contract/dao/proof/witness/exec.json src/contract/dao/proof/exec.zk /tmp/layout.png
 ```
 ```
 
 
+You should see something like:
+
+![](../assets/zk-circuit-layout.png)
+

+ 1 - 1
src/contract/dao/proof/auth-money-transfer-enc-coin.zk

@@ -1,4 +1,4 @@
-k = 13;
+k = 11;
 field = "pallas";
 field = "pallas";
 
 
 constant "AuthMoneyTransferEncCoin" {
 constant "AuthMoneyTransferEncCoin" {

+ 1 - 1
src/contract/dao/proof/auth-money-transfer.zk

@@ -1,4 +1,4 @@
-k = 13;
+k = 11;
 field = "pallas";
 field = "pallas";
 
 
 constant "AuthMoneyTransfer" {
 constant "AuthMoneyTransfer" {

+ 1 - 1
src/contract/dao/proof/exec.zk

@@ -1,4 +1,4 @@
-k = 13;
+k = 11;
 field = "pallas";
 field = "pallas";
 
 
 constant "Exec" {
 constant "Exec" {

+ 1 - 1
src/contract/dao/proof/mint.zk

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

+ 1 - 1
src/contract/dao/proof/propose-main.zk

@@ -1,4 +1,4 @@
-k = 13;
+k = 11;
 field = "pallas";
 field = "pallas";
 
 
 constant "ProposeMain" {
 constant "ProposeMain" {

+ 1 - 1
src/contract/dao/proof/vote-main.zk

@@ -1,4 +1,4 @@
-k = 13;
+k = 11;
 field = "pallas";
 field = "pallas";
 
 
 constant "VoteMain" {
 constant "VoteMain" {

+ 1 - 1
src/contract/money/proof/auth_token_mint_v1.zk

@@ -1,5 +1,5 @@
 # Circuit used to mint arbitrary coins given a mint authority secret.
 # Circuit used to mint arbitrary coins given a mint authority secret.
-k = 13;
+k = 11;
 field = "pallas";
 field = "pallas";
 
 
 constant "AuthTokenMint_V1" {
 constant "AuthTokenMint_V1" {

+ 1 - 1
src/contract/money/proof/burn_v1.zk

@@ -1,5 +1,5 @@
 # The k parameter defining the number of rows used in our circuit (2^k)
 # The k parameter defining the number of rows used in our circuit (2^k)
-k = 13;
+k = 11;
 field = "pallas";
 field = "pallas";
 
 
 # The constants we define for our circuit
 # The constants we define for our circuit

+ 1 - 1
src/contract/money/proof/fee_v1.zk

@@ -1,4 +1,4 @@
-k = 13;
+k = 11;
 field = "pallas";
 field = "pallas";
 
 
 constant "Fee_V1" {
 constant "Fee_V1" {

+ 1 - 1
src/contract/money/proof/mint_v1.zk

@@ -1,5 +1,5 @@
 # The k parameter defining the number of rows used in our circuit (2^k)
 # The k parameter defining the number of rows used in our circuit (2^k)
-k = 13;
+k = 11;
 field = "pallas";
 field = "pallas";
 
 
 # The constants we define for our circuit
 # The constants we define for our circuit

+ 1 - 1
src/contract/money/proof/token_freeze_v1.zk

@@ -1,4 +1,4 @@
-k = 13;
+k = 11;
 field = "pallas";
 field = "pallas";
 
 
 constant "TokenFreeze_V1" {
 constant "TokenFreeze_V1" {

+ 1 - 1
src/contract/money/proof/token_mint_v1.zk

@@ -1,5 +1,5 @@
 # Circuit used to mint arbitrary coins given a mint authority secret.
 # Circuit used to mint arbitrary coins given a mint authority secret.
-k = 13;
+k = 11;
 field = "pallas";
 field = "pallas";
 
 
 constant "TokenMint_V1" {
 constant "TokenMint_V1" {