Skip to content

Commit

Permalink
chore: remove acvmInfo from bb.js CLI (#6507)
Browse files Browse the repository at this point in the history
This is now unused (equivalent code was removed from `bb` binary)
  • Loading branch information
TomAFrench authored May 17, 2024
1 parent 3a4d828 commit e298c76
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 45 deletions.
24 changes: 0 additions & 24 deletions barretenberg/ts/src/info.ts

This file was deleted.

21 changes: 0 additions & 21 deletions barretenberg/ts/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import createDebug from 'debug';
import { readFileSync, writeFileSync } from 'fs';
import { gunzipSync } from 'zlib';
import { Command } from 'commander';
import { acvmInfoJson } from './info.js';
import { Timer, writeBenchmark } from './benchmark/index.js';
import path from 'path';
import { GrumpkinCrs } from './crs/node/index.js';
Expand Down Expand Up @@ -233,17 +232,6 @@ export async function gateCount(bytecodePath: string) {
}
}

export function acvmInfo(outputPath: string) {
const stringifiedJson = JSON.stringify(acvmInfoJson, null, 2);
if (outputPath === '-') {
process.stdout.write(stringifiedJson);
debug(`info written to stdout`);
} else {
writeFileSync(outputPath, stringifiedJson);
debug(`info written to: ${outputPath}`);
}
}

export async function verify(proofPath: string, vkPath: string) {
const { api, acirComposer } = await initLite();
try {
Expand Down Expand Up @@ -598,15 +586,6 @@ program
await vkAsFields(vkPath, outputPath);
});

program
.command('info')
.description('Return ACVM related metadata about the backend')
.requiredOption('-o, --output-path <path>', 'Specify the path to write the JSON information to')
.action(({ outputPath }) => {
handleGlobalOptions();
acvmInfo(outputPath);
});

program
.command('prove_ultra_honk')
.description('Generate a proof and write it to a file.')
Expand Down

0 comments on commit e298c76

Please sign in to comment.