Skip to content

Commit

Permalink
chore: remove bb info command (#6276)
Browse files Browse the repository at this point in the history
This command is no longer used and so we can remove it.
  • Loading branch information
TomAFrench committed May 9, 2024
1 parent cc59981 commit f0a1c89
Showing 1 changed file with 0 additions and 36 deletions.
36 changes: 0 additions & 36 deletions barretenberg/cpp/src/barretenberg/bb/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,37 +508,6 @@ void vk_as_fields(const std::string& vk_path, const std::string& output_path)
}
}

/**
* @brief Returns ACVM related backend information
*
* Communication:
* - stdout: The json string is written to stdout
* - Filesystem: The json string is written to the path specified
*
* @param output_path Path to write the information to
*/
void acvm_info(const std::string& output_path)
{

const char* jsonData = R"({
"language": {
"name" : "PLONK-CSAT",
"width" : 4
}
})";

size_t length = strlen(jsonData);
std::vector<uint8_t> data(jsonData, jsonData + length);

if (output_path == "-") {
writeRawBytesToStdout(data);
vinfo("info written to stdout");
} else {
write_file(output_path, data);
vinfo("info written to: ", output_path);
}
}

/**
* @brief Writes an avm proof and corresponding (incomplete) verification key to files.
*
Expand Down Expand Up @@ -797,11 +766,6 @@ int main(int argc, char* argv[])
writeStringToStdout(BB_VERSION);
return 0;
}
if (command == "info") {
std::string output_path = get_option(args, "-o", "info.json");
acvm_info(output_path);
return 0;
}
if (command == "prove_and_verify") {
return proveAndVerify(bytecode_path, witness_path) ? 0 : 1;
}
Expand Down

0 comments on commit f0a1c89

Please sign in to comment.