[−][src]Function bulletproofs::inner_product_proof::inner_product
pub fn inner_product(a: &[Scalar], b: &[Scalar]) -> Scalar
Computes an inner product of two vectors \[ {\langle {\mathbf{a}}, {\mathbf{b}} \rangle} = \sum_{i=0}^{n-1} a_i \cdot b_i. \] Panics if the lengths of \(\mathbf{a}\) and \(\mathbf{b}\) are not equal.