Package com.blockchyp.client
Class RawSignature
java.lang.Object
com.blockchyp.client.RawSignature
This class models the raw parameters of an elliptic curve signature. This is provided for
situations where encoding abstractions are difficult to work with, which in Java is always.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCurve()Returns the name of the standard curve.getR()Returns the signature's 'R' parameter as hex.getS()Returns the signature's 'S' parameter as hex.voidSets the name of the standard curve.voidSets the signature's 'R' parameter as hex.voidSets the signature's 'S' parameter as hex.
-
Constructor Details
-
RawSignature
public RawSignature()
-
-
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.
-
getR
Returns the signature's 'R' parameter as hex.- Returns:
- the R parameter
-
setR
Sets the signature's 'R' parameter as hex.- Parameters:
r- the R parameter.
-
getS
Returns the signature's 'S' parameter as hex.- Returns:
- the S parameter
-
setS
Sets the signature's 'S' parameter as hex.- Parameters:
s- the S parameter.
-