Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit 74dd855

Browse files
authored
Merge pull request #40 from gnosisguild/trbfv-bfv
PVSS (no aggregation)
2 parents bf4534b + 3cf2c0e commit 74dd855

File tree

163 files changed

+8928
-5096
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+8928
-5096
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -8,49 +8,42 @@ on:
88
- main
99

1010
jobs:
11-
rust:
12-
name: Rust CI
11+
noir:
12+
name: lib
1313
runs-on: ubuntu-latest
1414
defaults:
1515
run:
16-
working-directory: crates
16+
working-directory: lib
1717
steps:
1818
- uses: actions/checkout@v4
1919

20-
- name: Install Rust 1.85.0
21-
uses: actions-rs/toolchain@v1
22-
with:
23-
toolchain: 1.85.0
24-
components: rustfmt
25-
override: true
26-
27-
- name: Rust Cache
28-
uses: Swatinem/rust-cache@v2
20+
- name: Install Nargo
21+
uses: noir-lang/noirup@v0.1.4
2922
with:
30-
workspaces: crates -> target
23+
toolchain: v1.0.0-beta.15
3124

32-
- name: Check formatting
33-
run: cargo fmt --all -- --check
25+
- name: Check Noir formatting
26+
run: nargo fmt --check
3427

35-
- name: Run tests
36-
run: cargo test
28+
- name: Build Noir project
29+
run: nargo check
3730

38-
- name: Build
39-
run: cargo build --release
31+
- name: Run Noir tests
32+
run: nargo test
4033

41-
noir:
42-
name: Noir CI
34+
noir-bin-insecure:
35+
name: bin/insecure
4336
runs-on: ubuntu-latest
4437
defaults:
4538
run:
46-
working-directory: circuits
39+
working-directory: bin/insecure
4740
steps:
4841
- uses: actions/checkout@v4
4942

5043
- name: Install Nargo
51-
uses: noir-lang/noirup@v0.1.3
44+
uses: noir-lang/noirup@v0.1.4
5245
with:
53-
toolchain: stable
46+
toolchain: v1.0.0-beta.15
5447

5548
- name: Check Noir formatting
5649
run: nargo fmt --check
@@ -61,61 +54,25 @@ jobs:
6154
- name: Run Noir tests
6255
run: nargo test
6356

64-
noir-examples:
65-
name: Noir Example
57+
noir-bin-production:
58+
name: bin/production
6659
runs-on: ubuntu-latest
67-
timeout-minutes: 30
6860
defaults:
6961
run:
70-
working-directory: examples
62+
working-directory: bin/production
7163
steps:
7264
- uses: actions/checkout@v4
7365

74-
- name: Install Rust 1.85.0
75-
uses: actions-rs/toolchain@v1
76-
with:
77-
toolchain: 1.85.0
78-
override: true
79-
8066
- name: Install Nargo
8167
uses: noir-lang/noirup@v0.1.4
8268
with:
83-
toolchain: stable
84-
85-
- name: Install bbup (Barretenberg)
86-
run: |
87-
curl -L https://raw.githubusercontent.com/AztecProtocol/aztec-packages/refs/heads/master/barretenberg/bbup/install | bash
88-
echo "$HOME/.bb" >> $GITHUB_PATH
89-
export PATH="$HOME/.bb:$PATH"
90-
bbup
91-
bb --version
92-
93-
- name: Increase swapfile
94-
run: |
95-
sudo swapoff -a
96-
sudo fallocate -l 15G /swapfile
97-
sudo chmod 600 /swapfile
98-
sudo mkswap /swapfile
99-
sudo swapon /swapfile
100-
sudo swapon --show
101-
102-
- name: Compile example circuit
103-
working-directory: examples/pk_circuit
104-
run: nargo compile
105-
106-
- name: Execute example circuit
107-
working-directory: examples/pk_circuit
108-
run: nargo execute
109-
110-
- name: Generate proof
111-
working-directory: examples/pk_circuit
112-
run: bb prove -b ./target/pk_circuit.json -w ./target/pk_circuit.gz -o ./target
113-
114-
- name: Generate verification key
115-
working-directory: examples/pk_circuit
116-
run: bb write_vk -b ./target/pk_circuit.json -o ./target
117-
118-
- name: Verify proof
119-
working-directory: examples/pk_circuit
120-
run: bb verify -k ./target/vk -p ./target/proof
121-
continue-on-error: false
69+
toolchain: v1.0.0-beta.15
70+
71+
- name: Check Noir formatting
72+
run: nargo fmt --check
73+
74+
- name: Build Noir project
75+
run: nargo check
76+
77+
- name: Run Noir tests
78+
run: nargo test

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
target
2+
out
23
Prover.toml
3-
!examples/**/Prover.toml
4-
**/output/**/constants.nr
4+
benchmarks/results_production/raw
5+
benchmarks/results_insecure/raw
6+
.DS_Store

0 commit comments

Comments
 (0)