Skip to content

Commit cb6e829

Browse files
committed
add option to not use structured trace when computing standalone vk
1 parent cb3f22b commit cb6e829

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

barretenberg/cpp/src/barretenberg/api/api_client_ivc.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,18 @@ namespace { // anonymous namespace
2727
*
2828
* @param bytecode_path
2929
* @param witness_path
30+
* @param use_structured_trace Whether to utilize structured trace when computing VK for circuit
3031
*/
3132
void write_standalone_vk(const std::string& output_format,
3233
const std::filesystem::path& bytecode_path,
33-
const std::filesystem::path& output_path)
34+
const std::filesystem::path& output_path,
35+
bool use_structured_trace = true)
3436
{
3537
auto bytecode = get_bytecode(bytecode_path);
38+
auto trace_settings = use_structured_trace ? TraceSettings{ AZTEC_TRACE_STRUCTURE } : TraceSettings{};
3639
auto response = bbapi::ClientIvcComputeStandaloneVk{
3740
.circuit = { .name = "standalone_circuit", .bytecode = std::move(bytecode) }
38-
}.execute();
41+
}.execute({ .trace_settings = trace_settings });
3942

4043
bool wrote_file = false;
4144
bool is_stdout = output_path == "-";

0 commit comments

Comments
 (0)