Inner product of powers of `y`, i.e. the element for which witness needs to be updated and `omega`. Equivalent to evaluating the polynomial at `y` and multiplying the result by `scalar` Used by the (non)member to update its witness without the knowledge of secret key.
(&self, y: &G::ScalarField, scalar: &G::ScalarField)
| 662 | /// Equivalent to evaluating the polynomial at `y` and multiplying the result by `scalar` |
| 663 | /// Used by the (non)member to update its witness without the knowledge of secret key. |
| 664 | pub fn evaluate(&self, y: &G::ScalarField, scalar: &G::ScalarField) -> G::Group { |
| 665 | let powers_of_y = Self::scaled_powers_of_y(y, scalar, self.len()); |
| 666 | // <powers_of_y, omega> |
| 667 | G::Group::msm_unchecked(&self.0, &powers_of_y) |
| 668 | } |
| 669 | |
| 670 | #[cfg(test)] |
| 671 | pub fn evaluate_temp(&self, y: &G::ScalarField, scalar: &G::ScalarField) -> G::Group { |