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
completionHandler
The 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?
:nil
if 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 ofDispatchQueue
as in the calling code. - ecPoint