Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/validate-circuits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
echo "$HOME/.nargo/bin" >> $GITHUB_PATH

- name: Add Noir to PATH
run: echo "$HOME/.nargo/bin" >> $GITHUB_PAT
run: echo "$HOME/.nargo/bin" >> $GITHUB_PATH

- name: Detect changed circuit files
id: detect
Expand Down
11 changes: 11 additions & 0 deletions benchmarking-suite/frameworks/circom/circuits/test.circom
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
pragma circom 2.1.6;

template Multiply() {
signal input a;
signal input b;
signal output out;

out <== a * b;
}

component main = Multiply();
14 changes: 14 additions & 0 deletions benchmarking-suite/frameworks/circom/circuits/test2.circom
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pragma circom 2.0.0;

/*This circuit template checks that c is the multiplication of a and b.*/

template Multiplier2 () {

// Declaration of signals.
signal input a;
signal input b;
signal output c;

// Constraints.
c <== a * b;
}
6 changes: 6 additions & 0 deletions benchmarking-suite/frameworks/noir/circuits/test/Nargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "test"
type = "bin"
authors = [""]

[dependencies]
11 changes: 11 additions & 0 deletions benchmarking-suite/frameworks/noir/circuits/test/src/main.nr
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
fn main(x: Field, y: pub Field) {
assert(x != y);
}

#[test]
fn test_main() {
main(1, 2);

// Uncomment to make test fail
// main(1, 1);
}
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
def main():
print("Hello, World!")

main()