Point
public struct Point : CustomStringConvertible, Equatable
Point instances contain elliptic curve points.
For points in a prime characteristic domain, the x-coordinate and y-coordinate are non-negative integers.
For points in a characteristic 2 domain, the x-coordinate and y-coordinate are binary polynomials where the coefficients (0 or 1) are the bits of the x and y values.
-
The point at infinity
Declaration
Swift
public static let INFINITY: Point
-
Creates a Point from its x- and y-coordinates
Declaration
Swift
public init(_ x: BInt, _ y: BInt)Parameters
xThe x coordinate
yThe y coordinate
-
The x coordinate
Declaration
Swift
public let x: BInt -
The y coordinate
Declaration
Swift
public let y: BInt -
Is true iff self is the point at inifinity
Declaration
Swift
public let infinity: Bool
-
Textual description of self
Declaration
Swift
public var description: String { get }
-
Tests equality of Points
Declaration
Swift
public static func == (p1: Point, p2: Point) -> BoolParameters
p1First point
p2Second point
Return Value
true iff p1 = p2
Point Structure Reference