@interop/wallet-core 0.44.0 → 0.46.0

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.
Files changed (103) hide show
  1. package/dist/clients/revocation.d.ts +2 -25
  2. package/dist/clients/revocation.d.ts.map +1 -1
  3. package/dist/clients/revocation.js +25 -96
  4. package/dist/clients/revocation.js.map +1 -1
  5. package/dist/keyring/record.d.ts +4 -3
  6. package/dist/keyring/record.d.ts.map +1 -1
  7. package/dist/keyring/record.js.map +1 -1
  8. package/dist/keys/index.d.ts +7 -0
  9. package/dist/keys/index.d.ts.map +1 -1
  10. package/dist/keys/index.js +6 -0
  11. package/dist/keys/index.js.map +1 -1
  12. package/dist/keys/rosterLogStore.d.ts.map +1 -1
  13. package/dist/keys/rosterLogStore.js +18 -1
  14. package/dist/keys/rosterLogStore.js.map +1 -1
  15. package/dist/keys/userKeyRosterCascade.d.ts +121 -0
  16. package/dist/keys/userKeyRosterCascade.d.ts.map +1 -0
  17. package/dist/keys/userKeyRosterCascade.js +125 -0
  18. package/dist/keys/userKeyRosterCascade.js.map +1 -0
  19. package/dist/recovery/index.d.ts +1 -1
  20. package/dist/recovery/index.d.ts.map +1 -1
  21. package/dist/recovery/index.js +1 -1
  22. package/dist/recovery/index.js.map +1 -1
  23. package/dist/recovery/recoveryDelegation.d.ts +27 -40
  24. package/dist/recovery/recoveryDelegation.d.ts.map +1 -1
  25. package/dist/recovery/recoveryDelegation.js +119 -53
  26. package/dist/recovery/recoveryDelegation.js.map +1 -1
  27. package/dist/recovery/recoveryWebvh.d.ts +9 -2
  28. package/dist/recovery/recoveryWebvh.d.ts.map +1 -1
  29. package/dist/recovery/recoveryWebvh.js +4 -2
  30. package/dist/recovery/recoveryWebvh.js.map +1 -1
  31. package/dist/resourceLog/controller.d.ts +38 -3
  32. package/dist/resourceLog/controller.d.ts.map +1 -1
  33. package/dist/resourceLog/controller.js +106 -10
  34. package/dist/resourceLog/controller.js.map +1 -1
  35. package/dist/resourceLog/errors.d.ts +22 -1
  36. package/dist/resourceLog/errors.d.ts.map +1 -1
  37. package/dist/resourceLog/errors.js +23 -1
  38. package/dist/resourceLog/errors.js.map +1 -1
  39. package/dist/resourceLog/index.d.ts +8 -6
  40. package/dist/resourceLog/index.d.ts.map +1 -1
  41. package/dist/resourceLog/index.js +7 -5
  42. package/dist/resourceLog/index.js.map +1 -1
  43. package/dist/resourceLog/license.d.ts +44 -0
  44. package/dist/resourceLog/license.d.ts.map +1 -0
  45. package/dist/resourceLog/license.js +63 -0
  46. package/dist/resourceLog/license.js.map +1 -0
  47. package/dist/resourceLog/verify.d.ts +3 -2
  48. package/dist/resourceLog/verify.d.ts.map +1 -1
  49. package/dist/resourceLog/verify.js +30 -8
  50. package/dist/resourceLog/verify.js.map +1 -1
  51. package/dist/unlock/index.d.ts +22 -8
  52. package/dist/unlock/index.d.ts.map +1 -1
  53. package/dist/unlock/index.js +21 -8
  54. package/dist/unlock/index.js.map +1 -1
  55. package/dist/unlock/ladder.d.ts +76 -0
  56. package/dist/unlock/ladder.d.ts.map +1 -1
  57. package/dist/unlock/ladder.js +111 -1
  58. package/dist/unlock/ladder.js.map +1 -1
  59. package/dist/unlock/retire.d.ts +126 -0
  60. package/dist/unlock/retire.d.ts.map +1 -0
  61. package/dist/unlock/retire.js +83 -0
  62. package/dist/unlock/retire.js.map +1 -0
  63. package/dist/unlock/standingWebvh.d.ts +50 -3
  64. package/dist/unlock/standingWebvh.d.ts.map +1 -1
  65. package/dist/unlock/standingWebvh.js +78 -9
  66. package/dist/unlock/standingWebvh.js.map +1 -1
  67. package/dist/unlock/unlockRecord.d.ts +28 -8
  68. package/dist/unlock/unlockRecord.d.ts.map +1 -1
  69. package/dist/unlock/unlockRecord.js +93 -13
  70. package/dist/unlock/unlockRecord.js.map +1 -1
  71. package/dist/webvh/companion.d.ts +681 -0
  72. package/dist/webvh/companion.d.ts.map +1 -0
  73. package/dist/webvh/companion.js +1151 -0
  74. package/dist/webvh/companion.js.map +1 -0
  75. package/dist/webvh/delegatedLogStore.d.ts +67 -0
  76. package/dist/webvh/delegatedLogStore.d.ts.map +1 -0
  77. package/dist/webvh/delegatedLogStore.js +104 -0
  78. package/dist/webvh/delegatedLogStore.js.map +1 -0
  79. package/dist/webvh/didWebvh.d.ts +109 -5
  80. package/dist/webvh/didWebvh.d.ts.map +1 -1
  81. package/dist/webvh/didWebvh.js +186 -21
  82. package/dist/webvh/didWebvh.js.map +1 -1
  83. package/dist/webvh/index.d.ts +34 -5
  84. package/dist/webvh/index.d.ts.map +1 -1
  85. package/dist/webvh/index.js +31 -5
  86. package/dist/webvh/index.js.map +1 -1
  87. package/dist/webvh/listClients.d.ts +33 -0
  88. package/dist/webvh/listClients.d.ts.map +1 -1
  89. package/dist/webvh/listClients.js +27 -0
  90. package/dist/webvh/listClients.js.map +1 -1
  91. package/dist/webvh/standingZcap.d.ts +48 -0
  92. package/dist/webvh/standingZcap.d.ts.map +1 -0
  93. package/dist/webvh/standingZcap.js +54 -0
  94. package/dist/webvh/standingZcap.js.map +1 -0
  95. package/dist/webvh/wasIdStore.d.ts +36 -6
  96. package/dist/webvh/wasIdStore.d.ts.map +1 -1
  97. package/dist/webvh/wasIdStore.js +32 -13
  98. package/dist/webvh/wasIdStore.js.map +1 -1
  99. package/dist/webvh/zcap.d.ts +24 -0
  100. package/dist/webvh/zcap.d.ts.map +1 -1
  101. package/dist/webvh/zcap.js +42 -0
  102. package/dist/webvh/zcap.js.map +1 -1
  103. package/package.json +9 -9
