File tree Expand file tree Collapse file tree 4 files changed +16
-3
lines changed
ethereum/oracles/src/noir/circuit Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 : |
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -20,8 +20,21 @@ export interface ProofJsonOutput {
2020}
2121
2222export 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
You can’t perform that action at this time.
0 commit comments