MCPcopy Create free account
hub / github.com/bcndev/bytecoin / vector_commitment

Function vector_commitment

tests/crypto/test_crypto.cpp:171–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171crypto::P3 vector_commitment(const P3Vec &g, const SVec &a) {
172 crypto::P3 result = crypto::I;
173 invariant(g.size() == a.size(), "");
174 for (size_t i = 0; i != a.size(); ++i)
175 result += g[i] * a[i];
176 return result;
177}
178
179EllipticCurveScalar inner_product(const SVec &a, const SVec &b) {
180 EllipticCurveScalar result;

Callers 2

big_pFunction · 0.85
create_proofFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected