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` hereconst core = await AppCore.finalizeAccount(prepared, dbPath, dbKey, recoveryKey, name); Copy
const prepared = await PreparedAccount.create("https://homeserver");const did = prepared.did(); // e.g. "did:plc:abc..."// register a passkey bound to `did` hereconst core = await AppCore.finalizeAccount(prepared, dbPath, dbKey, recoveryKey, name);
A PreparedAccount is consumed by AppCore.finalizeAccount; calling it twice with the same handle throws.
PreparedAccount
Static
Generate identity + rotation keys and derive a did:plc:... locally. Does not contact the homeserver.
did:plc:...
The DID derived from the prepared keys. Empty string after this handle has been consumed by AppCore.finalizeAccount.
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:
A
PreparedAccountis consumed by AppCore.finalizeAccount; calling it twice with the same handle throws.