Skip to content

Commit fcd25ed

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

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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 = '3.0.0-nightly.20260102';
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)