}
/**
- * s = h
+ * `s = p`
*
- * Encodes `h` as 32 bytes where bits 0 to 254 are `y` little-endian and bit 255
+ * Encodes `p` as 32 bytes where bits 0 to 254 are `y` little-endian and bit 255
* is the sign of `x` which is its least significant bit.
*
* ```
* s = y + 2²⁵⁵(x mod 2)
* ```
*/
-export function p3_tobytes (s: StaticArray<u8>, h: p3): void {
- fe_invert(t.Z, h.Z)
- fe_mul_pair(t.X, h.X, t.Z, t.Y, h.Y, t.Z)
+export function p3_tobytes (s: StaticArray<u8>, p: p3): void {
+ fe_invert(t.Z, p.Z)
+ fe_mul_pair(t.X, p.X, t.Z, t.Y, p.Y, t.Z)
fe_tobytes(s, t.Y)
s[31] ^= fe_isnegative(t.X) << 7
p1p1_0(t)