PublicKey
public final class PublicKey : Key
Class that describes a public key object. Inherits from Key.
-
Returns the elliptic curve point of the key.
Note:
This function works only for EC keys.
Declaration
Swift
public func getECPoint(completionHandler: @escaping (_ ecPoint: Data?, _ error: NSError?) -> Void)Parameters
completionHandlerThe completion handler block to be called as soon as the public exponent is retrieved. It takes the following parameters:
- ecPoint
Data?: The elliptic curve point. - error
NSError?:nilif the elliptic curve point is retrieved successfully; otherwise an error encapsulates the reason of failure.
Note
The completion handler is executed on the same type ofDispatchQueueas in the calling code. - ecPoint
PublicKey Class Reference