create static method
Creates a host with a fixed static key from seed (32 bytes; a default seed when null).
Implementation
static Future<FakeHost> create({
required String hostId,
List<int>? seed,
}) async {
final pair = await X25519().newKeyPairFromSeed(
seed ?? List<int>.generate(32, (i) => i + 1),
);
final public = await pair.extractPublicKey();
return FakeHost._(
hostId,
pair,
base64Url.encode(public.bytes).replaceAll('=', ''),
);
}