2019-09-08 08:23:57 -07:00
|
|
|
Tweedledum/Tweedledee supporting evidence
|
|
|
|
-----------------------------------------
|
|
|
|
|
|
|
|
This repository contains supporting evidence that the amicable pair of
|
|
|
|
prime-order curves:
|
|
|
|
|
2020-02-18 00:40:54 -08:00
|
|
|
* Ep : y^2 = x^3 + 5 over GF(p) of order q, called Tweedledum;
|
|
|
|
* Eq : y^2 = x^3 + 5 over GF(q) of order p, called Tweedledee;
|
2019-09-08 08:23:57 -07:00
|
|
|
|
|
|
|
with
|
|
|
|
|
2019-09-17 03:28:59 -07:00
|
|
|
* p = 2^254 + 4707489545178046908921067385359695873
|
|
|
|
* q = 2^254 + 4707489544292117082687961190295928833
|
2019-09-08 08:23:57 -07:00
|
|
|
|
|
|
|
satisfy *some* of the [SafeCurves criteria](https://safecurves.cr.yp.to/index.html).
|
|
|
|
|
|
|
|
The criteria that are *not* satisfied are, in summary:
|
|
|
|
|
2020-02-18 00:43:20 -08:00
|
|
|
* large-magnitude CM discriminant (both curves have CM discriminant of absolute value 3,
|
|
|
|
as a consequence of how they were constructed);
|
2019-09-08 08:23:57 -07:00
|
|
|
* completeness (complete formulae are possible, but not according to the Safe curves
|
|
|
|
criterion);
|
|
|
|
* ladder support (not possible for prime-order curves);
|
|
|
|
* Elligator 2 support (indistinguishability is possible using
|
2019-09-17 03:28:59 -07:00
|
|
|
[Elligator Squared](https://ifca.ai/pub/fc14/paper_25.pdf), but not using Elligator 2).
|
2017-11-01 22:52:36 -07:00
|
|
|
|
2020-02-18 00:40:54 -08:00
|
|
|
Tweedledum/Tweedledee is the first cycle output by
|
2019-09-17 03:28:59 -07:00
|
|
|
``sage amicable.sage --sequential --nearpowerof2 255 32``.
|
|
|
|
|
|
|
|
(The `--sequential` option makes the output completely deterministic and so resolves
|
|
|
|
ambiguity about which result is "first". For exploratory searches it is faster not to
|
|
|
|
use `--sequential`.)
|
2019-09-12 08:01:16 -07:00
|
|
|
|
2020-09-26 13:43:31 -07:00
|
|
|
**The cycle we call Tweedledum/Tweedledee has changed from the initial (September 2019) draft of the Halo paper.**
|
2019-09-10 08:24:08 -07:00
|
|
|
|
2017-11-01 22:52:36 -07:00
|
|
|
Prerequisites:
|
|
|
|
|
|
|
|
* apt-get install sagemath
|
|
|
|
* pip install sortedcontainers
|
|
|
|
|
2019-09-08 08:23:57 -07:00
|
|
|
Run ``sage verify.sage Ep`` and ``sage verify.sage Eq``; or ``./run.sh`` to run both
|
|
|
|
and also print out the results.
|
2020-09-26 13:43:31 -07:00
|
|
|
|
|
|
|
When ``amicable.sage`` is used with the ``--isogenies`` option, the output includes
|
|
|
|
isogenies suitable for use with the "simplified SWU" method for hashing to an
|
|
|
|
elliptic curve. This is based on code from Appendix A of
|
|
|
|
[Wahby and Boneh 2019](https://eprint.iacr.org/2019/403.pdf). Note that simplified SWU
|
|
|
|
is not necessarily the preferred method to hash to a given curve. In particular it
|
|
|
|
probably is not for the Tweedle curves; they only have suitable isogenies of degree 23,
|
|
|
|
which is rather large.
|