Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions barretenberg/cpp/src/barretenberg/api/api_ultra_honk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ bool _verify(const bool honk_recursion_2, const std::filesystem::path& proof_pat
verified = verifier.verify_proof(proof);
}

if (verified) {
info("Proof verified successfully");
} else {
info("Proof verification failed");
}

return verified;
}

Expand Down Expand Up @@ -212,6 +218,7 @@ void UltraHonkAPI::write_contract(const Flags& flags,
std::cout << contract;
} else {
write_file(output_path, { contract.begin(), contract.end() });
info("Solidity verifier saved to ", output_path);
}
}

Expand Down
4 changes: 4 additions & 0 deletions barretenberg/cpp/src/barretenberg/api/write_prover_output.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ void write(const ProverOutput& prover_output,
write_bytes_to_stdout(buf);
} else {
write_file(output_dir / "proof", buf);
info("Proof saved to ", output_dir / "proof");
}
break;
}
Expand All @@ -43,6 +44,7 @@ void write(const ProverOutput& prover_output,
write_bytes_to_stdout(buf);
} else {
write_file(output_dir / "vk", buf);
info("VK saved to ", output_dir / "vk");
}
break;
}
Expand All @@ -57,6 +59,7 @@ void write(const ProverOutput& prover_output,
std::cout << proof_json;
} else {
write_file(output_dir / "proof_fields.json", { proof_json.begin(), proof_json.end() });
info("Proof fields saved to ", output_dir / "proof_fields.json");
}
break;
}
Expand All @@ -66,6 +69,7 @@ void write(const ProverOutput& prover_output,
std::cout << vk_json;
} else {
write_file(output_dir / "vk_fields.json", { vk_json.begin(), vk_json.end() });
info("VK fields saved to ", output_dir / "vk_fields.json");
}
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,7 @@ template <IsUltraFlavor Flavor> class DeciderProvingKey_ {
}
}

info("Finalized circuit size: ",
circuit.num_gates,
". Log dyadic circuit size: ",
numeric::get_msb(dyadic_circuit_size),
".");
info("Finalized circuit size: ", circuit.num_gates);
circuit.blocks.compute_offsets(is_structured); // compute offset of each block within the trace

// Find index of last non-trivial wire value in the trace
Expand Down
Loading