Skip to content
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

feat(avm): constrain sha256 #11048

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
9 changes: 9 additions & 0 deletions barretenberg/cpp/.clangd
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,12 @@ Diagnostics:
Remove:
- cppcoreguidelines-avoid-non-const-global-variables
- cppcoreguidelines-special-member-functions

--- # this divider is necessary
# Suppressing some noisy AVM warnings
If:
PathMatch: [src/barretenberg/vm.*\.cpp]
Diagnostics:
Suppress:
- -Wmissing-designated-field-initializers

1 change: 1 addition & 0 deletions barretenberg/cpp/pil/vm2/execution.pil
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ include "alu.pil";
include "addressing.pil";
include "range_check.pil";
include "precomputed.pil";
include "sha256.pil";

namespace execution;

Expand Down
4 changes: 4 additions & 0 deletions barretenberg/cpp/pil/vm2/precomputed.pil
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ pol constant sel_range_16; // 1 in the first 2^16 rows [0, 2^16)
// For a given row, the exponent is clk (value = 2^clk)
// Populated for the first 256 rows [0, 255]
pol constant power_of_2;

// SHA256 Round Params Lookup
pol constant sel_sha256_compression;
IlyasRidhuan marked this conversation as resolved.
Show resolved Hide resolved
pol constant sha256_compression_round_constant;
Loading
Loading