Skip to content

Commit 02ad095

Browse files
authored
docs: address inaccuracy in compression doc (#1057)
1 parent 772e69d commit 02ad095

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/src/how/optimizations/compression.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ $$
2121
\Psi_6(x) = \frac{x^6 - 1}{\Phi_6(x)} = (x^3 + 1)(x + 1).
2222
$$
2323

24+
(In practice, a common optimization is that instead of exponentiating by $\Psi_6(x)$, one raises to a multiple of $\Psi_6(x)$ and an integer coprime to the order of the multiplicative group of the target field. This of course is a 1-to-1 map of the underlying field and has the advantage that one may use linear-algebraic techniques to compute exponentiation by the multiple more efficiently (e.g. see how this is applied to the BN254 curve in [Faster Hashing to $\mathbb{G}_2$](https://cacr.uwaterloo.ca/techreports/2011/cacr2011-26.pdf)). This optimization does not affect the compression method, so we consider only the case of raising to a $\Psi_6(x)$-power for the rest of the discussion.)
25+
2426
Let $\xi \in \mathbb{F}_{q^2}$ be a sextic non-residue and identify
2527
$$\mathbb{F}_{q^6} = \mathbb{F}_{q^2}(\xi^{\frac{1}{3}}) = \mathbb{F}_{q^2}(\tau)$$
2628
and
2729
$$\mathbb{F}_{q^{12}} = \mathbb{F}_{q^6}(\xi^{\frac{1}{2}}) = \mathbb{F}_{q^6}(\sigma),$$
2830
where $\tau = \xi^{\frac{1}{3}}$ and $\sigma = \xi^{\frac{1}{2}}$. Through this notation, we emphasise that the sets $\{1, \tau\}$ and $\{1, \sigma\}$ form $\mathbb{F}_{q^2}$-linear and $\mathbb{F}_{q^6}$-linear bases of the fields $\mathbb{F}_{q^6}$ and $\mathbb{F}_{q^{12}}$ viewed as vector spaces, respectively.
2931

30-
<!-- For example, each element $a \in \mathbb{F}_{q^{12}}$ is uniquely represented as $a = a_0 + a_1\sigma$ where the coefficients $a_i$ are in $\mathbb{F}_{q^6}$, and multiplication is implemented -->
31-
3232
It turns out that for each element $f \in \mathbb{F}_{q^{12}}$, the power $f^{\Psi_6(q^2)}$ can be written as
3333

3434
$$

0 commit comments

Comments
 (0)