forked from darkrenaissance/darkfi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zkas: Enforce k declaration on top of the source file.
- Loading branch information
Showing
36 changed files
with
127 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "Opcodes" { | ||
EcFixedPointShort VALUE_COMMIT_VALUE, | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "Opcodes" { | ||
EcFixedPointShort VALUE_COMMIT_VALUE, | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ if exists("b:current_syntax") | |
endif | ||
|
||
syn keyword zkasKeyword | ||
\ k | ||
\ constant | ||
\ witness | ||
\ circuit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "Simple" { | ||
EcFixedPointShort VALUE_COMMIT_VALUE, | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "Arith" {} | ||
|
||
witness "Arith" { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "Burn" { | ||
EcFixedPointShort VALUE_COMMIT_VALUE, | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
# | ||
# This is basically the el gamal scheme in ZK | ||
|
||
k = 13; | ||
|
||
constant "Encrypt" {} | ||
|
||
witness "Encrypt" { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "InclusionProof" { | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "Lead" { | ||
EcFixedPointShort VALUE_COMMIT_VALUE, | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "Mint" { | ||
EcFixedPointShort VALUE_COMMIT_VALUE, | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "Opcodes" { | ||
EcFixedPointShort VALUE_COMMIT_VALUE, | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "tx" { | ||
EcFixedPointShort VALUE_COMMIT_VALUE, | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "Vote" { | ||
EcFixedPointShort VALUE_COMMIT_VALUE, | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "RlnSignal" {} | ||
|
||
witness "RlnSignal" { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "RlnSlash" {} | ||
|
||
witness "RlnSlash" { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "ConsensusBurn_V1" { | ||
EcFixedPointShort VALUE_COMMIT_VALUE, | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "ConsensusMint_V1" { | ||
EcFixedPointShort VALUE_COMMIT_VALUE, | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "DaoExec" { | ||
EcFixedPointShort VALUE_COMMIT_VALUE, | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "DaoMint" { | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
EcFixedPointBase NULLIFIER_K, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "DaoProposeInput" { | ||
EcFixedPointBase NULLIFIER_K, | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "DaoProposeMain" { | ||
EcFixedPointShort VALUE_COMMIT_VALUE, | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "DaoVoteInput" { | ||
EcFixedPointBase NULLIFIER_K, | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "DaoVoteMain" { | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
EcFixedPointShort VALUE_COMMIT_VALUE, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "DeriveContractID" { | ||
EcFixedPointBase NULLIFIER_K, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "Burn_V1" { | ||
EcFixedPointShort VALUE_COMMIT_VALUE, | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "Mint_V1" { | ||
EcFixedPointShort VALUE_COMMIT_VALUE, | ||
EcFixedPoint VALUE_COMMIT_RANDOM, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
k = 13; | ||
|
||
constant "TokenFreeze_V1" { | ||
EcFixedPointBase NULLIFIER_K, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.