Skip to content

Commit 12e01db

Browse files
committed
use version 4.0.0-nightly.20260128
1 parent 8b04288 commit 12e01db

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Install bb
2626
run: |
2727
curl -L https://raw.githubusercontent.com/AztecProtocol/aztec-packages/refs/heads/next/barretenberg/bbup/install | bash
28-
~/.bb/bbup -nv 1.0.0-beta.18
28+
~/.bb/bbup -v 4.0.0-nightly.20260128
2929
sudo apt install libc++-dev
3030
3131
- name: Build Noir benchmark programs

.github/workflows/circuits_e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Install Barretenberg
3939
run: |
4040
curl -L https://raw.githubusercontent.com/AztecProtocol/aztec-packages/refs/heads/next/barretenberg/bbup/install | bash
41-
~/.bb/bbup -nv 1.0.0-beta.18
41+
~/.bb/bbup -v 4.0.0-nightly.20260128
4242
sudo apt install libc++-dev
4343
- name: Compile Circuit
4444
run: |

.github/workflows/e2e_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Install Barretenberg
5050
run: |
5151
curl -L https://raw.githubusercontent.com/AztecProtocol/aztec-packages/refs/heads/next/barretenberg/bbup/install | bash
52-
~/.bb/bbup -nv 1.0.0-beta.18
52+
~/.bb/bbup -v 4.0.0-nightly.20260128
5353
sudo apt install libc++-dev
5454
5555
- name: Generate Witnesses

ethereum/oracles/src/noir/circuit/barretenberg.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,21 @@ export interface ProofJsonOutput {
2020
}
2121

2222
export class Barretenberg {
23+
private static readonly EXPECTED_VERSION = '4.0.0-nightly.20260128';
24+
2325
public static async create(): Promise<Barretenberg> {
2426
const binaryPath = path.join(os.homedir(), '.bb/bb');
27+
28+
// Verify bb version matches expected version
29+
const { stdout } = await $`${binaryPath} --version`;
30+
const installedVersion = stdout.trim();
31+
32+
if (installedVersion !== this.EXPECTED_VERSION) {
33+
throw new Error(
34+
`bb version mismatch: expected ${this.EXPECTED_VERSION}, found ${installedVersion}. Run: bbup -v ${this.EXPECTED_VERSION}`
35+
);
36+
}
37+
2538
return new Barretenberg(binaryPath);
2639
}
2740

0 commit comments

Comments
 (0)