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

Function c_poly

bulletproofs_plus_plus/src/range_proof.rs:972–988  ·  view source on GitHub ↗

obtain the c poly

(y: F)

Source from the content-addressed store, hash-verified

970
971/// obtain the c poly
972fn c_poly<F: PrimeField>(y: F) -> Poly<F> {
973 let zero = F::zero();
974 let one = F::one();
975 Poly {
976 coeffs: vec![
977 vec![one],
978 vec![y],
979 vec![y],
980 vec![y],
981 vec![y],
982 vec![y],
983 vec![y],
984 vec![y],
985 vec![zero],
986 ],
987 }
988}
989
990/// Obtain the non-zero at i position
991fn t_pow_in_c(i: usize) -> usize {

Callers 1

round_3Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected