This is fine for their targetted security level of 100 bits.
However arithmetic over is cumbersome to implement out-circuit. So choosing or is preferable to use Karatsuba and Toom-Cook routines. A extension gets:
can be simply represented as and the prime-order following curve can be instantiated: This curve has the prime order:
Note that since the coefficient cannot be , we choose to benefit from an optimization when using Jacobian coordinates EFD. Out-circuit the octic extension can be implemented as follows , and using Karatsuba-over-Karatsuba-over-Karatsuba for the arithmetic.
Koala-bear case
A similar effort can be conducted with Koala-Bear prime for Linea use-case. Given of 31 bits, we find the elliptic curve:
If we end up not caring about the performance out-circuit and we only focus on the in-circuit cost, we can choose a -th extension and implement the arithmetic in circuit over using the randomized Schwartz-Zippel trick (Feltroid post). We find the following parameters: