@actnet/app-core - v0.1.0
    Preparing search index...

    Class PreparedAccount

    Pre-computed identity material whose DID can be known before server registration.

    Useful when a passkey ceremony needs the DID up front (to write it into the credential's user handle). Typical flow:

    const prepared = await PreparedAccount.create("https://homeserver");
    const did = prepared.did(); // e.g. "did:plc:abc..."
    // register a passkey bound to `did` here
    const core = await AppCore.finalizeAccount(prepared, dbPath, dbKey, recoveryKey, name);

    A PreparedAccount is consumed by AppCore.finalizeAccount; calling it twice with the same handle throws.

    Index

    Methods

    Methods

    • Generate identity + rotation keys and derive a did:plc:... locally. Does not contact the homeserver.

      Parameters

      • serverUrl: string
      • prfOutput: Uint8Array

      Returns Promise<PreparedAccount>