generate static method

Future<HubIdentity> generate()

Generates a fresh identity (tests, first boot without a store).

Implementation

static Future<HubIdentity> generate() async => _build(
  signingKeyPair: await _ed25519.newKeyPair(),
  dhKeyPair: await _x25519.newKeyPair(),
);