Skip to content

Commit

Permalink
fix: Do not load the BN254 CRS for verifying client ivc proofs (#7556)
Browse files Browse the repository at this point in the history
> since we are verifying we only need the g2_data part of the bn254 CRS
> (so you can pass size 0 or 1 or whatever small value doesn't error)

Thanks @codygunton for the tip!
  • Loading branch information
spalladino authored Jul 23, 2024
1 parent d65c692 commit e515b71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion barretenberg/cpp/src/barretenberg/bb/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ bool verify_client_ivc(const std::filesystem::path& proof_path,
const std::filesystem::path& eccvm_vk_path,
const std::filesystem::path& translator_vk_path)
{
init_bn254_crs(1 << 24);
init_bn254_crs(1);
init_grumpkin_crs(1 << 14);

const auto proof = from_buffer<ClientIVC::Proof>(read_file(proof_path));
Expand Down

0 comments on commit e515b71

Please sign in to comment.