EllipticCurveType

public enum EllipticCurveType : String

EllipticCurveType enum defines the two curves supported.

  • r1

    A R1 curve type

    Declaration

    Swift

    case r1 = "R1"
  • k1

    A K1 curve type

    Declaration

    Swift

    case k1 = "K1"
  • Init an EllipticCurveType

    Throws

    If the provided curve is not supported (i.e., is neither an R1 or K1 key).

    Declaration

    Swift

    public init(_ curve: String) throws

    Parameters

    curve

    A String defining the curve type of the enum.