-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bb-prover): create structure for AVM vk
- Loading branch information
Showing
11 changed files
with
188 additions
and
19 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
barretenberg/cpp/src/barretenberg/vm/avm/tests/verification_key.test.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "barretenberg/vm/avm/generated/flavor.hpp" | ||
#include "barretenberg/vm/avm/tests/helpers.test.hpp" | ||
#include "barretenberg/vm/avm/trace/helper.hpp" | ||
#include "barretenberg/vm/aztec_constants.hpp" | ||
#include "barretenberg/vm/constants.hpp" | ||
#include "common.test.hpp" | ||
|
||
namespace tests_avm { | ||
|
||
using namespace bb; | ||
|
||
TEST(AvmTests, VerificationKeySizeMatches) | ||
{ | ||
srs::init_crs_factory("../srs_db/ignition"); | ||
|
||
auto circuit_builder = AvmCircuitBuilder(); | ||
circuit_builder.set_trace({}); | ||
|
||
AvmComposer composer = AvmComposer(); | ||
AvmVerifier verifier = composer.create_verifier(circuit_builder); | ||
|
||
EXPECT_EQ(verifier.key->size(), AVM_VERIFICATION_KEY_LENGTH_IN_FIELDS); | ||
} | ||
|
||
} // namespace tests_avm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters