From 42cac14db2d01fe7449429dc692c374fa82024ee Mon Sep 17 00:00:00 2001 From: TomAFrench Date: Fri, 17 May 2024 13:36:54 +0000 Subject: [PATCH] chore: remove acvmInfo from bb.js CLI --- barretenberg/ts/src/info.ts | 24 ------------------------ barretenberg/ts/src/main.ts | 21 --------------------- 2 files changed, 45 deletions(-) delete mode 100644 barretenberg/ts/src/info.ts diff --git a/barretenberg/ts/src/info.ts b/barretenberg/ts/src/info.ts deleted file mode 100644 index f5ad9980591..00000000000 --- a/barretenberg/ts/src/info.ts +++ /dev/null @@ -1,24 +0,0 @@ -/* eslint-disable camelcase */ -export const acvmInfoJson = { - language: { - name: 'PLONK-CSAT', - width: 3, - }, - opcodes_supported: ['arithmetic', 'directive', 'brillig', 'memory_init', 'memory_op'], - black_box_functions_supported: [ - 'and', - 'xor', - 'range', - 'aes128_encrypt', - 'sha256', - 'blake2s', - 'keccak256', - 'schnorr_verify', - 'pedersen', - 'pedersen_hash', - 'ecdsa_secp256k1', - 'ecdsa_secp256r1', - 'multi_scalar_mul', - 'recursive_aggregation', - ], -}; diff --git a/barretenberg/ts/src/main.ts b/barretenberg/ts/src/main.ts index 5e864f7867d..8e07dceb8c0 100755 --- a/barretenberg/ts/src/main.ts +++ b/barretenberg/ts/src/main.ts @@ -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'; @@ -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 { @@ -598,15 +586,6 @@ program await vkAsFields(vkPath, outputPath); }); -program - .command('info') - .description('Return ACVM related metadata about the backend') - .requiredOption('-o, --output-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.')