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

fix: remove enforce selector constraint #205

Merged
merged 26 commits into from
Aug 31, 2023
Merged

Conversation

entropidelic
Copy link
Collaborator

@entropidelic entropidelic commented Jul 28, 2023

Removes the enforce selector constraint from the Cairo AIR.

IMPORTANT NOTE: For the moment, since we need programs compiled in proof mode, Cairo 1 programs will not be supported.

@entropidelic entropidelic marked this pull request as ready for review August 1, 2023 15:11
@entropidelic entropidelic marked this pull request as draft August 1, 2023 17:33
@codecov-commenter
Copy link

Codecov Report

Merging #205 (cafde86) into main (908e7ab) will decrease coverage by 1.62%.
The diff coverage is 98.20%.

@@            Coverage Diff             @@
##             main     #205      +/-   ##
==========================================
- Coverage   94.87%   93.26%   -1.62%     
==========================================
  Files          33       33              
  Lines        7069     6773     -296     
==========================================
- Hits         6707     6317     -390     
- Misses        362      456      +94     
Files Changed Coverage Δ
cairo_prover/src/main.rs 0.00% <0.00%> (ø)
cairo_prover/src/runner/run.rs 66.04% <87.50%> (-27.94%) ⬇️
cairo_prover/src/air.rs 98.69% <100.00%> (+0.08%) ⬆️
cairo_prover/src/execution_trace.rs 99.59% <100.00%> (-0.15%) ⬇️
stark_prover/src/proof/stark.rs 98.11% <100.00%> (+0.03%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@MauroToscano MauroToscano marked this pull request as ready for review August 28, 2023 20:27
Comment on lines 9 to 11
[[bin]]
name = "cairo-platinum"
path = "src/main.rs"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a recent pr merged to main that modified the Makefile to use cairo-platinum-prover as the name of the binary. That should be reverted if this change is merged to main


let memory_holes = get_memory_holes(&address_cols, public_input.public_memory.len());
let memory_holes = get_memory_holes(&address_cols, public_input.codelen);
// let memory_holes = get_memory_holes(&address_cols, public_input.public_memory.len());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line should be removed

Copy link
Contributor

@schouhy schouhy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Left some minor comments

@MauroToscano MauroToscano added this pull request to the merge queue Aug 31, 2023
Merged via the queue into main with commit 3002245 Aug 31, 2023
5 checks passed
@MauroToscano MauroToscano deleted the remove-enforce-selector branch August 31, 2023 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants