This PR adds a Scalar struct and basic arithmetic operations for Element and Scalar
Next steps:
[x] Various methods to instantiate Scalar (in #5)
[x] The define_mul_variants and friends macros from curve25519_dalek are pretty handy, I plan to take that approach since it makes implementing MulAssign<Element> for Scalar and Mul<Element> for Scalar a bit cleaner, which are nice to have for ergonomics (in #5)
This PR adds a
Scalar
struct and basic arithmetic operations forElement
andScalar
Next steps:
define_mul_variants
and friends macros fromcurve25519_dalek
are pretty handy, I plan to take that approach since it makes implementingMulAssign<Element> for Scalar
andMul<Element> for Scalar
a bit cleaner, which are nice to have for ergonomics (in #5)