Interface SecpPoint
- All Known Subinterfaces:
SecpPoint.Compressed, SecpPoint.Point, SecpPoint.Uncompressed
- All Known Implementing Classes:
SecpECPoint, SecpPoint.Infinity, SecpPointCompressed, SecpPointImpl, SecpPointUncompressed
public interface SecpPoint
A P256K1 point -- either
SecpPoint.Compressed, SecpPoint.Uncompressed, or SecpPoint.Infinity. Implementations of this interface
need not be subclasses of ECPoint. ECPoint is a concrete class
and uses BigInteger internally. SecpPoint uses
SecpFieldElement to represent point coordinates. If you need a type that
is both a SecpPoint and a ECPoint, use SecpECPoint.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA P256K1 point in compressed format.static enumSingleton representing the point-at-infinitystatic interfaceA non-infinity point, eitherSecpPoint.CompressedorSecpPoint.Uncompressed.static interfaceA P256K1 point in uncompressed format. -
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic SecpPointConstruct a SecpPoint from a Java CryptographyECPointstatic SecpPointUncompressedConstruct an uncompressed SecpPoint from two field elements
-
Field Details
-
POINT_INFINITY
The P256K1 infinity point
-
-
Method Details
-
of
Construct an uncompressed SecpPoint from two field elements- Parameters:
x- x componenty- y component- Returns:
- point
-
of
-