pasta_curves-source/src/arithmetic
Jack Grigg b016b972f8 Replace (x, y) tuple with Coordinates struct
The previous `CurveAffine::get_xy` method returned the coordinates as
`CtOption<(C::Base, C::Base)>`. However, `ConditionallySelectable` is
not implemented for any tuple or array types, making it impossible to
use any of the useful `CtOption` methods like `and_then`. We replace it
with `CurveAffine::coordinates -> CtOption<Coordinates<Self>>` and
`impl ConditionallySelectable for Coordinates` to enable operating over
coordinates in constant time.
2021-04-18 09:21:18 +12:00
..
curves.rs Replace (x, y) tuple with Coordinates struct 2021-04-18 09:21:18 +12:00
fields.rs Add an implementation of simplified SWU hash-to-curve. 2021-02-19 15:52:11 +00:00