Skip to content
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