Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove bb info command #6276

Merged
merged 3 commits into from
May 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -484,37 +484,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 @@ -773,11 +742,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
Loading