[][src]Function bulletproofs::inner_product_proof::inner_product

pub fn inner_product(a: &[Scalar], b: &[Scalar]) -> Scalar
[]

Computes an inner product of two vectors a,b=i=0n1aibi. {\langle {\mathbf{a}}, {\mathbf{b}} \rangle} = \sum_{i=0}^{n-1} a_i \cdot b_i. Panics if the lengths of a\mathbf{a} and b\mathbf{b} are not equal.