Class RawPublicKey

java.lang.Object
com.blockchyp.client.RawPublicKey

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

    • RawPublicKey

      public RawPublicKey()
  • 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.
    • getX

      public String getX()
      Returns the X coordinate as hex.
      Returns:
      the X coordinate.
    • setX

      public void setX(String x)
      Sets the X coordinate in hex.
      Parameters:
      x - the X coordinate.
    • getY

      public String getY()
      Returns the Y coordinate as hex.
      Returns:
      the Y coordinate.
    • setY

      public void setY(String y)
      Sets the Y coordinate in hex.
      Parameters:
      y - the Y coordinate.