-
Notifications
You must be signed in to change notification settings - Fork 119
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: correct lagrange coefficient computation #611
Conversation
@chancharles92 one thing I need to get your opinion: in // TODO: (alex) deal with merged circuit later
if circuit_is_merged {
let n = self.domain.size();
for (i, val) in pub_input.iter().skip(len).enumerate() {
let lagrange_n_minus_i = vanish_eval_div_n * self.domain.element(n - i - 1)
/ (*z - self.domain.element(n - i - 1));
result += lagrange_n_minus_i * val;
}
} I have left a todo, where the current |
How about just adding a simple handle when |
just realized that we can use |
closes: #605
This PR:
Executed this plan: #605 (comment)
and updated all previously lagrange coeffs computation
This PR does not:
Update anything about recursive circuit, since the occurrence of the challenge
zeta
being one of the domain elements is negligibly small, not sure if we want to burden our recursion circuit to include the extra branch condition.Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
CHANGELOG.md
of touched crates.Files changed
in the GitHub PR explorer