-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ultraplonk check_circuit #366
Merged
Merged
Changes from 9 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
9579fe9
FInished aux
Rumata888 993ef5b
In-the-head stuff is added
Rumata888 b52c434
Check circuit is woests and comments left
Rumata888 aec6ac6
Added comments and state checks
Rumata888 2b11ed6
Move plookup tables into proof_system
Rumata888 8fe3463
All the standard tests are working with check_circuit
Rumata888 77a6e6f
Added a showcase for check_circuit
Rumata888 4f5ac86
Moved members from proof_system into the UltraCircuitConstructor
Rumata888 26abe0e
Fixed non-native caching
Rumata888 88e682d
Changed check_circuit according to Cody's suggestion
Rumata888 3ffca90
Some cosmetic changes
Rumata888 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,10 @@ | |
#include "barretenberg/plonk/proof_system/commitment_scheme/kate_commitment_scheme.hpp" | ||
#include "barretenberg/srs/reference_string/file_reference_string.hpp" | ||
|
||
#include "plookup_tables/types.hpp" | ||
#include "plookup_tables/plookup_tables.hpp" | ||
#include "plookup_tables/aes128.hpp" | ||
#include "plookup_tables/sha256.hpp" | ||
#include "barretenberg/proof_system/plookup_tables/types.hpp" | ||
#include "barretenberg/proof_system/plookup_tables/plookup_tables.hpp" | ||
#include "barretenberg/proof_system/plookup_tables/aes128.hpp" | ||
#include "barretenberg/proof_system/plookup_tables/sha256.hpp" | ||
|
||
#ifndef NO_TBB | ||
#include <tbb/atomic.h> | ||
|
@@ -1845,6 +1845,7 @@ std::array<uint32_t, 2> UltraComposer::decompose_non_native_field_double_width_l | |
const uint256_t value = get_variable(limb_idx); | ||
const uint256_t low = value & LIMB_MASK; | ||
const uint256_t hi = value >> DEFAULT_NON_NATIVE_FIELD_LIMB_BITS; | ||
// WTF(kesha): What is this supposed to do? Unless uint256_t has failed, this should always work | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ha, harder to find this if it doesn't contain the word TODO somewhere... |
||
ASSERT(low + (hi << DEFAULT_NON_NATIVE_FIELD_LIMB_BITS) == value); | ||
|
||
const uint32_t low_idx = add_variable(low); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
barretenberg_module(proof_system polynomials crypto_generators) | ||
barretenberg_module(proof_system polynomials crypto_generators crypto_pedersen_hash) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corresponding change in the definition of
compute_witness_base
? If it's really should be calledNUM_RESERVED_GATES
then we should change the name of the function argument, no? Your goal is just uniformity of naming, right, there's no difference?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But below we have
num_randomized_gates = NUM_RESERVED_GATES
. Are we just using the fact that presently we haveNUM_RESERVED_GATES==NUM_RANDOMIZED_GATES
? Both of these could be specified statically in the flavor, so it's probably best to keep the roles distinct.