EllipticalCurve

public enum EllipticalCurve : String, Codable

Distingush between ed25519 (TZ1…) and secp256k1 (TZ2…) curves for creating and using wallet addresses

  • Declaration

    Swift

    case ed25519
  • Declaration

    Swift

    case secp256k1
  • Declaration

    Swift

    public static func fromAddress(_ address: String) -> EllipticalCurve?
  • Declaration

    Swift

    public static func fromBase58Key(_ key: String) -> EllipticalCurve?