@interncom/diplomatic 0.12.3 → 0.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.mjs +1 -1
- package/dist/cli/shared/crypto/enclave.d.ts +5 -1
- package/dist/web/index.mjs +1 -1
- package/dist/web/passkey/prf-store.d.ts +4 -1
- package/dist/web/shared/crypto/enclave.d.ts +5 -1
- package/dist/web/stores/idb/seed.d.ts +2 -0
- package/dist/web/worker.mjs +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,10 @@ export type PrfSeedMeta = {
|
|
|
9
9
|
sealedMaster: SealedMasterKey;
|
|
10
10
|
/** PRF salt used at wrap time. */
|
|
11
11
|
salt: Uint8Array;
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Last PRF passkey id (allowCredentials). The sealed-meta row itself is
|
|
14
|
+
* the breadcrumb that this device enrolled PRF unlock.
|
|
15
|
+
*/
|
|
13
16
|
credId?: Uint8Array;
|
|
14
17
|
};
|
|
15
18
|
/**
|
|
@@ -71,10 +71,14 @@ export declare class Enclave {
|
|
|
71
71
|
/**
|
|
72
72
|
* UV + PRF ceremony, then unseal durable master into a new Enclave.
|
|
73
73
|
* Callers never supply PRF bytes — only sealed meta + RP/salt/credId.
|
|
74
|
+
* Returns the credential id used so stores can persist it (skip picker next time).
|
|
74
75
|
*/
|
|
75
76
|
static unsealWithPasskey(crypto: ICrypto, sealedMaster: SealedMasterKey, opts: PasskeyPrfOpts & {
|
|
76
77
|
salt: Uint8Array;
|
|
77
|
-
}): Promise<ValStat<
|
|
78
|
+
}): Promise<ValStat<{
|
|
79
|
+
enclave: Enclave;
|
|
80
|
+
credId: Uint8Array;
|
|
81
|
+
}>>;
|
|
78
82
|
/**
|
|
79
83
|
* UV + write IdentityBundle (seed + hosts) to largeBlob.
|
|
80
84
|
* Encode and WebAuthn write complete inside this method; nothing seed-bearing
|
|
@@ -29,6 +29,8 @@ export declare class IDBSeedStore implements ISeedStore {
|
|
|
29
29
|
loadPrfMeta(): Promise<PrfSeedMeta | undefined>;
|
|
30
30
|
persistPrfMeta(meta: PrfSeedMeta | undefined): Promise<void>;
|
|
31
31
|
hasPrfMeta(): Promise<boolean>;
|
|
32
|
+
/** Last PRF passkey id, if this device has a sealed PRF identity. */
|
|
33
|
+
lastPrfCredId(): Promise<Uint8Array | undefined>;
|
|
32
34
|
openPrfStore(opts: Omit<PrfSeedStoreOpts, "crypto" | "persistMeta" | "meta"> & {
|
|
33
35
|
crypto?: ICrypto;
|
|
34
36
|
}): Promise<PrfSeedStore>;
|