Commit Graph

9 Commits

Author SHA1 Message Date
Filippo Valsorda 6bb3979858 ristretto255: replace backend with filippo.io/edwards25519 2021-09-30 06:15:14 -04:00
Filippo Valsorda ee040a3529 ristretto255: align the API with filippo.io/edwards25519
Fixes #36
Fixes #40
2021-09-30 06:10:56 -04:00
George Tankersley 6cc147bf72
ristretto255: add Set() to Scalar and Element types (#37)
ristretto255: add Set() to Scalar and Element types

Co-authored-by: Filippo Valsorda <hi@filippo.io>
2021-02-09 09:43:38 -08:00
Sarah Jamie Lewis af147e8e15 Add Stringer & TextMarshaler interface 2019-10-11 12:43:22 -04:00
Filippo Valsorda 760f82e79e ristretto255: add Scalar.Invert 2019-05-16 15:08:48 -04:00
Filippo Valsorda bd32259391 ristretto255: spell out Subtract, Negate and Multiply
The abbreviations don't really feel worth it, and it makes it more
natural to abbreviate ScalarMult with a "t".
2019-05-16 15:08:48 -04:00
Filippo Valsorda 2f2f1c0111 ristretto255: add NewElement and NewScalar 2019-05-16 15:08:48 -04:00
Filippo Valsorda 013999a2d0 internal/scalar: address review comments 2019-05-16 15:08:48 -04:00
Filippo Valsorda 0e06c64ad7 ristretto255: expose scalar multiplication APIs
The names of the ScalarMults were picked to match elliptic.Curve.

The Scalar type is re-exposed as an opaque type, with an API that
matches the Element one.
2019-05-16 15:08:48 -04:00