@@ -115,8 +115,8 @@ fn point_select_unchecked<F: FieldOps>(
115115
116116/// Builds a point table for windowed scalar multiplication.
117117///
118- /// T[0 ] = P (dummy entry, used when window digit = 0)
119- /// T[1 ] = P, T[2 ] = 2P, T[i ] = T[i-1] + P for i >= 3.
118+ /// T\[0\ ] = P (dummy entry, used when window digit = 0)
119+ /// T\[1\ ] = P, T\[2\ ] = 2P, T\[i\ ] = T\ [i-1\ ] + P for i >= 3.
120120fn build_point_table < F : FieldOps > (
121121 ops : & mut F ,
122122 px : F :: Elem ,
@@ -137,8 +137,8 @@ fn build_point_table<F: FieldOps>(
137137 table
138138}
139139
140- /// Selects T[d ] from a point table using bit witnesses, where `d = Σ bits[i] *
141- /// 2^i`.
140+ /// Selects T\[d\ ] from a point table using bit witnesses, where `d = Σ
141+ /// bits\[i\] * 2^i`.
142142///
143143/// Uses a binary tree of `point_select`s: processes bits from MSB to LSB,
144144/// halving the candidate set at each level. Total: `(2^w - 1)` point selects
@@ -180,10 +180,10 @@ fn table_lookup<F: FieldOps>(
180180///
181181/// Structure per window (from MSB to LSB):
182182/// 1. `w` shared doublings on accumulator
183- /// 2. Table lookup in T_P[d1] for s1's window digit
184- /// 3. point_add(acc, T_P[d1]) + is_zero(d1) + point_select
185- /// 4. Table lookup in T_R[d2] for s2's window digit
186- /// 5. point_add(acc, T_R[d2]) + is_zero(d2) + point_select
183+ /// 2. Table lookup in T_P\ [d1\ ] for s1's window digit
184+ /// 3. point_add(acc, T_P\ [d1\ ]) + is_zero(d1) + point_select
185+ /// 4. Table lookup in T_R\ [d2\ ] for s2's window digit
186+ /// 5. point_add(acc, T_R\ [d2\ ]) + is_zero(d2) + point_select
187187///
188188/// Returns the final accumulator (x, y).
189189pub fn scalar_mul_glv < F : FieldOps > (
0 commit comments