-
Notifications
You must be signed in to change notification settings - Fork 52
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
Static data chip #134
Static data chip #134
Conversation
These changes comment out the memory argument constraints. I'm not sure this is necessary, but I found it convenient to do so since we're convinced that the memory argument is unsound anyway, and Hadas is going to replace it. |
1ca280c
to
0923418
Compare
Because of the commented out code the warnings are getting out of hand. I've cleaned up as much as makes sense so we can still track them. Please merge #136 into this before merging this, if it's ok with you. |
@@ -179,6 +206,7 @@ impl MemoryChip { | |||
|
|||
cols.clk = F::from_canonical_usize(clk); | |||
cols.counter = F::from_canonical_usize(n); | |||
cols.is_static_initial = F::zero(); |
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.
I think this is not needed as it is set to zero on L204.
let mut row = [F::zero(); NUM_MEM_COLS]; | ||
let cols: &mut MemoryCols<F> = unsafe { transmute(&mut row) }; | ||
cols.is_static_initial = F::one(); | ||
cols.clk = F::zero(); |
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.
Similarly for these lines that set the values to zeros.
Clean up warnings.
Closes #133