# std/crypto/25519: do cofactored ed25519 verification · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f3667e8a8056765c460aa3da1fd3ea655b54bf25)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: f3667e8a8056765c460aa3da1fd3ea655b54bf25

Requested commit: f3667e8a8056765c460aa3da1fd3ea655b54bf25

Commit: f3667e8a8056765c460aa3da1fd3ea655b54bf25

Tree: e6331133a7882f783dc984da0d78ffaa21a7a48d

Author: Frank Denis

Committer: Andrew Kelley

## Message

```
std/crypto/25519: do cofactored ed25519 verification

This is slightly slower but makes our verification function compatible
with batch signatures. Which, in turn, makes blockchain people happy.
And we want to make our users happy.

Add convenience functions to substract edwards25519 points and to
clear the cofactor.

```

## Parents

- [ab585c680b3222b01c1520ac33d1233ba1ba5036](https://git.cafe/gitcafe/zig/commit/ab585c680b3222b01c1520ac33d1233ba1ba5036?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/f3667e8a8056765c460aa3da1fd3ea655b54bf25?format=markdown)