@@ -1 +1 @@
1
- {"version":3,"file":"listClients.js","sourceRoot":"","sources":["../../src/webvh/listClients.ts"],"names":[],"mappings":"AAsDA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,EACnB,WAAW,EACZ,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AA+B/D;;;;;;;;;GASG;AACH,M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E,MAAM,EAAE,QAAQ,EAAE,CAAC;YACpD,OAAO,EAAE,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAE,CAAC,WAAW;SACzE,CAAC,CAAA;IACJ,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC"}
@@ -0,0 +1,48 @@
1
+ /*!
2
+ * Copyright (c) 2026 Interop Alliance. All rights reserved.
3
+ */
4
+ /**
5
+ * The house policy for standing recorded zcaps -- the long-lived delegations a
6
+ * wallet mints once and records beside a registry entry or inside a document
7
+ * (the recovery `did.jsonl` bridge, an unlock Space's management zcap, the
8
+ * companion generation delegation): one shared lifetime, one renewal window,
9
+ * and the one staleness predicate every re-mint pass and login-time health
10
+ * check asks. A leaf file (no internal imports), so both the `webvh` and
11
+ * `recovery` layers can share it without a layering inversion; `recovery`
12
+ * re-exports the members that were born there, so its public surface is
13
+ * unchanged.
14
+ */
15
+ /**
16
+ * The standing zcap lifetime: one year, following NIST SP 800-57's
17
+ * one-to-two-year cryptoperiod guidance for private signature keys. A
18
+ * standing bearer artifact should not outlive its signing key's recommended
19
+ * cryptoperiod; expiry is watched rather than terminal ({@link zcapExpiring}
20
+ * flags the renewal window, and each artifact's own re-mint or renewal path
21
+ * refreshes it).
22
+ */
23
+ export declare const STANDING_ZCAP_TTL_MS: number;
24
+ /**
25
+ * How long before its `expires` a standing recorded zcap counts as stale:
26
+ * thirty days, so a refresh (a re-mint, a login-time re-delegation, the
27
+ * generation delegation's renew-precedes-mint stage) or a regenerate nudge
28
+ * lands well before the zcap actually lapses.
29
+ */
30
+ export declare const ZCAP_RENEWAL_WINDOW_MS: number;
31
+ /**
32
+ * Whether a recorded zcap expiry is past or inside the renewal window -- the
33
+ * expiry half of the staleness predicate for every long-lived zcap a wallet
34
+ * records beside its registry entries. The re-mint passes and the wallets'
35
+ * login-time checks all ask this one predicate. A record carrying no expiry
36
+ * (or an unparseable one) is uncheckable and therefore not assumed healthy,
37
+ * matching the rot check's treatment of a missing `delegationKeyId`.
38
+ *
39
+ * @param options {object}
40
+ * @param [options.expires] {string} the recorded ISO 8601 expiry
41
+ * @param [options.now] {number} epoch milliseconds, for tests
42
+ * @returns {boolean}
43
+ */
44
+ export declare function zcapExpiring({ expires, now }: {
45
+ expires?: string;
46
+ now?: number;
47
+ }): boolean;
48
+ //# sourceMappingURL=standingZcap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standingZcap.d.ts","sourceRoot":"","sources":["../../src/webvh/standingZcap.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;GAUG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,QAA4B,CAAA;AAE7D;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,QAA2B,CAAA;AAE9D;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,GAAgB,EACjB,EAAE;IACD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,GAAG,OAAO,CASV"}
@@ -0,0 +1,54 @@
1
+ /*!
2
+ * Copyright (c) 2026 Interop Alliance. All rights reserved.
3
+ */
4
+ /**
5
+ * The house policy for standing recorded zcaps -- the long-lived delegations a
6
+ * wallet mints once and records beside a registry entry or inside a document
7
+ * (the recovery `did.jsonl` bridge, an unlock Space's management zcap, the
8
+ * companion generation delegation): one shared lifetime, one renewal window,
9
+ * and the one staleness predicate every re-mint pass and login-time health
10
+ * check asks. A leaf file (no internal imports), so both the `webvh` and
11
+ * `recovery` layers can share it without a layering inversion; `recovery`
12
+ * re-exports the members that were born there, so its public surface is
13
+ * unchanged.
14
+ */
15
+ /**
16
+ * The standing zcap lifetime: one year, following NIST SP 800-57's
17
+ * one-to-two-year cryptoperiod guidance for private signature keys. A
18
+ * standing bearer artifact should not outlive its signing key's recommended
19
+ * cryptoperiod; expiry is watched rather than terminal ({@link zcapExpiring}
20
+ * flags the renewal window, and each artifact's own re-mint or renewal path
21
+ * refreshes it).
22
+ */
23
+ export const STANDING_ZCAP_TTL_MS = 365 * 24 * 60 * 60 * 1000;
24
+ /**
25
+ * How long before its `expires` a standing recorded zcap counts as stale:
26
+ * thirty days, so a refresh (a re-mint, a login-time re-delegation, the
27
+ * generation delegation's renew-precedes-mint stage) or a regenerate nudge
28
+ * lands well before the zcap actually lapses.
29
+ */
30
+ export const ZCAP_RENEWAL_WINDOW_MS = 30 * 24 * 60 * 60 * 1000;
31
+ /**
32
+ * Whether a recorded zcap expiry is past or inside the renewal window -- the
33
+ * expiry half of the staleness predicate for every long-lived zcap a wallet
34
+ * records beside its registry entries. The re-mint passes and the wallets'
35
+ * login-time checks all ask this one predicate. A record carrying no expiry
36
+ * (or an unparseable one) is uncheckable and therefore not assumed healthy,
37
+ * matching the rot check's treatment of a missing `delegationKeyId`.
38
+ *
39
+ * @param options {object}
40
+ * @param [options.expires] {string} the recorded ISO 8601 expiry
41
+ * @param [options.now] {number} epoch milliseconds, for tests
42
+ * @returns {boolean}
43
+ */
44
+ export function zcapExpiring({ expires, now = Date.now() }) {
45
+ if (!expires) {
46
+ return true;
47
+ }
48
+ const expiresAt = Date.parse(expires);
49
+ if (Number.isNaN(expiresAt)) {
50
+ return true;
51
+ }
52
+ return expiresAt - now <= ZCAP_RENEWAL_WINDOW_MS;
53
+ }
54
+ //# sourceMappingURL=standingZcap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"standingZcap.js","sourceRoot":"","sources":["../../src/webvh/standingZcap.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;GAUG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;AAE7D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;AAE9D;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,YAAY,CAAC,EAC3B,OAAO,EACP,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,EAIjB;IACC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,IAAI,CAAA;IACb,CAAC;IACD,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;IACrC,IAAI,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC;QAC5B,OAAO,IAAI,CAAA;IACb,CAAC;IACD,OAAO,SAAS,GAAG,GAAG,IAAI,sBAAsB,CAAA;AAClD,CAAC"}
@@ -5,11 +5,16 @@
5
5
  * The WAS-backed adapter for the did:webvh module's narrow store seam: the
