MCPcopy Create free account
hub / github.com/docknetwork/crypto / evaluate

Method evaluate

vb_accumulator/src/batch_utils.rs:664–668  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 {

Callers 15

evalMethod · 0.80
checkMethod · 0.80
omegaFunction · 0.80
create_new_witnessesFunction · 0.80
deal_secretFunction · 0.80
deal_secretFunction · 0.80
verifyMethod · 0.80
startMethod · 0.80
verify_shareMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by 2

omegaFunction · 0.64
characteristic_polyFunction · 0.64