# std/crypto/\{25519,pcurves\}: make the scalar field order public \(\#11955\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 41533fa6a1fa5e9e9b38a59403930501fd61a259

Requested commit: 41533fa6a1fa5e9e9b38a59403930501fd61a259

Commit: 41533fa6a1fa5e9e9b38a59403930501fd61a259

Tree: e19551646b2e1ac917990a6842c298e3c49b765e

Author: Frank Denis

Committer: GitHub

## Message

```
std/crypto/{25519,pcurves}: make the scalar field order public (#11955)

For 25519, it's very likely that applications would ever need the
serialized representation. Expose the value as an integer as in
other curves. Rename the internal representation from `field_size`
to `field_order` for consistency.

Also fix a common typo in `scalar.sub()`.
```

## Parents

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

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