6
6
  * account's identity collections as a {@link WebvhIdStore}, so every wallet
7
7
  * app drives the log ceremonies through one implementation instead of its own
8
- * copy.
8
+ * copy. The log-resource half is parameterized over the collection holding
9
+ * `did.jsonl` ({@link wasWebvhLogStore}), so a companion generation's log --
10
+ * a `gen-` collection in the auxiliary companion Space -- is served by the
11
+ * same implementation without touching the account-log paths.
9
12
  *
10
- * Both collections are addressed as plaintext: `id` holds published documents
11
- * (world-readable by policy) and `key-map` holds plain JSON, so neither goes
12
- * through the encryption codec.
13
+ * Collections here are addressed as plaintext: `id` holds published documents
14
+ * (world-readable by policy), a companion generation's collection holds only
15
+ * its `did.jsonl` (capability-gated, but never encrypted -- the server
16
+ * resolves it out of its own storage), and `key-map` holds plain JSON, so
17
+ * none of them goes through the encryption codec.
13
18
  *
14
19
  * Bodies are written as raw bytes under the content type the caller states --
15
20
  * load-bearing, since the log is JSON Lines (`text/jsonl`), not JSON, and the
@@ -24,8 +29,33 @@
24
29
  import type { WasClient } from '@interop/was-client';
25
30
  import type { WebvhIdStore } from './didWebvh.js';
26
31
  /**
27
- * Builds the `id`-collection store the did:webvh ceremonies read and write
28
- * through.
32
+ * The log-resource subset of the seam: what a ceremony that only reads and
33
+ * publishes a `did.jsonl` (and its sibling resources in the same collection)
34
+ * needs. The account store and the companion store both serve it.
35
+ */
36
+ export type WebvhLogResourceStore = Pick<WebvhIdStore, 'getIdResourceRaw' | 'getIdResource' | 'putIdResource'>;
37
+ /**
38
+ * Builds the parameterized log-resource store over one collection of one
39
+ * Space: the shared implementation behind {@link wasWebvhIdStore} (the
40
+ * account's `id` collection) and a companion generation's log store (its
41
+ * `gen-` collection in the auxiliary Space). Signing is whatever the wrapped
42
+ * client signs as -- controller-tier for the account paths, an enrolled
43
+ * client's key for the companion.
44
+ *
45
+ * @param options {object}
46
+ * @param options.was {WasClient} the storage client to sign with
47
+ * @param options.spaceId {string} the Space holding the collection
48
+ * @param options.collectionId {string} the collection holding the log
49
+ * @returns {WebvhLogResourceStore}
50
+ */
51
+ export declare function wasWebvhLogStore({ was, spaceId, collectionId }: {
52
+ was: WasClient;
53
+ spaceId: string;
54
+ collectionId: string;
55
+ }): WebvhLogResourceStore;
56
+ /**
57
+ * Builds the `id`-collection store the account's did:webvh ceremonies read
58
+ * and write through.
29
59
  *
30
60
  * @param options {object}
31
61
  * @param options.was {WasClient} the account's storage client, signing as an
@@ -1 +1 @@
1
- {"version":3,"file":"wasIdStore.d.ts","sourceRoot":"","sources":["../../src/webvh/wasIdStore.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAMpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,EAC9B,GAAG,EACH,OAAO,EACR,EAAE;IACD,GAAG,EAAE,SAAS,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;CAChB,GAAG,YAAY,CAwDf"}
1
+ {"version":3,"file":"wasIdStore.d.ts","sourceRoot":"","sources":["../../src/webvh/wasIdStore.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAMpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,YAAY,EACZ,kBAAkB,GAAG,eAAe,GAAG,eAAe,CACvD,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,GAAG,EACH,OAAO,EACP,YAAY,EACb,EAAE;IACD,GAAG,EAAE,SAAS,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,CAAA;CACrB,GAAG,qBAAqB,CA+CxB;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,EAC9B,GAAG,EACH,OAAO,EACR,EAAE;IACD,GAAG,EAAE,SAAS,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;CAChB,GAAG,YAAY,CAaf"}
@@ -1,22 +1,26 @@
1
1
  import { DID_KEYS_RESOURCE, ID_COLLECTION, KEY_MAP_COLLECTION } from '../space/collections.js';
2
2
  /**
3
- * Builds the `id`-collection store the did:webvh ceremonies read and write
4
- * through.
3
+ * Builds the parameterized log-resource store over one collection of one
4
+ * Space: the shared implementation behind {@link wasWebvhIdStore} (the
5
+ * account's `id` collection) and a companion generation's log store (its
6
+ * `gen-` collection in the auxiliary Space). Signing is whatever the wrapped
7
+ * client signs as -- controller-tier for the account paths, an enrolled
8
+ * client's key for the companion.
5
9
  *
6
10
  * @param options {object}
7
- * @param options.was {WasClient} the account's storage client, signing as an
8
- * enrolled client
9
- * @param options.spaceId {string} the data Space id
10
- * @returns {WebvhIdStore}
11
+ * @param options.was {WasClient} the storage client to sign with
12
+ * @param options.spaceId {string} the Space holding the collection
13
+ * @param options.collectionId {string} the collection holding the log
14
+ * @returns {WebvhLogResourceStore}
11
15
  */
