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

Function create_c_vec

bulletproofs_plus_plus/src/range_proof.rs:1006–1026  ·  view source on GitHub ↗
(y: F, t_pows: &TPowers<F>)

Source from the content-addressed store, hash-verified

1004}
1005
1006fn create_c_vec<F: PrimeField>(y: F, t_pows: &TPowers<F>) -> Vec<F> {
1007 let (t_inv, t, t2, t3, t5, t6, t7) = (
1008 t_pows.nth_power(-1),
1009 t_pows.nth_power(1),
1010 t_pows.nth_power(2),
1011 t_pows.nth_power(3),
1012 t_pows.nth_power(5),
1013 t_pows.nth_power(6),
1014 t_pows.nth_power(7),
1015 );
1016 vec![
1017 y * t_inv,
1018 y * t,
1019 y * t2,
1020 y * t3,
1021 y * t5,
1022 y * t6,
1023 y * t7,
1024 F::zero(),
1025 ]
1026}
1027
1028/// Vector valued polynomial
1029#[derive(Debug, Clone)]

Callers 2

round_4Method · 0.85
verifyMethod · 0.85

Calls 1

nth_powerMethod · 0.80

Tested by

no test coverage detected