Fork of https://filippo.io/edwards25519 with unsafe faster operations. https://filippo.io/edwards25519
Go to file
DataHoarder 027561bd2a
Replace package name with git.gammaspectra.live/P2Pool/edwards25519
2023-07-01 12:09:49 +02:00
.github/workflows all: stop testing on unsupported Go 1.16 2022-07-31 17:08:28 -04:00
field Replace package name with git.gammaspectra.live/P2Pool/edwards25519 2023-07-01 12:09:49 +02:00
LICENSE all: flatten the package and make FieldElement opaque 2020-09-28 14:18:44 +02:00
README.md edwards25519: sync with upstream 2022-05-25 01:39:14 +02:00
doc.go edwards25519: sync with upstream 2022-05-25 01:39:14 +02:00
edwards25519.go Replace package name with git.gammaspectra.live/P2Pool/edwards25519 2023-07-01 12:09:49 +02:00
edwards25519_test.go Replace package name with git.gammaspectra.live/P2Pool/edwards25519 2023-07-01 12:09:49 +02:00
extra.go Replace package name with git.gammaspectra.live/P2Pool/edwards25519 2023-07-01 12:09:49 +02:00
extra_test.go scalar: clean up fiat wrapper 2022-07-31 17:08:28 -04:00
go.mod Replace package name with git.gammaspectra.live/P2Pool/edwards25519 2023-07-01 12:09:49 +02:00
scalar.go scalar: replace wide reduction with limbed operations 2022-07-31 17:08:28 -04:00
scalar_alias_test.go scalar: fix aliasing of MultiplyAdd addend and receiver 2022-07-31 17:08:28 -04:00
scalar_fiat.go scalar: document and update fiat generation code 2022-07-31 17:08:28 -04:00
scalar_test.go scalar: document and update fiat generation code 2022-07-31 17:08:28 -04:00
scalarmult.go all: sync with landed standard library upstream 2021-05-26 18:09:02 +02:00
scalarmult_test.go scalar: replace the Christmas tree with a fiat-crypto generated scalar field 2022-07-31 17:08:28 -04:00
tables.go edwards25519: sync with upstream 2022-05-25 01:39:14 +02:00
tables_test.go all: sync with landed standard library upstream 2021-05-26 18:09:02 +02:00
unsafe.go Added unsafe VarTime methods for ScalarMult, ScalarBaseMult 2023-05-20 10:29:51 +02:00
unsafe_test.go Added unsafe VarTime methods for ScalarMult, ScalarBaseMult 2023-05-20 10:29:51 +02:00

README.md

filippo.io/edwards25519

import "filippo.io/edwards25519"

This library implements the edwards25519 elliptic curve, exposing the necessary APIs to build a wide array of higher-level primitives. Read the docs at pkg.go.dev/filippo.io/edwards25519.

The code is originally derived from Adam Langley's internal implementation in the Go standard library, and includes George Tankersley's performance improvements. It was then further developed by Henry de Valence for use in ristretto255, and was finally merged back into the Go standard library as of Go 1.17. It now tracks the upstream codebase and extends it with additional functionality.

Most users don't need this package, and should instead use crypto/ed25519 for signatures, golang.org/x/crypto/curve25519 for Diffie-Hellman, or github.com/gtank/ristretto255 for prime order group logic. However, for anyone currently using a fork of crypto/internal/edwards25519/crypto/ed25519/internal/edwards25519 or github.com/agl/edwards25519, this package should be a safer, faster, and more powerful alternative.

Since this package is meant to curb proliferation of edwards25519 implementations in the Go ecosystem, it welcomes requests for new APIs or reviewable performance improvements.