# p256: properly handle neutral element & add AffineCoordinates struct \(\#8718\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 2d119677344c4ca6a2700b8de0a24215b9a37c06

Requested commit: 2d119677344c4ca6a2700b8de0a24215b9a37c06

Commit: 2d119677344c4ca6a2700b8de0a24215b9a37c06

Tree: 632e3aea243e09bc440ed0c0ec2fe6ad73f735b9

Author: Frank Denis

Committer: GitHub

## Message

```
p256: properly handle neutral element & add AffineCoordinates struct (#8718)

Instead of multiple references to an anonymous structure to represent affine coordinates, add an actual `AffineCoordinates` structure.

Also properly handle the neutral element during coordinate conversion and fix mixed addition.

And comptime the small precomputation table for basepoint multiplication.
```

## Parents

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

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