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

Function alpha_m

bulletproofs_plus_plus/src/range_proof.rs:940–944  ·  view source on GitHub ↗

Compute alpha_m = vec![x/e, x/(e + 1), x/(e + 2), ...]

(e: F, x: F, n: usize)

Source from the content-addressed store, hash-verified

938
939/// Compute alpha_m = vec![x/e, x/(e + 1), x/(e + 2), ...]
940fn alpha_m<F: PrimeField>(e: F, x: F, n: usize) -> Vec<F> {
941 cfg_into_iter!(0..n)
942 .map(|i| x * (e + F::from(i as u64)).inverse().unwrap())
943 .collect()
944}
945
946/// Compute a vector of scalar ((-x * delta)/((q_inv_pows)_i) + e)
947fn alpha_r_q_inv_pow<F: PrimeField>(n: usize, x: F, e: F, q_inv_pows: &[F], delta: F) -> Vec<F> {

Callers 1

alpha_m_q_inv_powsFunction · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected