Class RawSignature

java.lang.Object
com.blockchyp.client.RawSignature

public class RawSignature extends Object
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 Details

    • RawSignature

      public RawSignature()
  • Method Details

    • getCurve

      public String getCurve()
      Returns the name of the standard curve. This is almost always 'P256'.
      Returns:
      name of the standard curve.
    • setCurve

      public void setCurve(String curve)
      Sets the name of the standard curve.
      Parameters:
      curve - name of the standard curve.
    • getR

      public String getR()
      Returns the signature's 'R' parameter as hex.
      Returns:
      the R parameter
    • setR

      public void setR(String r)
      Sets the signature's 'R' parameter as hex.
      Parameters:
      r - the R parameter.
    • getS

      public String getS()
      Returns the signature's 'S' parameter as hex.
      Returns:
      the S parameter
    • setS

      public void setS(String s)
      Sets the signature's 'S' parameter as hex.
      Parameters:
      s - the S parameter.