deserialize method

  1. @override
void deserialize(
  1. SerializableInput input
)
override

Interface for intput serialization.

Implementation

@override
void deserialize(SerializableInput input) {
  keytype = deserializeString(input);
  if (keytype != 'ssh-ed25519') throw FormatException('$keytype');
  pubkey = deserializeStringBytes(input);
  if (pubkey.length != 32) throw FormatException('${pubkey.length}');
  privkey = deserializeStringBytes(input);
  if (privkey.length != 64) throw FormatException('${privkey.length}');
  comment = deserializeString(input);
}