Skip to content

Commit

Permalink
edwards: improve the performance of Add, MixedAdd and IsOnCurve (#441)
Browse files Browse the repository at this point in the history
* edwards: add benchmark for Add, MixedAdd and IsOnCurve

Signed-off-by: Ignacio Hagopian <[email protected]>

* edwards: avoid allocation in MixedAdd, Add and IsOnCurve

Signed-off-by: Ignacio Hagopian <[email protected]>

* go generate

Signed-off-by: Ignacio Hagopian <[email protected]>

* tests/edwards: double check IsOnCurve expectation

Signed-off-by: Ignacio Hagopian <[email protected]>

---------

Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign authored Sep 5, 2023
1 parent 208eeba commit 3cb0eb3
Show file tree
Hide file tree
Showing 22 changed files with 1,232 additions and 132 deletions.
20 changes: 8 additions & 12 deletions ecc/bls12-377/twistededwards/point.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

104 changes: 104 additions & 0 deletions ecc/bls12-377/twistededwards/point_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 8 additions & 12 deletions ecc/bls12-378/twistededwards/point.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

104 changes: 104 additions & 0 deletions ecc/bls12-378/twistededwards/point_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3cb0eb3

Please sign in to comment.