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

Implement FRI Prover #20

Closed

Conversation

varunthakore
Copy link
Contributor

Implements FRI prover and correctness tests corresponding to the following Stone library:

https://github.com/starkware-libs/stone-prover/tree/main/src/starkware/fri

This PR has dependence on #18 and #19.

Copy link
Contributor

@rot256 rot256 left a comment

Choose a reason for hiding this comment

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

Not a lot of comments from me. Looks good!

channel: &mut FSProverChannel<F, P, W>,
layer: Arc<dyn FriLayer<F, Radix2EvaluationDomain<F>>>,
fri_step: usize,
_i: usize,
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the _i argument?

Comment on lines +197 to +201
let mut new_row = Vec::with_capacity(row.len());
for element in row.iter() {
new_row.push(*element * mont_r);
}
result.push(new_row);
Copy link
Contributor

Choose a reason for hiding this comment

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

result.push(row.iter().cloned().map(|e| e * mont_r).collect())

@varunthakore
Copy link
Contributor Author

Closing this PR since #24 is merged.

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.

2 participants