mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
…
|
||
---|---|---|
.. | ||
edwards25519.v | ||
element_test.v | ||
element.v | ||
extra_test.v | ||
extra.v | ||
point_test.v | ||
point.v | ||
README.md | ||
scalar_alias_test.v | ||
scalar_test.v | ||
scalar.v | ||
scalarmult_test.v | ||
scalarmult.v | ||
table_test.v | ||
table.v |
README
This module provides arithmetic primitives operations that are useful to implement cryptographic schemes over curve edwards25519, includes:
- Arithmetic functions for point addition, doubling, negation, scalar multiplication with an arbitrary point, with the base point, etc.
- Arithmetic functions dealing with scalars modulo the prime order L of the base point.
This modules was port of Golang edwards25519
library from edwards25519 to the V language.
About Edwards25519
Twisted Edwards curves are a familly of elliptic curves allowing complete addition formulas without any special case and no point at infinity. Curve edwards25519 is based on prime 2^255 - 19 for efficient implementation. Equation and parameters are given in RFC 7748.