Interface SecpPoint
- All Known Subinterfaces:
SecpPoint.Compressed, SecpPoint.Point, SecpPoint.Uncompressed, SecpPubKey
- All Known Implementing Classes:
SecpECPoint, SecpPoint.Infinity, SecpPointCompressed, SecpPointImpl, SecpPointUncompressed, SecpPubKeyImpl
public interface SecpPoint
A P256K1 point -- either
SecpPoint.Compressed, SecpPoint.Uncompressed, or SecpPoint.Infinity.
SecpPubKey implements SecpPoint.Uncompressed and Java's ECPublicKey
interface.
Implementations of this interface need not be subclasses of ECPoint.
ECPoint is a concrete class and uses BigInteger internally.
SecpPoint may use 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
Modifier and TypeMethodDescriptionstatic SecpPointDeprecated, for removal: This API element is subject to removal in a future version.static SecpPointUncompressedDeprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
POINT_INFINITY
The P256K1 infinity point
-
-
Method Details
-
of
@Deprecated(forRemoval=true) static SecpPointUncompressed of(SecpFieldElement x, SecpFieldElement y) Deprecated, for removal: This API element is subject to removal in a future version.Construct an uncompressed SecpPoint from two field elements- Parameters:
x- x componenty- y component- Returns:
- point
-
of
Deprecated, for removal: This API element is subject to removal in a future version.Construct a SecpPoint from a Java CryptographyECPoint- Parameters:
point- Java point- Returns:
- SecpPoint point
-