-
- All Implemented Interfaces:
public final class CompressedEdwardsYAn Edwards point encoded in "Edwards y" / "Ed25519" format.
In "Edwards y" / "Ed25519" format, the curve point $(x, y)$ is determined by the $y$-coordinate and the sign of $x$.
The first 255 bits of a CompressedEdwardsY represent the $y$-coordinate. The high bit of the 32nd byte represents the sign of $x$.
-
-
Constructor Summary
Constructors Constructor Description CompressedEdwardsY(ByteArray data)
-
Method Summary
Modifier and Type Method Description final EdwardsPointdecompress()Attempts to decompress to an EdwardsPoint. final ByteArraytoByteArray()Encode the point to its compressed 32-byte form. final BooleanctEquals(CompressedEdwardsY other)Constant-time equality check. Booleanequals(Object other)Equality check overridden to be constant-time. IntegerhashCode()-
-
Constructor Detail
-
CompressedEdwardsY
CompressedEdwardsY(ByteArray data)
-
-
Method Detail
-
decompress
final EdwardsPoint decompress()
Attempts to decompress to an EdwardsPoint.
-
toByteArray
final ByteArray toByteArray()
Encode the point to its compressed 32-byte form.
-
ctEquals
final Boolean ctEquals(CompressedEdwardsY other)
Constant-time equality check.
-
equals
Boolean equals(Object other)
Equality check overridden to be constant-time.
Fails fast if the objects are of different types.
-
-
-
-