pairHost method
Simulates bothy-host pair on hostId (24 3.2 item 2): the host stores keys with
fingerprint and the reported names, becomes confirming and connected, and its key
generation rises.
Implementation
void pairHost(
String hostId,
List<String> names, {
String fingerprint =
'7KQ2-9XTA-M4PB-1C8D-0000-0000-0000-0000-0000-0000-0000-0000-0000',
}) {
final h = hosts[hostId]!;
h
..state = 'confirming'
..fingerprint = fingerprint
..keyGeneration += 1
..failures = 0
..reported = List.of(names)
..connected = true
..pairingCode = null
..version += 1;
}