start static method

Future<NkResponder> start({
  1. required SimpleKeyPair staticKeyPair,
  2. required List<int> sessionId,
  3. required List<int> hostId,
  4. SimpleKeyPair? ephemeral,
})

Starts the host side with its staticKeyPair for sessionId on hostId. ephemeral fixes the ephemeral key of message 2 for recordings; null generates a fresh one.

Implementation

static Future<NkResponder> start({
  required SimpleKeyPair staticKeyPair,
  required List<int> sessionId,
  required List<int> hostId,
  SimpleKeyPair? ephemeral,
}) async => startResponderWithPrologue(
  staticKeyPair: staticKeyPair,
  prologue: buildPrologue(sessionId, hostId),
  ephemeral: ephemeral,
);