Skip to content

primeorder: supports only curves with a = -3 #726

@survived

Description

@survived

primeorder docs say that crate provides generic implementation of elliptic curve arithmetic for curves defined as

y² = x³ + ax + b

However, I can see that ProjectivePoint::double is implementation of Renes-Costello-Batina 2015 (Algorithm 6). Paper says that Algorithm 6 is exception-free point doubling for prime order short Weierstrass curves $E/\mathbb{F}_q : y^2 = x^3 + a x + b$ with $a = −3$.

Do you consider eventually switching to more generic algorithms, like algorithm 3 from the same paper which doesn't require $a$ to be $-3$? In any case, worth mentioning in the docs that atm only $a=-3$ curves are supported to avoid confusion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions