pico-engine 1.5.0 → 1.6.1
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/README.md +41 -0
- package/dist/RulesetRegistryLoaderFs.js +2 -0
- package/dist/auth/AuthService.js +77 -13
- package/dist/bundledKrl.js +42 -0
- package/dist/identity/IdentityService.js +340 -0
- package/dist/identity/crossPico.js +238 -0
- package/dist/identity/dbHelpers.js +67 -0
- package/dist/identity/didcommIngressRoutes.js +44 -0
- package/dist/identity/didoModule.js +252 -0
- package/dist/identity/errors.js +11 -0
- package/dist/identity/establishSubscription.js +97 -0
- package/dist/identity/index.js +15 -0
- package/dist/identity/peerDid.js +9 -0
- package/dist/identity/skyIntro.js +194 -0
- package/dist/identity/skyProtocol.js +105 -0
- package/dist/identity/store.js +233 -0
- package/dist/identity/types.js +13 -0
- package/dist/identity/veramoDidComm.js +260 -0
- package/dist/identity/webvh.js +266 -0
- package/dist/identity/webvhCrypto.js +128 -0
- package/dist/identity/webvhRoutes.js +61 -0
- package/dist/index.js +26 -2
- package/dist/oauth/OAuthService.js +32 -0
- package/dist/provisionRoot.js +56 -18
- package/dist/server.js +52 -1
- package/dist/uiChannelPolicies.js +48 -0
- package/krl/io.picolabs.did-o.krl +5 -1
- package/krl/io.picolabs.pico-engine-ui.krl +106 -18
- package/krl/io.picolabs.subscription.krl +242 -23
- package/krl/io.picolabs.wrangler.krl +221 -12
- package/package.json +29 -6
- package/public/docs/krl/_sidebar.md +1 -0
- package/public/docs/krl/discovery.md +144 -0
- package/public/docs/krl/modules/ctx.md +8 -0
- package/public/docs/krl/modules/event.md +41 -0
- package/public/pico-engine-ui.css +1 -1
- package/public/pico-engine-ui.js +21 -18
- package/src/RulesetRegistryLoaderFs.ts +2 -0
- package/src/auth/AuthService.ts +109 -14
- package/src/bundledKrl.ts +42 -0
- package/src/identity/IdentityService.ts +571 -0
- package/src/identity/crossPico.ts +371 -0
- package/src/identity/dbHelpers.ts +51 -0
- package/src/identity/didcommIngressRoutes.ts +54 -0
- package/src/identity/didoModule.ts +388 -0
- package/src/identity/errors.ts +8 -0
- package/src/identity/establishSubscription.ts +160 -0
- package/src/identity/index.ts +24 -0
- package/src/identity/peerDid.ts +22 -0
- package/src/identity/skyIntro.ts +321 -0
- package/src/identity/skyProtocol.ts +192 -0
- package/src/identity/store.ts +343 -0
- package/src/identity/types.ts +63 -0
- package/src/identity/veramoDidComm.ts +363 -0
- package/src/identity/webvh.ts +325 -0
- package/src/identity/webvhCrypto.ts +200 -0
- package/src/identity/webvhRoutes.ts +64 -0
- package/src/index.ts +31 -2
- package/src/oauth/OAuthService.ts +36 -0
- package/src/provisionRoot.ts +75 -21
- package/src/server.ts +58 -1
- package/src/uiChannelPolicies.ts +49 -0
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import { PicoDb, PicoDbKey } from "pico-framework";
|
|
2
|
+
import { dbDel, dbGet, dbList, dbPut } from "./dbHelpers";
|
|
3
|
+
import {
|
|
4
|
+
CachedDidDoc,
|
|
5
|
+
DidCommRoutes,
|
|
6
|
+
PeerSubscriptionRecord,
|
|
7
|
+
PendingRotation,
|
|
8
|
+
WebvhKeys,
|
|
9
|
+
WebvhLogEntry,
|
|
10
|
+
} from "./types";
|
|
11
|
+
|
|
12
|
+
export const IDENTITY_PREFIX = "pico-identity";
|
|
13
|
+
|
|
14
|
+
const FIELD = {
|
|
15
|
+
webvhDid: "webvhDid",
|
|
16
|
+
webvhLog: "webvhLog",
|
|
17
|
+
webvhKeys: "webvhKeys",
|
|
18
|
+
meshRootId: "meshRootId",
|
|
19
|
+
publicIntro: "publicIntro",
|
|
20
|
+
pendingRotations: "pendingRotations",
|
|
21
|
+
peerSub: "peerSub",
|
|
22
|
+
didDoc: "didDoc",
|
|
23
|
+
routes: "routes",
|
|
24
|
+
didcommIngressEci: "didcommIngressEci",
|
|
25
|
+
webvhWebDoc: "webvhWebDoc",
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export interface IdentityStoreDeps {
|
|
29
|
+
db: PicoDb;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function identityKey(picoId: string, ...rest: string[]): PicoDbKey {
|
|
33
|
+
return [IDENTITY_PREFIX, picoId, ...rest];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function picoPrefix(picoId: string): PicoDbKey {
|
|
37
|
+
return [IDENTITY_PREFIX, picoId];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Engine-owned per-pico DID/DIDComm state. Not exposed to KRL.
|
|
42
|
+
*
|
|
43
|
+
* 1.6 stores private keys as plaintext JSON — see IDENTITY_STORAGE_KNOWN_GAP.
|
|
44
|
+
*/
|
|
45
|
+
export class IdentityStore {
|
|
46
|
+
private db: PicoDb;
|
|
47
|
+
|
|
48
|
+
constructor(deps: IdentityStoreDeps) {
|
|
49
|
+
this.db = deps.db;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// ---- scalar metadata ----
|
|
53
|
+
|
|
54
|
+
async getWebvhDid(picoId: string): Promise<string | null> {
|
|
55
|
+
return dbGet<string>(this.db, identityKey(picoId, FIELD.webvhDid));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async putWebvhDid(picoId: string, did: string): Promise<void> {
|
|
59
|
+
await dbPut(this.db, identityKey(picoId, FIELD.webvhDid), did);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
async getMeshRootId(picoId: string): Promise<string | null> {
|
|
63
|
+
return dbGet<string>(this.db, identityKey(picoId, FIELD.meshRootId));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
async putMeshRootId(picoId: string, meshRootId: string): Promise<void> {
|
|
67
|
+
await dbPut(this.db, identityKey(picoId, FIELD.meshRootId), meshRootId);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
async getPublicIntro(picoId: string): Promise<boolean | null> {
|
|
71
|
+
return dbGet<boolean>(this.db, identityKey(picoId, FIELD.publicIntro));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
async putPublicIntro(picoId: string, publicIntro: boolean): Promise<void> {
|
|
75
|
+
await dbPut(this.db, identityKey(picoId, FIELD.publicIntro), publicIntro);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// ---- webvh log + keys ----
|
|
79
|
+
|
|
80
|
+
async getWebvhLog(picoId: string): Promise<WebvhLogEntry[] | null> {
|
|
81
|
+
return dbGet<WebvhLogEntry[]>(this.db, identityKey(picoId, FIELD.webvhLog));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
async putWebvhLog(picoId: string, log: WebvhLogEntry[]): Promise<void> {
|
|
85
|
+
await dbPut(this.db, identityKey(picoId, FIELD.webvhLog), log);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
async getWebvhKeys(picoId: string): Promise<WebvhKeys | null> {
|
|
89
|
+
return dbGet<WebvhKeys>(this.db, identityKey(picoId, FIELD.webvhKeys));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
async putWebvhKeys(picoId: string, keys: WebvhKeys): Promise<void> {
|
|
93
|
+
await dbPut(this.db, identityKey(picoId, FIELD.webvhKeys), keys);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
async getDidcommIngressEci(picoId: string): Promise<string | null> {
|
|
97
|
+
return dbGet<string>(
|
|
98
|
+
this.db,
|
|
99
|
+
identityKey(picoId, FIELD.didcommIngressEci)
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
async putDidcommIngressEci(picoId: string, eci: string): Promise<void> {
|
|
104
|
+
await dbPut(this.db, identityKey(picoId, FIELD.didcommIngressEci), eci);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/** Reverse lookup: ingress channel ECI → pico id. */
|
|
108
|
+
async findPicoIdByIngressEci(eci: string): Promise<string | null> {
|
|
109
|
+
const rows = await dbList<string>(this.db, [IDENTITY_PREFIX]);
|
|
110
|
+
for (const { key, value } of rows) {
|
|
111
|
+
if (
|
|
112
|
+
key.length === 3 &&
|
|
113
|
+
key[2] === FIELD.didcommIngressEci &&
|
|
114
|
+
typeof value === "string" &&
|
|
115
|
+
value === eci
|
|
116
|
+
) {
|
|
117
|
+
return String(key[1]);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/** Find subscription by inbound sender peer DID (short or long form). */
|
|
124
|
+
async findPeerSubscriptionBySenderDid(
|
|
125
|
+
picoId: string,
|
|
126
|
+
senderDid: string
|
|
127
|
+
): Promise<PeerSubscriptionRecord | null> {
|
|
128
|
+
const normalized = senderDid.trim();
|
|
129
|
+
for (const sub of await this.listPeerSubscriptions(picoId)) {
|
|
130
|
+
const remote = sub.remotePeerDid || sub.remoteDid;
|
|
131
|
+
if (!remote) {
|
|
132
|
+
continue;
|
|
133
|
+
}
|
|
134
|
+
if (remote === normalized || peerDidMatches(remote, normalized)) {
|
|
135
|
+
return sub;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
async getWebvhWebDoc(picoId: string): Promise<Record<string, unknown> | null> {
|
|
142
|
+
return dbGet<Record<string, unknown>>(
|
|
143
|
+
this.db,
|
|
144
|
+
identityKey(picoId, FIELD.webvhWebDoc)
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
async putWebvhWebDoc(
|
|
149
|
+
picoId: string,
|
|
150
|
+
doc: Record<string, unknown>
|
|
151
|
+
): Promise<void> {
|
|
152
|
+
await dbPut(this.db, identityKey(picoId, FIELD.webvhWebDoc), doc);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
async findPicoIdByLocalPeerDid(peerDid: string): Promise<string | null> {
|
|
156
|
+
const rows = await dbList(this.db, [IDENTITY_PREFIX]);
|
|
157
|
+
const picoIds = new Set<string>();
|
|
158
|
+
for (const { key } of rows) {
|
|
159
|
+
if (key.length >= 2 && typeof key[1] === "string") {
|
|
160
|
+
picoIds.add(key[1]);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
for (const picoId of picoIds) {
|
|
164
|
+
for (const sub of await this.listPeerSubscriptions(picoId)) {
|
|
165
|
+
if (peerDidMatches(sub.peerDid, peerDid)) {
|
|
166
|
+
return picoId;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
return null;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/** Find established subscription id routed to the given DID (peer or webvh). */
|
|
174
|
+
async findSubscriptionIdForDid(
|
|
175
|
+
picoId: string,
|
|
176
|
+
did: string
|
|
177
|
+
): Promise<string | null> {
|
|
178
|
+
const normalized = did.trim();
|
|
179
|
+
for (const sub of await this.listPeerSubscriptions(picoId)) {
|
|
180
|
+
if (sub.remoteWebvhDid === normalized) {
|
|
181
|
+
return sub.subscriptionId;
|
|
182
|
+
}
|
|
183
|
+
const remote = sub.remotePeerDid || sub.remoteDid;
|
|
184
|
+
if (remote && peerDidMatches(remote, normalized)) {
|
|
185
|
+
return sub.subscriptionId;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
return null;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/** Reverse lookup for locally hosted did:webvh identifiers. */
|
|
192
|
+
async findPicoIdByWebvhDid(did: string): Promise<string | null> {
|
|
193
|
+
const rows = await dbList<string>(this.db, [IDENTITY_PREFIX]);
|
|
194
|
+
for (const { key, value } of rows) {
|
|
195
|
+
if (
|
|
196
|
+
key.length === 3 &&
|
|
197
|
+
key[2] === FIELD.webvhDid &&
|
|
198
|
+
typeof value === "string" &&
|
|
199
|
+
value === did
|
|
200
|
+
) {
|
|
201
|
+
return String(key[1]);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
return null;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// ---- pending rotations ----
|
|
208
|
+
|
|
209
|
+
async getPendingRotations(picoId: string): Promise<PendingRotation[] | null> {
|
|
210
|
+
return dbGet<PendingRotation[]>(
|
|
211
|
+
this.db,
|
|
212
|
+
identityKey(picoId, FIELD.pendingRotations)
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
async putPendingRotations(
|
|
217
|
+
picoId: string,
|
|
218
|
+
rotations: PendingRotation[]
|
|
219
|
+
): Promise<void> {
|
|
220
|
+
await dbPut(this.db, identityKey(picoId, FIELD.pendingRotations), rotations);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// ---- peer subscriptions (pairwise did:peer) ----
|
|
224
|
+
|
|
225
|
+
async getPeerSubscription(
|
|
226
|
+
picoId: string,
|
|
227
|
+
subscriptionId: string
|
|
228
|
+
): Promise<PeerSubscriptionRecord | null> {
|
|
229
|
+
return dbGet<PeerSubscriptionRecord>(
|
|
230
|
+
this.db,
|
|
231
|
+
identityKey(picoId, FIELD.peerSub, subscriptionId)
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
async putPeerSubscription(
|
|
236
|
+
picoId: string,
|
|
237
|
+
record: PeerSubscriptionRecord
|
|
238
|
+
): Promise<void> {
|
|
239
|
+
await dbPut(
|
|
240
|
+
this.db,
|
|
241
|
+
identityKey(picoId, FIELD.peerSub, record.subscriptionId),
|
|
242
|
+
record
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
async deletePeerSubscription(
|
|
247
|
+
picoId: string,
|
|
248
|
+
subscriptionId: string
|
|
249
|
+
): Promise<void> {
|
|
250
|
+
await dbDel(this.db, identityKey(picoId, FIELD.peerSub, subscriptionId));
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
async listPeerSubscriptions(
|
|
254
|
+
picoId: string
|
|
255
|
+
): Promise<PeerSubscriptionRecord[]> {
|
|
256
|
+
const rows = await dbList<PeerSubscriptionRecord>(
|
|
257
|
+
this.db,
|
|
258
|
+
identityKey(picoId, FIELD.peerSub)
|
|
259
|
+
);
|
|
260
|
+
return rows.map((r) => r.value);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// ---- DID document cache ----
|
|
264
|
+
|
|
265
|
+
async getDidDoc(picoId: string, did: string): Promise<CachedDidDoc | null> {
|
|
266
|
+
return dbGet<CachedDidDoc>(this.db, identityKey(picoId, FIELD.didDoc, did));
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
async putDidDoc(picoId: string, cached: CachedDidDoc): Promise<void> {
|
|
270
|
+
await dbPut(
|
|
271
|
+
this.db,
|
|
272
|
+
identityKey(picoId, FIELD.didDoc, cached.did),
|
|
273
|
+
cached
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
async deleteDidDoc(picoId: string, did: string): Promise<void> {
|
|
278
|
+
await dbDel(this.db, identityKey(picoId, FIELD.didDoc, did));
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
async listDidDocs(picoId: string): Promise<CachedDidDoc[]> {
|
|
282
|
+
const rows = await dbList<CachedDidDoc>(
|
|
283
|
+
this.db,
|
|
284
|
+
identityKey(picoId, FIELD.didDoc)
|
|
285
|
+
);
|
|
286
|
+
return rows.map((r) => r.value);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
async getRoutes(picoId: string): Promise<DidCommRoutes | null> {
|
|
290
|
+
return dbGet(this.db, identityKey(picoId, FIELD.routes));
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
async putRoutes(picoId: string, routes: DidCommRoutes): Promise<void> {
|
|
294
|
+
await dbPut(this.db, identityKey(picoId, FIELD.routes), routes);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
// ---- lifecycle ----
|
|
298
|
+
|
|
299
|
+
/** True when any identity subkey exists for this pico. */
|
|
300
|
+
async hasIdentity(picoId: string): Promise<boolean> {
|
|
301
|
+
const rows = await dbList(this.db, picoPrefix(picoId));
|
|
302
|
+
return rows.length > 0;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/** Remove all identity state for a pico (e.g. on delete — Epic 4+). */
|
|
306
|
+
async deleteAll(picoId: string): Promise<void> {
|
|
307
|
+
const rows = await dbList(this.db, picoPrefix(picoId));
|
|
308
|
+
if (rows.length === 0) {
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
const batch = this.db.batch();
|
|
312
|
+
for (const { key } of rows) {
|
|
313
|
+
batch.del(key);
|
|
314
|
+
}
|
|
315
|
+
await batch.write();
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/** No-op for 1.6 — legacy did-o ent: migration deferred. */
|
|
320
|
+
export async function migrateFromDidO(_picoId: string): Promise<void> {
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/** Match did:peer short/long forms (numalgo 0/2). */
|
|
325
|
+
function peerDidMatches(stored: string, incoming: string): boolean {
|
|
326
|
+
if (stored === incoming) {
|
|
327
|
+
return true;
|
|
328
|
+
}
|
|
329
|
+
const storedShort = peerDidShortForm(stored);
|
|
330
|
+
const incomingShort = peerDidShortForm(incoming);
|
|
331
|
+
return storedShort.length > 0 && storedShort === incomingShort;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
function peerDidShortForm(did: string): string {
|
|
335
|
+
if (!did.startsWith("did:peer:")) {
|
|
336
|
+
return did;
|
|
337
|
+
}
|
|
338
|
+
const parts = did.split(".");
|
|
339
|
+
if (parts.length >= 3) {
|
|
340
|
+
return `${parts[0]}.${parts[parts.length - 1]}`;
|
|
341
|
+
}
|
|
342
|
+
return did;
|
|
343
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Engine-owned per-pico identity state (Epic 1).
|
|
3
|
+
*
|
|
4
|
+
* Private key shapes are intentionally loose until didwebvh-ts / did-peer-4
|
|
5
|
+
* integration (Epic 2–3). KRL must never receive these types directly.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/** @see docs/design/pico-identity-layer2-work.md § 1.6-known-gap */
|
|
9
|
+
export const IDENTITY_STORAGE_KNOWN_GAP =
|
|
10
|
+
"Identity private keys are stored unencrypted in the engine DB (1.6). " +
|
|
11
|
+
"Encryption at rest and passkey-gated unlock are required before treating " +
|
|
12
|
+
"self-hosted engines as non-custodial for agent keys.";
|
|
13
|
+
|
|
14
|
+
/** Key material for a pico's did:webvh document (signing + agreement). */
|
|
15
|
+
export interface WebvhKeys {
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** One line of a did:webvh JSON-LD log file. */
|
|
20
|
+
export type WebvhLogEntry = Record<string, unknown>;
|
|
21
|
+
|
|
22
|
+
/** Pairwise did:peer state for one subscription. */
|
|
23
|
+
export interface PeerSubscriptionRecord {
|
|
24
|
+
subscriptionId: string;
|
|
25
|
+
/** Our peer DID for this subscription (short form). */
|
|
26
|
+
peerDid: string;
|
|
27
|
+
/** Sender's peer DID — used to route inbound DIDComm. */
|
|
28
|
+
remotePeerDid?: string;
|
|
29
|
+
/** Legacy alias for remotePeerDid. */
|
|
30
|
+
remoteDid?: string;
|
|
31
|
+
/** Caller's did:webvh (for callerDid metadata). */
|
|
32
|
+
remoteWebvhDid?: string;
|
|
33
|
+
/** Internal Rx channel ECI for policy + delivery. */
|
|
34
|
+
rxEci?: string;
|
|
35
|
+
/** Remote mesh root (cross-mesh transport selection). */
|
|
36
|
+
remoteMeshRootId?: string;
|
|
37
|
+
/** Remote engine base URL for outbound DIDComm. */
|
|
38
|
+
remoteTxHost?: string;
|
|
39
|
+
/** Full DIDComm ingress URL when remote did:webvh resolution is unavailable. */
|
|
40
|
+
remoteDidcommEndpoint?: string;
|
|
41
|
+
keys?: Record<string, unknown>;
|
|
42
|
+
createdAt: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** Cached resolved DID document (local or remote). */
|
|
46
|
+
export interface CachedDidDoc {
|
|
47
|
+
did: string;
|
|
48
|
+
doc: Record<string, unknown>;
|
|
49
|
+
cachedAt: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** In-flight DID rotation state (Epic 4+). */
|
|
53
|
+
export interface PendingRotation {
|
|
54
|
+
[key: string]: unknown;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** Scalar identity metadata stored under dedicated subkeys. */
|
|
58
|
+
export interface DidCommRoute {
|
|
59
|
+
domain: string;
|
|
60
|
+
name: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type DidCommRoutes = Record<string, DidCommRoute>;
|