exportBytes (method)
Writes the key to a memory buffer.
Syntax
- (NSData*)exportBytes:(int)keyType :(NSString*)password;
public func exportBytes(_ keyType: Int32, _ password: String) throws -> Data
Remarks
Use this method to save Key in the buffer. KeyType specifies the format in which the key should be stored, and Password is a password to decrypt the private key.
Allowed key types:
cktPrivate | 0 | A private key |
cktPublic | 1 | A public key |