-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* impl ValidityPredicateVerifyingInfo for VampIRValidityPredicateCircuit * update VampIRValidityPredicateCircuit * fix compile error * temporary fix: add the params to VampIRValidityPredicateCircuit * add a vamp_ir vp test
- Loading branch information
1 parent
6ef874f
commit 6609f8e
Showing
6 changed files
with
125 additions
and
1 deletion.
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
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"x": "15", | ||
"y": "20", | ||
"R": "25" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// declare R to be public | ||
pub R; | ||
|
||
// define the Pythagorean relation we are checking | ||
def pyth a b c = { | ||
a^2 + b^2 = c^2 | ||
}; | ||
|
||
// appends constraint x^2 + y^2 = R^2 to the circuit | ||
pyth x y R; |
Binary file not shown.
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