export_bytes Method
Writes the key to a memory buffer.
Syntax
def export_bytes(key_type: int, password: str) -> bytes: ...
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 |