12
- export function wasWebvhIdStore({ was, spaceId }) {
13
- const idResource = (resourceId) => was
16
+ export function wasWebvhLogStore({ was, spaceId, collectionId }) {
17
+ const resource = (resourceId) => was
14
18
  .space(spaceId)
15
- .collection(ID_COLLECTION.id, { encryption: 'plaintext' })
19
+ .collection(collectionId, { encryption: 'plaintext' })
16
20
  .resource(resourceId);
17
21
  return {
18
22
  getIdResourceRaw: async ({ resourceId }) => {
19
- const read = await idResource(resourceId).getWithEtag();
23
+ const read = await resource(resourceId).getWithEtag();
20
24
  if (read === null) {
21
25
  return undefined;
22
26
  }
@@ -32,19 +36,34 @@ export function wasWebvhIdStore({ was, spaceId }) {
32
36
  return { text, etag };
33
37
  },
34
38
  getIdResource: async ({ resourceId }) => {
35
- const data = await idResource(resourceId).get();
39
+ const data = await resource(resourceId).get();
36
40
  return data === null ? undefined : data;
37
41
  },
38
42
  putIdResource: async ({ resourceId, content, contentType = 'application/json', ifMatch, ifNoneMatch }) => {
39
43
  const serialized = typeof content === 'string' ? content : JSON.stringify(content);
40
44
  // was-client's own PreconditionFailedError propagates as-is: its `name`
41
45
  // is exactly what the seam contract names.
42
- await idResource(resourceId).put(new TextEncoder().encode(serialized), {
46
+ await resource(resourceId).put(new TextEncoder().encode(serialized), {
43
47
  contentType,
44
48
  ifMatch,
45
49
  ifNoneMatch
46
50
  });
47
- },
51
+ }
52
+ };
53
+ }
54
+ /**
55
+ * Builds the `id`-collection store the account's did:webvh ceremonies read
56
+ * and write through.
57
+ *
58
+ * @param options {object}
59
+ * @param options.was {WasClient} the account's storage client, signing as an
60
+ * enrolled client
61
+ * @param options.spaceId {string} the data Space id
62
+ * @returns {WebvhIdStore}
63
+ */
64
+ export function wasWebvhIdStore({ was, spaceId }) {
65
+ return {
66
+ ...wasWebvhLogStore({ was, spaceId, collectionId: ID_COLLECTION.id }),
48
67
  putKeyMap: async ({ content }) => {
49
68
  await was
50
69
  .space(spaceId)
@@ -1 +1 @@
1
- {"version":3,"file":"wasIdStore.js","sourceRoot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E,2CAA2C;YAC3C,MAAM,QAAQ,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE;gBACnE,WAAW;gBACX,OAAO;gBACP,WAAW;aACZ,CAAC,CAAA;QACJ,CAAC;KACF,CAAA;AACH,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,eAAe,CAAC,EAC9B,GAAG,EACH,OAAO,EAIR;IACC,OAAO;QACL,GAAG,gBAAgB,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,aAAa,CAAC,EAAE,EAAE,CAAC;QACrE,SAAS,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;YAC/B,MAAM,GAAG;iBACN,KAAK,CAAC,OAAO,CAAC;iBACd,UAAU,CAAC,kBAAkB,CAAC,EAAE,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC;iBAC9D,QAAQ,CAAC,iBAAiB,CAAC;iBAC3B,GAAG,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE;gBACtD,WAAW,EAAE,kBAAkB;aAChC,CAAC,CAAA;QACN,CAAC;KACF,CAAA;AACH,CAAC"}
@@ -92,5 +92,29 @@ export declare function webvhCapabilityAgent({ keyAgent, did }: {
92
92
  keyAgent: ICapabilityAgent;
93
93
  did: string;
94
94
  }): ICapabilityAgent;
95
+ /**
96
+ * A ZcapClient signing with the account ladder's document-visible
97
+ * verification method -- the ladder VM, derived from the credential's ladder
98
+ * seed and published under `assertionMethod` and `capabilityDelegation` only.
99
+ * Its keyId is `<accountDid>#<ladderVmMultibase>` (the flat Multikey shape
100
+ * `ladderVerificationMethod` publishes, which `@interop/zcap`'s `isController`
101
+ * check and the server's fragment resolver both depend on).
102
+ *
103
+ * Only DELEGATION is licensed for this client: the ladder VM carries no
104
+ * `capabilityInvocation`, so an invocation signed with it fails the server's
105
+ * current-key-set rule by construction. It exists so a client-less account --
106
+ * or a transient session holding nothing but the unlock credential -- can
107
+ * mint the companion generation delegation and the ladder-signed renewals.
108
+ *
109
+ * @param options {object}
110
+ * @param options.accountDid {string} the account did:webvh
111
+ * @param options.ladderSeed {Uint8Array} the credential's ladder seed, from
112
+ * its unlock record
113
+ * @returns {Promise<ZcapClient>}
114
+ */
115
+ export declare function ladderVmZcapClient({ accountDid, ladderSeed }: {
116
+ accountDid: string;
117
+ ladderSeed: Uint8Array;
118
+ }): Promise<ZcapClient>;
95
119
  export { isWebvhDid } from './did.js';
96
120
  //# sourceMappingURL=zcap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"zcap.d.ts","sourceRoot":"","sources":["../../src/webvh/zcap.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAE3D;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,OAAO,CAAA;IACxB,sBAAsB,EAAE,MAAM;QAC5B,IAAI,EAAE,MAAM,CAAA;QACZ,UAAU,EAAE,MAAM,CAAA;QAClB,kBAAkB,EAAE,MAAM,CAAA;QAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAA;KAC7B,CAAA;CACF;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,QAAQ,EACT,EAAE;IACD,QAAQ,EAAE,gBAAgB,CAAA;CAC3B,GAAG,MAAM,CAMT;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,GAAG,EACJ,EAAE;IACD,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,GAAG,EAAE,MAAM,CAAA;CACZ;;;oBAGmB;QAAE,IAAI,EAAE,UA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H,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,GAAG,EACJ,EAAE;IACD,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,GAAG,EAAE,MAAM,CAAA;CACZ;;;oBAGmB;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,KAAK,OAAO,CAAC,UAAU,CAAC;EAO/D;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,GAAG,EACJ,EAAE;IACD,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,GAAG,EAAE,MAAM,CAAA;CACZ,GAAG,UAAU,CAOb;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACT,EAAE;IACD,QAAQ,EAAE,gBAAgB,CAAA;CAC3B,GAAG,UAAU,CAOb;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,QAAQ,EACR,GAAG,EACJ,EAAE;IACD,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,GAAG,EAAE,MAAM,CAAA;CACZ,GAAG,gBAAgB,CAQnB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,kBAAkB,CAAC,EACvC,UAAU,EACV,UAAU,EACX,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,UAAU,CAAA;CACvB,GAAG,OAAO,CAAC,UAAU,CAAC,CAqBtB;AAID,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA"}
@@ -12,7 +12,9 @@
12
12
  * verification method in the did:webvh document instead of the did:key one.
13
13
  */
14
14
  import { Ed25519Signature2020 } from '@interop/ed25519-signature';
15
+ import { Ed25519VerificationKey } from '@interop/ed25519-verification-key';
15
16
  import { ZcapClient } from '@interop/ezcap';
17
+ import { ladderVmSeed } from '../unlock/ladder.js';
16
18
  /**
17
19
  * The client's Ed25519 public key multibase (`z6Mk...`), read out of its
18
20
  * did:key id (`did:key:<publicKeyMultibase>`).
@@ -103,6 +105,46 @@ export function webvhCapabilityAgent({ keyAgent, did }) {
103
105
  getVerificationKeyPair: () => keyAgent.getVerificationKeyPair()
104
106
  };
105
107
  }
108
+ /**
109
+ * A ZcapClient signing with the account ladder's document-visible
110
+ * verification method -- the ladder VM, derived from the credential's ladder
111
+ * seed and published under `assertionMethod` and `capabilityDelegation` only.
112
+ * Its keyId is `<accountDid>#<ladderVmMultibase>` (the flat Multikey shape
113
+ * `ladderVerificationMethod` publishes, which `@interop/zcap`'s `isController`
114
+ * check and the server's fragment resolver both depend on).
115
+ *
116
+ * Only DELEGATION is licensed for this client: the ladder VM carries no
117
+ * `capabilityInvocation`, so an invocation signed with it fails the server's
118
+ * current-key-set rule by construction. It exists so a client-less account --
119
+ * or a transient session holding nothing but the unlock credential -- can
120
+ * mint the companion generation delegation and the ladder-signed renewals.
121
+ *
122
+ * @param options {object}
123
+ * @param options.accountDid {string} the account did:webvh
124
+ * @param options.ladderSeed {Uint8Array} the credential's ladder seed, from
125
+ * its unlock record
126
+ * @returns {Promise<ZcapClient>}
127
+ */
128
+ export async function ladderVmZcapClient({ accountDid, ladderSeed }) {
129
+ const keyPair = await Ed25519VerificationKey.generate({
130
+ seed: ladderVmSeed({ ladderSeed })
131
+ });
132
+ const { publicKeyMultibase } = keyPair;
133
+ // The key pair refuses to hand out a signer without an id; set the
134
+ // document's verification-method id before asking.
135
+ keyPair.id = `${accountDid}#${publicKeyMultibase}`;
136
+ const keySigner = keyPair.signer();
137
+ const signer = {
138
+ id: `${accountDid}#${publicKeyMultibase}`,
139
+ type: 'Ed25519VerificationKey2020',
140
+ sign: keySigner.sign.bind(keySigner)
141
+ };
142
+ return new ZcapClient({
143
+ SuiteClass: Ed25519Signature2020,
144
+ invocationSigner: signer,
145
+ delegationSigner: signer
146
+ });
147
+ }
106
148
  // `isWebvhDid` lives in the `did.ts` leaf so modules outside the signing graph
107
149
  // can import the shape check alone; this remains its public home.
108
150
  export { isWebvhDid } from './did.js';
@@ -1 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allet-domain logic (WAS sync engine core and wallet Space layout contracts) for Interop wallet apps.",
4
- "version": "0.44.0",
4
+ "version": "0.46.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "pnpm run clear && tsc",
@@ -139,17 +139,17 @@
139
139
  "sideEffects": false,
140
140
  "dependencies": {
141
141
  "@interop/data-integrity-core": "^8.7.1",
142
- "@interop/data-integrity-proof": "^3.4.3",
142
+ "@interop/data-integrity-proof": "^3.4.5",
143
143
  "@interop/did-method-webvh": "^5.5.0",
144
144
  "@interop/ed25519-signature": "^7.1.4",
145
- "@interop/ed25519-verification-key": "^8.0.3",
146
- "@interop/ezcap": "^7.4.1",
147
- "@interop/security-document-loader": "^10.0.0",
145
+ "@interop/ed25519-verification-key": "^8.0.4",
146
+ "@interop/ezcap": "^7.4.3",
147
+ "@interop/security-document-loader": "^10.0.4",
148
148
  "@interop/social-core": "^0.8.1",
149
- "@interop/vc": "^11.0.6",
150
- "@interop/was-client": "^0.39.1",
151
- "@interop/webkms-client": "^14.7.1",
152
- "@interop/x25519-key-agreement-key": "^5.2.1",
149
+ "@interop/vc": "^11.0.7",
150
+ "@interop/was-client": "^0.40.2",
151
+ "@interop/webkms-client": "^14.7.3",
152
+ "@interop/x25519-key-agreement-key": "^5.2.2",
153
153
  "@noble/ciphers": "^2.3.0",
154
154
  "@noble/hashes": "^2.3.0",
155
155
  "@scure/base": "^2.3.0",