-
Notifications
You must be signed in to change notification settings - Fork 266
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
fix: Fix block constraint key divergence bug. #3256
Merged
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7aa9385
Fix block constraint key divergence bug.
charlielye 6dc3684
Merge branch 'master' into cl/fix_block_constraint
charlielye af9c25d
Merge branch 'master' into cl/fix_block_constraint
charlielye dc639f1
Remove init pk in prove for bb.js
charlielye 439d4cd
Merge branch 'master' into cl/fix_block_constraint
Maddiaa0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
FROM 278380418400.dkr.ecr.eu-west-2.amazonaws.com/barretenberg-x86_64-linux-clang-assert | ||
|
||
FROM node:18-alpine | ||
RUN apk update && apk add git bash curl jq | ||
RUN apk update && apk add git bash curl jq coreutils | ||
COPY --from=0 /usr/src/barretenberg/cpp/build /usr/src/barretenberg/cpp/build | ||
WORKDIR /usr/src/barretenberg/acir_tests | ||
COPY . . | ||
# Run every acir test through native bb build "prove_and_verify". | ||
RUN FLOW=all_cmds ./run_acir_tests.sh | ||
# Run every acir test through native bb build prove_then_verify flow. | ||
# This ensures we test independent pk construction through real/garbage witness data paths. | ||
RUN FLOW=prove_then_verify ./run_acir_tests.sh | ||
# Run 1_mul through native bb build, all_cmds flow, to test all cli args. | ||
RUN VERBOSE=1 FLOW=all_cmds ./run_acir_tests.sh 1_mul |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
if [ -n "$VERBOSE" ]; then | ||
$BIN prove_and_verify -v -c $CRS_PATH -b ./target/acir.gz | ||
else | ||
$BIN prove_and_verify -c $CRS_PATH -b ./target/acir.gz | ||
fi | ||
VFLAG=${VERBOSE:+-v} | ||
|
||
# This is the fastest flow, because it only generates pk/vk once, gate count once, etc. | ||
# It may not catch all class of bugs. | ||
$BIN prove_and_verify $VFLAG -c $CRS_PATH -b ./target/acir.gz |
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,12 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
VFLAG=${VERBOSE:+-v} | ||
BFLAG="-b ./target/acir.gz" | ||
FLAGS="-c $CRS_PATH $VFLAG" | ||
|
||
# Test we can perform the proof/verify flow. | ||
# This ensures we test independent pk construction through real/garbage witness data paths. | ||
$BIN prove -o proof $FLAGS $BFLAG | ||
$BIN write_vk -o vk $FLAGS $BFLAG | ||
$BIN verify -k vk -p proof $FLAGS |
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
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.
After a master merge this will have to be removed in main.ts for bb.js