serialize method
Interface for output serialization.
Implementation
@override
void serialize(SerializableOutput output) {
serializeString(output, keytype);
serializeString(output, pubkey);
serializeString(output, privkey);
serializeString(output, comment);
}