fromSeeds static method

Future<HubIdentity> fromSeeds({
  1. required List<int> ed25519Seed,
  2. required List<int> x25519Private,
})

Rebuilds an identity from persisted seeds — the stable-address path (hosts store the seeds, the id survives restarts).

Implementation

static Future<HubIdentity> fromSeeds({
  required List<int> ed25519Seed,
  required List<int> x25519Private,
}) async => _build(
  signingKeyPair: await _ed25519.newKeyPairFromSeed(ed25519Seed),
  dhKeyPair: await _x25519.newKeyPairFromSeed(x25519Private),
);