Package com.blockchyp.client
Class RawPublicKey
java.lang.Object
com.blockchyp.client.RawPublicKey
This class models the raw parameters of an elliptic curve public key. This is provided for
situations where Base58 encoding is unavailable or difficult to work with.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RawPublicKey
public RawPublicKey()
-
-
Method Details
-
getCurve
Returns the name of the standard curve. This is almost always 'P256'.- Returns:
- name of the standard curve.
-
setCurve
Sets the name of the standard curve.- Parameters:
curve- name of the standard curve.
-
getX
Returns the X coordinate as hex.- Returns:
- the X coordinate.
-
setX
Sets the X coordinate in hex.- Parameters:
x- the X coordinate.
-
getY
Returns the Y coordinate as hex.- Returns:
- the Y coordinate.
-
setY
Sets the Y coordinate in hex.- Parameters:
y- the Y coordinate.
-