MCPcopy Create free account
hub / github.com/arkworks-rs/poly-commit / encode

Method encode

poly-commit/src/linear_codes/univariate_ligero/mod.rs:55–57  ·  view source on GitHub ↗
(msg: &[F], param: &Self::LinCodePCParams)

Source from the content-addressed store, hash-verified

53 }
54
55 fn encode(msg: &[F], param: &Self::LinCodePCParams) -> Result<Vec<F>, Error> {
56 Ok(reed_solomon(msg, param.rho_inv))
57 }
58
59 /// For a univariate polynomial, we simply return the list of coefficients.
60 fn poly_to_vec(polynomial: &P) -> Vec<F> {

Callers

nothing calls this directly

Calls 1

reed_solomonFunction · 0.85

Tested by

no test coverage detected