-
- All Implemented Interfaces:
public final class CompressedRistrettoA Ristretto element in compressed wire format.
The Ristretto encoding is canonical, so two elements are equal if and only if their encodings are equal.
-
-
Constructor Summary
Constructors Constructor Description CompressedRistretto(ByteArray data)
-
Method Summary
Modifier and Type Method Description final RistrettoElementdecompress()Attempts to decompress to a RistrettoElement. final ByteArraytoByteArray()Encode the element to its compressed 32-byte form. final BooleanctEquals(CompressedRistretto other)Constant-time equality check. Booleanequals(Object other)Equality check overridden to be constant-time. IntegerhashCode()-
-
Constructor Detail
-
CompressedRistretto
CompressedRistretto(ByteArray data)
-
-
Method Detail
-
decompress
final RistrettoElement decompress()
Attempts to decompress to a RistrettoElement.
This is the ristretto255 DECODE function.
-
toByteArray
final ByteArray toByteArray()
Encode the element to its compressed 32-byte form.
-
ctEquals
final Boolean ctEquals(CompressedRistretto 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.
-
-
-
-