ExportToFile Method
Writes key to file.
Syntax
public func exportToFile(keyType: Int32, path: String, password: String) throws -> Void
Remarks
Use this method to save Key in the file. KeyType specifies the format in which the key should be stored, Path specifies the full path to the file, and Password is a password to decrypt the private key.
Allowed key types:
cktPrivate | 0 | A private key |
cktPublic | 1 | A public key |