@interop/wallet-core 0.51.0 → 0.52.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.
Files changed (239) hide show
  1. package/README.md +7 -11
  2. package/dist/clientAnnex/credentialAnchoredGenesis.d.ts +2 -2
  3. package/dist/clientAnnex/credentialAnchoredGenesis.d.ts.map +1 -1
  4. package/dist/clientAnnex/credentialAnchoredGenesis.js +1 -1
  5. package/dist/clientAnnex/forget.d.ts +18 -6
  6. package/dist/clientAnnex/forget.d.ts.map +1 -1
  7. package/dist/clientAnnex/forget.js +19 -6
  8. package/dist/clientAnnex/forget.js.map +1 -1
  9. package/dist/clientAnnex/forgetLast.d.ts +33 -20
  10. package/dist/clientAnnex/forgetLast.d.ts.map +1 -1
  11. package/dist/clientAnnex/forgetLast.js +43 -17
  12. package/dist/clientAnnex/forgetLast.js.map +1 -1
  13. package/dist/clientAnnex/gc.d.ts +3 -3
  14. package/dist/clientAnnex/gc.d.ts.map +1 -1
  15. package/dist/clientAnnex/gc.js +2 -2
  16. package/dist/clientAnnex/gc.js.map +1 -1
  17. package/dist/clientAnnex/index.d.ts +5 -5
  18. package/dist/clientAnnex/index.d.ts.map +1 -1
  19. package/dist/clientAnnex/index.js +4 -4
  20. package/dist/clientAnnex/index.js.map +1 -1
  21. package/dist/clientAnnex/ladder.d.ts +19 -11
  22. package/dist/clientAnnex/ladder.d.ts.map +1 -1
  23. package/dist/clientAnnex/ladder.js +77 -14
  24. package/dist/clientAnnex/ladder.js.map +1 -1
  25. package/dist/clientAnnex/ladderAnchored.d.ts +36 -7
  26. package/dist/clientAnnex/ladderAnchored.d.ts.map +1 -1
  27. package/dist/clientAnnex/ladderAnchored.js +80 -18
  28. package/dist/clientAnnex/ladderAnchored.js.map +1 -1
  29. package/dist/clientAnnex/log.d.ts +6 -6
  30. package/dist/clientAnnex/log.d.ts.map +1 -1
  31. package/dist/clientAnnex/log.js +8 -8
  32. package/dist/clientAnnex/log.js.map +1 -1
  33. package/dist/clientAnnex/recoveryLadderAnchored.d.ts +7 -7
  34. package/dist/clientAnnex/recoveryLadderAnchored.js +9 -9
  35. package/dist/clientAnnex/recoveryLadderAnchored.js.map +1 -1
  36. package/dist/clientAnnex/selfEnroll.d.ts +6 -4
  37. package/dist/clientAnnex/selfEnroll.d.ts.map +1 -1
  38. package/dist/clientAnnex/selfEnroll.js +19 -7
  39. package/dist/clientAnnex/selfEnroll.js.map +1 -1
  40. package/dist/clients/listing.d.ts +1 -1
  41. package/dist/clients/listing.d.ts.map +1 -1
  42. package/dist/clients/listing.js +1 -1
  43. package/dist/clients/listing.js.map +1 -1
  44. package/dist/clients/revocation.d.ts +1 -1
  45. package/dist/clients/rosterPolicy.d.ts +1 -1
  46. package/dist/clients/rosterPolicy.d.ts.map +1 -1
  47. package/dist/descriptors/acquire.js +1 -1
  48. package/dist/descriptors/logSource.d.ts +1 -2
  49. package/dist/descriptors/logSource.d.ts.map +1 -1
  50. package/dist/descriptors/logSource.js +2 -2
  51. package/dist/descriptors/logSource.js.map +1 -1
  52. package/dist/enrollment/enrollment.d.ts +1 -1
  53. package/dist/enrollment/enrollment.d.ts.map +1 -1
  54. package/dist/enrollment/enrollment.js +2 -1
  55. package/dist/enrollment/enrollment.js.map +1 -1
  56. package/dist/genesis/accountGenesis.d.ts +1 -1
  57. package/dist/genesis/accountGenesis.d.ts.map +1 -1
  58. package/dist/genesis/accountGenesis.js +1 -1
  59. package/dist/index.d.ts +1 -3
  60. package/dist/index.d.ts.map +1 -1
  61. package/dist/index.js +1 -3
  62. package/dist/index.js.map +1 -1
  63. package/dist/keyring/kdf.d.ts +6 -20
  64. package/dist/keyring/kdf.d.ts.map +1 -1
  65. package/dist/keyring/kdf.js +8 -5
  66. package/dist/keyring/kdf.js.map +1 -1
  67. package/dist/keyring/unlockSpace.js +1 -1
  68. package/dist/keys/rosterLogStore.d.ts +16 -14
  69. package/dist/keys/rosterLogStore.d.ts.map +1 -1
  70. package/dist/keys/rosterLogStore.js +149 -32
  71. package/dist/keys/rosterLogStore.js.map +1 -1
  72. package/dist/keys/rosterStore.d.ts +8 -7
  73. package/dist/keys/rosterStore.d.ts.map +1 -1
  74. package/dist/keys/rosterStore.js +6 -6
  75. package/dist/keys/rosterStore.js.map +1 -1
  76. package/dist/keys/spaceEpochs.d.ts +1 -1
  77. package/dist/keys/spaceEpochs.js +1 -1
  78. package/dist/keys/userKeyRoster.d.ts +3 -3
  79. package/dist/keys/userKeyRoster.d.ts.map +1 -1
  80. package/dist/keys/userKeyRoster.js +3 -3
  81. package/dist/keys/userKeyRoster.js.map +1 -1
  82. package/dist/recovery/index.d.ts +2 -2
  83. package/dist/recovery/index.js +2 -2
  84. package/dist/recovery/recoveryDelegation.js +1 -1
  85. package/dist/recovery/recoveryDelegation.js.map +1 -1
  86. package/dist/recovery/recoveryWebvh.d.ts +4 -4
  87. package/dist/recovery/recoveryWebvh.js +5 -5
  88. package/dist/request/appKey.d.ts +9 -3
  89. package/dist/request/appKey.d.ts.map +1 -1
  90. package/dist/request/appKey.js +13 -8
  91. package/dist/request/appKey.js.map +1 -1
  92. package/dist/request/classify.d.ts.map +1 -1
  93. package/dist/request/classify.js +13 -1
  94. package/dist/request/classify.js.map +1 -1
  95. package/dist/request/ephemeralExchange.d.ts +6 -1
  96. package/dist/request/ephemeralExchange.d.ts.map +1 -1
  97. package/dist/request/ephemeralExchange.js +6 -1
  98. package/dist/request/ephemeralExchange.js.map +1 -1
  99. package/dist/request/exchangeClient.d.ts +0 -23
  100. package/dist/request/exchangeClient.d.ts.map +1 -1
  101. package/dist/request/exchangeClient.js +30 -1
  102. package/dist/request/exchangeClient.js.map +1 -1
  103. package/dist/request/index.d.ts +4 -1
  104. package/dist/request/index.d.ts.map +1 -1
  105. package/dist/request/index.js +4 -1
  106. package/dist/request/index.js.map +1 -1
  107. package/dist/request/interactionRequest.d.ts +23 -0
  108. package/dist/request/interactionRequest.d.ts.map +1 -0
  109. package/dist/request/interactionRequest.js +46 -0
  110. package/dist/request/interactionRequest.js.map +1 -0
  111. package/dist/request/interactionUrl.d.ts +3 -14
  112. package/dist/request/interactionUrl.d.ts.map +1 -1
  113. package/dist/request/interactionUrl.js +20 -1
  114. package/dist/request/interactionUrl.js.map +1 -1
  115. package/dist/resourceLog/controller.d.ts +48 -49
  116. package/dist/resourceLog/controller.d.ts.map +1 -1
  117. package/dist/resourceLog/controller.js +40 -20
  118. package/dist/resourceLog/controller.js.map +1 -1
  119. package/dist/resourceLog/errors.d.ts +12 -78
  120. package/dist/resourceLog/errors.d.ts.map +1 -1
  121. package/dist/resourceLog/errors.js +12 -79
  122. package/dist/resourceLog/errors.js.map +1 -1
  123. package/dist/resourceLog/index.d.ts +17 -22
  124. package/dist/resourceLog/index.d.ts.map +1 -1
  125. package/dist/resourceLog/index.js +16 -21
  126. package/dist/resourceLog/index.js.map +1 -1
  127. package/dist/resourceLog/license.d.ts +27 -26
  128. package/dist/resourceLog/license.d.ts.map +1 -1
  129. package/dist/resourceLog/license.js +31 -30
  130. package/dist/resourceLog/license.js.map +1 -1
  131. package/dist/unlock/index.d.ts +6 -6
  132. package/dist/unlock/index.d.ts.map +1 -1
  133. package/dist/unlock/index.js +5 -5
  134. package/dist/unlock/retire.d.ts +29 -28
  135. package/dist/unlock/retire.d.ts.map +1 -1
  136. package/dist/unlock/retire.js +25 -16
  137. package/dist/unlock/retire.js.map +1 -1
  138. package/dist/unlock/standingClient.d.ts +1 -1
  139. package/dist/unlock/standingClient.js +3 -3
  140. package/dist/unlock/standingWebvh.d.ts +28 -10
  141. package/dist/unlock/standingWebvh.d.ts.map +1 -1
  142. package/dist/unlock/standingWebvh.js +75 -37
  143. package/dist/unlock/standingWebvh.js.map +1 -1
  144. package/dist/unlock/unlockRecord.js +1 -1
  145. package/dist/webvh/delegatedLogStore.d.ts +2 -2
  146. package/dist/webvh/delegatedLogStore.js +2 -2
  147. package/dist/webvh/didWeb.js +1 -1
  148. package/dist/webvh/didWeb.js.map +1 -1
  149. package/dist/webvh/didWebvh.d.ts +3 -3
  150. package/dist/webvh/didWebvh.d.ts.map +1 -1
  151. package/dist/webvh/didWebvh.js +5 -5
  152. package/dist/webvh/didWebvh.js.map +1 -1
  153. package/dist/webvh/listClients.js +1 -1
  154. package/dist/webvh/listClients.js.map +1 -1
  155. package/dist/webvh/verifyLog.d.ts +1 -1
  156. package/dist/webvh/verifyLog.d.ts.map +1 -1
  157. package/dist/webvh/verifyLog.js +1 -2
  158. package/dist/webvh/verifyLog.js.map +1 -1
  159. package/package.json +5 -9
  160. package/dist/display/alignment.d.ts +0 -55
  161. package/dist/display/alignment.d.ts.map +0 -1
  162. package/dist/display/alignment.js +0 -117
  163. package/dist/display/alignment.js.map +0 -1
  164. package/dist/display/credentialName.d.ts +0 -42
  165. package/dist/display/credentialName.d.ts.map +0 -1
  166. package/dist/display/credentialName.js +0 -106
  167. package/dist/display/credentialName.js.map +0 -1
  168. package/dist/display/displayFields.d.ts +0 -59
  169. package/dist/display/displayFields.d.ts.map +0 -1
  170. package/dist/display/displayFields.js +0 -136
  171. package/dist/display/displayFields.js.map +0 -1
  172. package/dist/display/evidence.d.ts +0 -50
  173. package/dist/display/evidence.d.ts.map +0 -1
  174. package/dist/display/evidence.js +0 -67
  175. package/dist/display/evidence.js.map +0 -1
  176. package/dist/display/image.d.ts +0 -18
  177. package/dist/display/image.d.ts.map +0 -1
  178. package/dist/display/image.js +0 -23
  179. package/dist/display/image.js.map +0 -1
  180. package/dist/display/index.d.ts +0 -38
  181. package/dist/display/index.d.ts.map +0 -1
  182. package/dist/display/index.js +0 -32
  183. package/dist/display/index.js.map +0 -1
  184. package/dist/display/issuer.d.ts +0 -105
  185. package/dist/display/issuer.d.ts.map +0 -1
  186. package/dist/display/issuer.js +0 -126
  187. package/dist/display/issuer.js.map +0 -1
  188. package/dist/display/obv3.d.ts +0 -82
  189. package/dist/display/obv3.d.ts.map +0 -1
  190. package/dist/display/obv3.js +0 -117
  191. package/dist/display/obv3.js.map +0 -1
  192. package/dist/display/parse.d.ts +0 -66
  193. package/dist/display/parse.d.ts.map +0 -1
  194. package/dist/display/parse.js +0 -104
  195. package/dist/display/parse.js.map +0 -1
  196. package/dist/display/subject.d.ts +0 -79
  197. package/dist/display/subject.d.ts.map +0 -1
  198. package/dist/display/subject.js +0 -124
  199. package/dist/display/subject.js.map +0 -1
  200. package/dist/display/text.d.ts +0 -53
  201. package/dist/display/text.d.ts.map +0 -1
  202. package/dist/display/text.js +0 -78
  203. package/dist/display/text.js.map +0 -1
  204. package/dist/display/types.d.ts +0 -55
  205. package/dist/display/types.d.ts.map +0 -1
  206. package/dist/display/types.js +0 -41
  207. package/dist/display/types.js.map +0 -1
  208. package/dist/display/validity.d.ts +0 -51
  209. package/dist/display/validity.d.ts.map +0 -1
  210. package/dist/display/validity.js +0 -51
  211. package/dist/display/validity.js.map +0 -1
  212. package/dist/display/verificationView.d.ts +0 -115
  213. package/dist/display/verificationView.d.ts.map +0 -1
  214. package/dist/display/verificationView.js +0 -199
  215. package/dist/display/verificationView.js.map +0 -1
  216. package/dist/resourceLog/append.d.ts +0 -112
  217. package/dist/resourceLog/append.d.ts.map +0 -1
  218. package/dist/resourceLog/append.js +0 -197
  219. package/dist/resourceLog/append.js.map +0 -1
  220. package/dist/resourceLog/entry.d.ts +0 -68
  221. package/dist/resourceLog/entry.d.ts.map +0 -1
  222. package/dist/resourceLog/entry.js +0 -167
  223. package/dist/resourceLog/entry.js.map +0 -1
  224. package/dist/resourceLog/pin.d.ts +0 -82
  225. package/dist/resourceLog/pin.d.ts.map +0 -1
  226. package/dist/resourceLog/pin.js +0 -57
  227. package/dist/resourceLog/pin.js.map +0 -1
  228. package/dist/resourceLog/seal.d.ts +0 -97
  229. package/dist/resourceLog/seal.d.ts.map +0 -1
  230. package/dist/resourceLog/seal.js +0 -113
  231. package/dist/resourceLog/seal.js.map +0 -1
  232. package/dist/resourceLog/verify.d.ts +0 -96
  233. package/dist/resourceLog/verify.d.ts.map +0 -1
  234. package/dist/resourceLog/verify.js +0 -474
  235. package/dist/resourceLog/verify.js.map +0 -1
  236. package/dist/resourceLog/vmFragment.d.ts +0 -33
  237. package/dist/resourceLog/vmFragment.d.ts.map +0 -1
  238. package/dist/resourceLog/vmFragment.js +0 -39
  239. package/dist/resourceLog/vmFragment.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"gc.js","sourceRoot":"","sources":["../../src/clientAnnex/gc.ts"],"names":[],"mappings":"AAwDA,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,4BAA4B,EAC5B,iCAAiC,EACjC,oBAAoB,EACpB,mCAAmC,EACnC,wBAAwB,EACxB,qCAAqC,EACrC,0BAA0B,EAC3B,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAMvD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;AAE/D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;AAE5D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;AAEvD;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,oCAAoC,CAAC,EACnD,GAAG,EAGJ;IACC,IAAI,aAAiC,CAAA;IACrC,IAAI,QAA4B,CAAA;IAChC,KAAK,MAAM,KAAK,IAAI,GAAG,EAAE,CAAC;QACxB,MAAM,OAAO,GAAG,uBAAuB,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAA;QAC7D,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,QAAQ,EAAE,CAAC;YAClD,a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O;QACP,YAAY;KACb,CAAC,CAAA;IAEF,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC5B,MAAM,aAAa,GAAG,4BAA4B,CAAC,EAAE,GAAG,EAAE,SAAS,CAAC,GAAG,EAAE,CAAC,CAAA;QAC1E,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,qCAAqC,CAAC;gBAC1C,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC;gBAChC,UAAU,EAAE,aAAa;aAC1B,CAAC,CAAA;QACJ,CAAC;QACD,kEAAkE;QAClE,oEAAoE;QACpE,iEAAiE;QACjE,MAAM,YAAY,CAAC;YACjB,YAAY;YACZ,UAAU,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,WAAW;YACzC,SAAS,EAAE,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,WAAW;YAC/D,UAAU,EAAE,SAAS,CAAC,GAAG,CAAC,MAAM;SACjC,CAAC,CAAA;IACJ,CAAC;IAED,2EAA2E;IAC3E,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,MAAM,EAAE,CAAA;IAC1D,MAAM,WAAW,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,CAAA;AACvC,CAAC"}
@@ -9,8 +9,8 @@
9
9
  * nothing in the base imports from it (enforced in the lint pass, with one
10
10
  * pinned exception -- `unlock/standingWebvh.ts` uses the shared ladder
11
11
  * attribution helpers here, never the annex log machinery). The verify-side
12
- * halves every wallet needs regardless of posture stay in the base: the
13
- * resource-log ladder-append license and `ControllerPosture` ladder-key
12
+ * halves every wallet needs regardless of account configuration stay in the base: the
13
+ * resource-log ladder-append license and `ControllerInventory` ladder-key
14
14
  * computation (`resourceLog`), `ladderVmIds` recognition (`webvh`), the
15
15
  * unlock-record codec with its `ladder` and `delegatedClients` members
16
16
  * (`unlock`), the standing-zcap staleness policy and the generalized log
@@ -19,7 +19,7 @@
19
19
  *
20
20
  * - The ladder (`ladder.ts`): rung and ladder-VM derivation from the record's
21
21
  * random seed, and the shared attribution walks (`attributeLadderRung`,
22
- * `attributeLadderPosture`) that recover the ladder's state from the
22
+ * `attributeLadderInventory`) that recover the ladder's state from the
23
23
  * published log itself.
24
24
  * - The annex log (`log.ts`) and its GC (`gc.ts`): the disposable sidecar
25
25
  * did:webvh of GC'd generations holding transient per-visit verification
@@ -41,8 +41,8 @@
41
41
  * `decisions/0006` (generation GC observables and the `GenerationCollect`
42
42
  * digest), and `decisions/0007` (the reveal entry's hash order).
43
43
  */
44
- export { attributeLadderPosture, attributeLadderRung, clientAnnexRung, clientAnnexRungSeed, generateLadderSeed, LADDER_MAX_SCAN, LadderAttributionError, ladderRung, ladderRungSeed, ladderVmKeyMultibase, ladderVmSeed } from './ladder.js';
45
- export type { LadderRung, LadderRungState, LadderStandingPosture } from './ladder.js';
44
+ export { attributeLadderInventory, attributeLadderRung, clientAnnexRung, clientAnnexRungSeed, generateLadderSeed, LADDER_MAX_SCAN, LadderAttributionError, ladderRung, ladderRungSeed, ladderVmKeyMultibase, ladderVmSeed } from './ladder.js';
45
+ export type { LadderRung, LadderRungState, LadderStandingInventory } from './ladder.js';
46
46
  export { assertGenerationId, clampGrantExpires, CLIENT_ANNEX_SPACE_TYPE, clientAnnexDidParts, clientAnnexLogPinId, clientAnnexLogStore, ClientAnnexRungUncommittedError, commitClientAnnexRung, createClientAnnexLog, DELEGATED_CLIENTS_DELEGATION_ACTIONS, DELEGATED_CLIENTS_DELEGATION_TTL_MS, DELEGATED_CLIENTS_SERVICE_TYPE, delegatedClientsDelegationMinter, delegatedClientsDelegationSpaceId, delegatedClientsPointer, delegatedClientsServiceEntry, embeddedGenerationDelegation, enrollClientAnnexTransientClient, enrollTransientClient, ensureClientAnnexSpace, ensureGenerationDelegationCurrent, GENERATION_DELEGATION_ACTIONS, GENERATION_DELEGATION_SERVICE_TYPE, GENERATION_DELEGATION_TTL_MS, GENERATION_ID_PREFIX, generationDelegationHistory, generationDelegationServiceEntry, mintClientAnnexGeneration, mintCredentialClientAnnexGeneration, mintDelegatedClientsDelegation, mintGenerationDelegation, mintGenerationId, retireClientAnnexRung, revokeTreatingAlreadyRevokedAsSuccess, servicesPointedAtClientAnnex, setDelegatedClientsPointer } from './log.js';
47
47
  export type { ClientAnnexWriteStore } from './log.js';
48
48
  export { clientAnnexGcDue, delegatedClientsPointerEstablishedAt, GENERATION_GC_PERIOD_MS, GENERATION_QUIET_BOUND_MS, GENERATION_QUIET_GRACE_MS, generationQuiet, runClientAnnexGc, swapClientAnnexGeneration } from './gc.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clientAnnex/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,YAAY,EACb,MAAM,aAAa,CAAA;AACpB,YAAY,EACV,UAAU,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,aAAa,CAAA;AAEpB,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,+BAA+B,EAC/B,qBAAqB,EACrB,oBAAoB,EACpB,oCAAoC,EACpC,mCAAmC,EACnC,8BAA8B,EAC9B,gCAAgC,EAChC,iCAAiC,EACjC,uBAAuB,EACvB,4BAA4B,EAC5B,4BAA4B,EAC5B,gCAAgC,EAChC,qBAAqB,EACrB,sBAAsB,EACtB,iCAAiC,EACjC,6BAA6B,EAC7B,kCAAkC,EAClC,4BAA4B,EAC5B,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EACL,8BAA8B,EAC9B,4BAA4B,EAC5B,qBAAqB,EACrB,iBAAiB,EACjB,oBAAoB,EACpB,4BAA4B,EAC5B,qBAAqB,EACtB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAEtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjD,YAAY,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AAE5D,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,iBAAiB,CAAA;AACxB,YAAY,EACV,8BAA8B,EAC9B,6BAA6B,EAC7B,wBAAwB,EACzB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EACL,sCAAsC,EACtC,mCAAmC,EACpC,MAAM,gCAAgC,CAAA;AAEvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAA;AAOxE,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,sBAAsB,CAAA"}
@@ -9,8 +9,8 @@
9
9
  * nothing in the base imports from it (enforced in the lint pass, with one
10
10
  * pinned exception -- `unlock/standingWebvh.ts` uses the shared ladder
11
11
  * attribution helpers here, never the annex log machinery). The verify-side
12
- * halves every wallet needs regardless of posture stay in the base: the
13
- * resource-log ladder-append license and `ControllerPosture` ladder-key
12
+ * halves every wallet needs regardless of account configuration stay in the base: the
13
+ * resource-log ladder-append license and `ControllerInventory` ladder-key
14
14
  * computation (`resourceLog`), `ladderVmIds` recognition (`webvh`), the
15
15
  * unlock-record codec with its `ladder` and `delegatedClients` members
16
16
  * (`unlock`), the standing-zcap staleness policy and the generalized log
@@ -19,7 +19,7 @@
19
19
  *
20
20
  * - The ladder (`ladder.ts`): rung and ladder-VM derivation from the record's
21
21
  * random seed, and the shared attribution walks (`attributeLadderRung`,
22
- * `attributeLadderPosture`) that recover the ladder's state from the
22
+ * `attributeLadderInventory`) that recover the ladder's state from the
23
23
  * published log itself.
24
24
  * - The annex log (`log.ts`) and its GC (`gc.ts`): the disposable sidecar
25
25
  * did:webvh of GC'd generations holding transient per-visit verification
@@ -41,7 +41,7 @@
41
41
  * `decisions/0006` (generation GC observables and the `GenerationCollect`
42
42
  * digest), and `decisions/0007` (the reveal entry's hash order).
43
43
  */
44
- export { attributeLadderPosture, attributeLadderRung, clientAnnexRung, clientAnnexRungSeed, generateLadderSeed, LADDER_MAX_SCAN, LadderAttributionError, ladderRung, ladderRungSeed, ladderVmKeyMultibase, ladderVmSeed } from './ladder.js';
44
+ export { attributeLadderInventory, attributeLadderRung, clientAnnexRung, clientAnnexRungSeed, generateLadderSeed, LADDER_MAX_SCAN, LadderAttributionError, ladderRung, ladderRungSeed, ladderVmKeyMultibase, ladderVmSeed } from './ladder.js';
45
45
  export { assertGenerationId, clampGrantExpires, CLIENT_ANNEX_SPACE_TYPE, clientAnnexDidParts, clientAnnexLogPinId, clientAnnexLogStore, ClientAnnexRungUncommittedError, commitClientAnnexRung, createClientAnnexLog, DELEGATED_CLIENTS_DELEGATION_ACTIONS, DELEGATED_CLIENTS_DELEGATION_TTL_MS, DELEGATED_CLIENTS_SERVICE_TYPE, delegatedClientsDelegationMinter, delegatedClientsDelegationSpaceId, delegatedClientsPointer, delegatedClientsServiceEntry, embeddedGenerationDelegation, enrollClientAnnexTransientClient, enrollTransientClient, ensureClientAnnexSpace, ensureGenerationDelegationCurrent, GENERATION_DELEGATION_ACTIONS, GENERATION_DELEGATION_SERVICE_TYPE, GENERATION_DELEGATION_TTL_MS, GENERATION_ID_PREFIX, generationDelegationHistory, generationDelegationServiceEntry, mintClientAnnexGeneration, mintCredentialClientAnnexGeneration, mintDelegatedClientsDelegation, mintGenerationDelegation, mintGenerationId, retireClientAnnexRung, revokeTreatingAlreadyRevokedAsSuccess, servicesPointedAtClientAnnex, setDelegatedClientsPointer } from './log.js';
46
46
  export { clientAnnexGcDue, delegatedClientsPointerEstablishedAt, GENERATION_GC_PERIOD_MS, GENERATION_QUIET_BOUND_MS, GENERATION_QUIET_GRACE_MS, generationQuiet, runClientAnnexGc, swapClientAnnexGeneration } from './gc.js';
47
47
  export { ladderVmAgent, ladderVmZcapClient } from './zcap.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/clientAnnex/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,YAAY,EACb,MAAM,aAAa,CAAA;AAOpB,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,+BAA+B,EAC/B,qBAAqB,EACrB,oBAAoB,EACpB,oCAAoC,EACpC,mCAAmC,EACnC,8BAA8B,EAC9B,gCAAgC,EAChC,iCAAiC,EACjC,uBAAuB,EACvB,4BAA4B,EAC5B,4BAA4B,EAC5B,gCAAgC,EAChC,qBAAqB,EACrB,sBAAsB,EACtB,iCAAiC,EACjC,6BAA6B,EAC7B,kCAAkC,EAClC,4BAA4B,EAC5B,oBAAoB,EACpB,2BAA2B,EAC3B,gCAAgC,EAChC,yBAAyB,EACzB,mCAAmC,EACnC,8BAA8B,EAC9B,wBAAwB,EACxB,gBAAgB,EAChB,qBAAqB,EACrB,qCAAqC,EACrC,4BAA4B,EAC5B,0BAA0B,EAC3B,MAAM,UAAU,CAAA;AAGjB,OAAO,EACL,gBAAgB,EAChB,oCAAoC,EACpC,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAE7D,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,EAC5B,qBAAqB,EACrB,iBAAiB,EACjB,oBAAoB,EACpB,4BAA4B,EAC5B,qBAAqB,EACtB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAEtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAGjD,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,iBAAiB,CAAA;AAOxB,OAAO,EACL,sCAAsC,EACtC,mCAAmC,EACpC,MAAM,gCAAgC,CAAA;AAEvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAA;AAExE,4EAA4E;AAC5E,qEAAqE;AACrE,6EAA6E;AAC7E,4EAA4E;AAC5E,wBAAwB;AACxB,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,sBAAsB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/clientAnnex/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,YAAY,EACb,MAAM,aAAa,CAAA;AAOpB,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,+BAA+B,EAC/B,qBAAqB,EACrB,oBAAoB,EACpB,oCAAoC,EACpC,mCAAmC,EACnC,8BAA8B,EAC9B,gCAAgC,EAChC,iCAAiC,EACjC,uBAAuB,EACvB,4BAA4B,EAC5B,4BAA4B,EAC5B,gCAAgC,EAChC,qBAAqB,EACrB,sBAAsB,EACtB,iCAAiC,EACjC,6BAA6B,EAC7B,kCAAkC,EAClC,4BAA4B,EAC5B,oBAAoB,EACpB,2BAA2B,EAC3B,gCAAgC,EAChC,yBAAyB,EACzB,mCAAmC,EACnC,8BAA8B,EAC9B,wBAAwB,EACxB,gBAAgB,EAChB,qBAAqB,EACrB,qCAAqC,EACrC,4BAA4B,EAC5B,0BAA0B,EAC3B,MAAM,UAAU,CAAA;AAGjB,OAAO,EACL,gBAAgB,EAChB,oCAAoC,EACpC,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAE7D,OAAO,EACL,8BAA8B,EAC9B,4BAA4B,EAC5B,qBAAqB,EACrB,iBAAiB,EACjB,oBAAoB,EACpB,4BAA4B,EAC5B,qBAAqB,EACtB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAEtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAGjD,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,iBAAiB,CAAA;AAOxB,OAAO,EACL,sCAAsC,EACtC,mCAAmC,EACpC,MAAM,gCAAgC,CAAA;AAEvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAA;AAExE,4EAA4E;AAC5E,qEAAqE;AACrE,6EAA6E;AAC7E,4EAA4E;AAC5E,wBAAwB;AACxB,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,sBAAsB,CAAA"}
@@ -8,7 +8,7 @@ import type { DIDLog } from '@interop/did-method-webvh';
8
8
  export declare const LADDER_MAX_SCAN = 128;
9
9
  /**
10
10
  * Thrown when the published log's standing parameters match no derivable rung
11
- * -- the credential's posture was revoked (or never published), the ladder
11
+ * -- the credential's inventory was revoked (or never published), the ladder
12
12
  * seed does not belong to this account, or the scan bound was exceeded -- or
13
13
  * when they match more than one rung in the same role, which no legitimate
14
14
  * history produces. Self-enrollment refuses loudly rather than guessing.
@@ -180,17 +180,17 @@ export declare function attributeLadderRung({ ladderSeed, published, maxScan }:
180
180
  * staged-key hashes), which are as much a latent re-seizure credential as the
181
181
  * rung's own commitment.
182
182
  */
183
- export interface LadderStandingPosture {
183
+ export interface LadderStandingInventory {
184
184
  revealedKeys: string[];
185
185
  committedHashes: string[];
186
186
  }
187
187
  /**
188
- * Attributes a ladder's FULL standing posture from the log -- the retirement
188
+ * Attributes a ladder's FULL standing inventory from the log -- the retirement
189
189
  * counterpart of {@link attributeLadderRung}, which recovers only the single
190
190
  * current rung. Retiring a credential must strike every standing artifact its
191
191
  * ladder accounts for, so this walks the log's effective parameters forward
192
192
  * from an anchor (the recorded bind-time rung, however stale) and tracks the
193
- * ladder's footprint entry by entry:
193
+ * ladder's inventory entry by entry:
194
194
  *
195
195
  * - a newly authorized key whose hash was a known ladder commitment is a rung
196
196
  * REVEAL; the hashes that entry newly commits are claimed by the ladder,
@@ -199,7 +199,15 @@ export interface LadderStandingPosture {
199
199
  * key commits stay OUT, even while the rung sits in `updateKeys`: a rung
200
200
  * stands revealed indefinitely after a forget (and after a torn
201
201
  * self-enrollment), and the account's enrolled clients go on extending the
202
- * log the whole time;
202
+ * log the whole time. One exception, the HANDOVER: when the revealed rung's
203
+ * hash was committed earlier by a key the revealing entry itself retires
204
+ * (the recovery continuation -- the spent code commits the fresh
205
+ * credential's `hash(rung 0)` and `hash(rung 1)` adjacently with the
206
+ * replacement code's hash last, then the add entry revealing rung 0 strikes
207
+ * the code), the hash committed immediately after the rung's in that entry,
208
+ * when it is not the entry's last addition, is the ladder's next commitment
209
+ * and is claimed too, so a seed-less walk over a continuation log sees
210
+ * rung 1;
203
211
  * - the entry that retires the revealed rung while authorizing a key whose
204
212
  * hash sits among those claims is the enrollment's COMPLETION: the new
205
213
  * client's update-key hash and the claim committed immediately after it
@@ -211,7 +219,7 @@ export interface LadderStandingPosture {
211
219
  * the hash derives from the ladder's own seed (or is the recorded key's),
212
220
  * or the credential itself survives the completing entry, which is what
213
221
  * makes the residue its next standing commitment. A SPEND -- the recovery
214
- * continuation, whose one entry retires the code's own posture and
222
+ * continuation, whose one entry retires the code's own inventory and
215
223
  * publishes its successor's -- leaves the replacement credential's
216
224
  * commitment in that position instead, and striking that would leave the
217
225
  * replacement unusable and unhealable;
@@ -223,7 +231,7 @@ export interface LadderStandingPosture {
223
231
  * anchor being current; without it, the walk is anchored on
224
232
  * `anchorKeyMultibase` and on `credentialVmId` alone, and a residue neither
225
233
  * can attribute is released -- the retirement then strikes what the recorded
226
- * posture names and nothing more. More than one ladder reveal standing or
234
+ * inventory names and nothing more. More than one ladder reveal standing or
227
235
  * arriving at once matches no legitimate history and fails closed
228
236
  * ({@link LadderAttributionError}).
229
237
  *
@@ -235,18 +243,18 @@ export interface LadderStandingPosture {
235
243
  * when the caller holds it
236
244
  * @param [options.credentialVmId] {string} the credential's own
237
245
  * `keyAgreement` verification-method id, which tells a climb (the
238
- * credential stands afterwards) from a spend (its posture goes in the same
246
+ * credential stands afterwards) from a spend (its inventory goes in the same
239
247
  * entry)
240
248
  * @param [options.maxScan] {number} seeded pre-derivation bound; defaults to
241
249
  * {@link LADDER_MAX_SCAN}
242
- * @returns {Promise<LadderStandingPosture>} what currently stands; both
250
+ * @returns {Promise<LadderStandingInventory>} what currently stands; both
243
251
  * arrays empty when the log carries nothing of the ladder any more
244
252
  */
245
- export declare function attributeLadderPosture({ log, anchorKeyMultibase, ladderSeed, credentialVmId, maxScan }: {
253
+ export declare function attributeLadderInventory({ log, anchorKeyMultibase, ladderSeed, credentialVmId, maxScan }: {
246
254
  log: DIDLog;
247
255
  anchorKeyMultibase: string;
248
256
  ladderSeed?: Uint8Array;
249
257
  credentialVmId?: string;
250
258
  maxScan?: number;
251
- }): Promise<LadderStandingPosture>;
259
+ }): Promise<LadderStandingInventory>;
252
260
  //# sourceMappingURL=ladder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ladder.d.ts","sourceRoot":"","sources":["../../src/clientAnnex/ladder.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,2BAA2B,CAAA;AAwCpE;;;;;GAKG;AACH,eAAO,MAAM,eAAe,MAAM,CAAA;AAElC;;;;;;GAMG;AACH,qBAAa,sBAAuB,SAAQ,KAAK;gBACnC,OAAO,EAAE,MAAM;CAI5B;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,IAAI,UAAU,CAE/C;AA6BD;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAC7B,UAAU,EACV,KAAK,EACN,EAAE;IACD,UAAU,EAAE,UAAU,CAAA;IACtB,KAAK,EAAE,MAAM,CAAA;CACd,GAAG,UAAU,CAQb;AAED;;;;;;;GAOG;AACH,wBAAsB,UAAU,CAAC,EAC/B,UAAU,EACV,KAAK,EACN,EAAE;IACD,UAAU,EAAE,UAAU,CAAA;IACtB,KAAK,EAAE,MAAM,CAAA;CACd,GAAG,OAAO,CAAC,UAAU,CAAC,CAGtB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,EAC3B,UAAU,EACX,EAAE;IACD,UAAU,EAAE,UAAU,CAAA;CACvB,GAAG,UAAU,CAEb;AAED;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CAAC,EACzC,UAAU,EACX,EAAE;IACD,UAAU,EAAE,UAAU,CAAA;CACvB,GAAG,OAAO,CAAC,MAAM,CAAC,CAElB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,UAAU,EACV,YAAY,EACb,EAAE;IACD,UAAU,EAAE,UAAU,CAAA;IACtB,YAA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E,MAAM,CAAA;CACjB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CA6KnC"}
@@ -67,7 +67,7 @@ const CLIENT_ANNEX_RUNG_INFO_SUFFIX = '/rung/0';
67
67
  export const LADDER_MAX_SCAN = 128;
68
68
  /**
69
69
  * Thrown when the published log's standing parameters match no derivable rung
70
- * -- the credential's posture was revoked (or never published), the ladder
70
+ * -- the credential's inventory was revoked (or never published), the ladder
71
71
  * seed does not belong to this account, or the scan bound was exceeded -- or
72
72
  * when they match more than one rung in the same role, which no legitimate
73
73
  * history produces. Self-enrollment refuses loudly rather than guessing.
@@ -265,9 +265,20 @@ export async function attributeLadderRung({ ladderSeed, published, maxScan = LAD
265
265
  * @returns {boolean}
266
266
  */
267
267
  function ladderSigned({ entry, ladderKeys }) {
268
- return (entry?.proof ?? []).some(proof => {
268
+ return entrySigners({ entry }).some(key => ladderKeys.has(key));
269
+ }
270
+ /**
271
+ * The update-key multibases that signed a log entry (the fragment of each
272
+ * proof's `did:key:<multibase>#<multibase>` id; see {@link ladderSigned}).
273
+ *
274
+ * @param options {object}
275
+ * @param options.entry {DIDLogEntry | undefined}
276
+ * @returns {string[]}
277
+ */
278
+ function entrySigners({ entry }) {
279
+ return (entry?.proof ?? []).flatMap(proof => {
269
280
  const keyMultibase = proof.verificationMethod?.split('#')[1];
270
- return keyMultibase !== undefined && ladderKeys.has(keyMultibase);
281
+ return keyMultibase === undefined ? [] : [keyMultibase];
271
282
  });
272
283
  }
273
284
  /**
@@ -275,9 +286,9 @@ function ladderSigned({ entry, ladderKeys }) {
275
286
  * credential's own `keyAgreement` verification method -- asked at the entry
276
287
  * that completes an enrollment the ladder's rung revealed, where it is the
277
288
  * test of whether the CREDENTIAL survives its own ceremony. A self-enrollment
278
- * leaves the credential's posture untouched (it climbs to the next rung),
289
+ * leaves the credential's inventory untouched (it climbs to the next rung),
279
290
  * while a spend -- the recovery continuation, whose add-and-retire entry
280
- * strikes the code's posture and publishes its successor's -- ends it.
291
+ * strikes the code's inventory and publishes its successor's -- ends it.
281
292
  *
282
293
  * With no id supplied the question cannot be asked, so the answer is a
283
294
  * conservative `false`: a claim the ladder cannot attribute is released rather
@@ -295,18 +306,18 @@ function credentialSurvives({ entry, vmId }) {
295
306
  }
296
307
  // The `keyAgreement` RELATION alone, rather than the bare
297
308
  // `verificationMethod` array: an entry that dereferences the method while
298
- // leaving its object behind has ended the credential's posture, and reading
309
+ // leaving its object behind has ended the credential's inventory, and reading
299
310
  // that as a climb would claim -- and strike -- a successor credential's
300
311
  // commitment.
301
312
  return relationIds(entry.state.keyAgreement).includes(vmId);
302
313
  }
303
314
  /**
304
- * Attributes a ladder's FULL standing posture from the log -- the retirement
315
+ * Attributes a ladder's FULL standing inventory from the log -- the retirement
305
316
  * counterpart of {@link attributeLadderRung}, which recovers only the single
306
317
  * current rung. Retiring a credential must strike every standing artifact its
307
318
  * ladder accounts for, so this walks the log's effective parameters forward
308
319
  * from an anchor (the recorded bind-time rung, however stale) and tracks the
309
- * ladder's footprint entry by entry:
320
+ * ladder's inventory entry by entry:
310
321
  *
311
322
  * - a newly authorized key whose hash was a known ladder commitment is a rung
312
323
  * REVEAL; the hashes that entry newly commits are claimed by the ladder,
@@ -315,7 +326,15 @@ function credentialSurvives({ entry, vmId }) {
315
326
  * key commits stay OUT, even while the rung sits in `updateKeys`: a rung
316
327
  * stands revealed indefinitely after a forget (and after a torn
317
328
  * self-enrollment), and the account's enrolled clients go on extending the
318
- * log the whole time;
329
+ * log the whole time. One exception, the HANDOVER: when the revealed rung's
330
+ * hash was committed earlier by a key the revealing entry itself retires
331
+ * (the recovery continuation -- the spent code commits the fresh
332
+ * credential's `hash(rung 0)` and `hash(rung 1)` adjacently with the
333
+ * replacement code's hash last, then the add entry revealing rung 0 strikes
334
+ * the code), the hash committed immediately after the rung's in that entry,
335
+ * when it is not the entry's last addition, is the ladder's next commitment
336
+ * and is claimed too, so a seed-less walk over a continuation log sees
337
+ * rung 1;
319
338
  * - the entry that retires the revealed rung while authorizing a key whose
320
339
  * hash sits among those claims is the enrollment's COMPLETION: the new
321
340
  * client's update-key hash and the claim committed immediately after it
@@ -327,7 +346,7 @@ function credentialSurvives({ entry, vmId }) {
327
346
  * the hash derives from the ladder's own seed (or is the recorded key's),
328
347
  * or the credential itself survives the completing entry, which is what
329
348
  * makes the residue its next standing commitment. A SPEND -- the recovery
330
- * continuation, whose one entry retires the code's own posture and
349
+ * continuation, whose one entry retires the code's own inventory and
331
350
  * publishes its successor's -- leaves the replacement credential's
332
351
  * commitment in that position instead, and striking that would leave the
333
352
  * replacement unusable and unhealable;
@@ -339,7 +358,7 @@ function credentialSurvives({ entry, vmId }) {
339
358
  * anchor being current; without it, the walk is anchored on
340
359
  * `anchorKeyMultibase` and on `credentialVmId` alone, and a residue neither
341
360
  * can attribute is released -- the retirement then strikes what the recorded
342
- * posture names and nothing more. More than one ladder reveal standing or
361
+ * inventory names and nothing more. More than one ladder reveal standing or
343
362
  * arriving at once matches no legitimate history and fails closed
344
363
  * ({@link LadderAttributionError}).
345
364
  *
@@ -351,14 +370,14 @@ function credentialSurvives({ entry, vmId }) {
351
370
  * when the caller holds it
352
371
  * @param [options.credentialVmId] {string} the credential's own
353
372
  * `keyAgreement` verification-method id, which tells a climb (the
354
- * credential stands afterwards) from a spend (its posture goes in the same
373
+ * credential stands afterwards) from a spend (its inventory goes in the same
355
374
  * entry)
356
375
  * @param [options.maxScan] {number} seeded pre-derivation bound; defaults to
357
376
  * {@link LADDER_MAX_SCAN}
358
- * @returns {Promise<LadderStandingPosture>} what currently stands; both
377
+ * @returns {Promise<LadderStandingInventory>} what currently stands; both
359
378
  * arrays empty when the log carries nothing of the ladder any more
360
379
  */
361
- export async function attributeLadderPosture({ log, anchorKeyMultibase, ladderSeed, credentialVmId, maxScan = LADDER_MAX_SCAN }) {
380
+ export async function attributeLadderInventory({ log, anchorKeyMultibase, ladderSeed, credentialVmId, maxScan = LADDER_MAX_SCAN }) {
362
381
  const anchorHash = await deriveNextKeyHash(anchorKeyMultibase);
363
382
  const ladderKeys = new Set([anchorKeyMultibase]);
364
383
  // What the ladder knows a priori: the recorded key's hash and, with the
@@ -380,13 +399,29 @@ export async function attributeLadderPosture({ log, anchorKeyMultibase, ladderSe
380
399
  let pending;
381
400
  let prevUpdateKeys = new Set();
382
401
  let prevHashes = new Set();
402
+ // Where each standing hash was FIRST committed: the entry's signers, the
403
+ // hash appended immediately after it there, and whether that successor
404
+ // closed the entry's additions. Read back at a reveal whose committing
405
+ // entry the reveal itself retires (below).
406
+ const firstCommit = new Map();
383
407
  for (const [index, entry] of params.entries()) {
384
408
  const currentUpdateKeys = new Set(entry.updateKeys);
385
409
  const addedKeys = entry.updateKeys.filter(key => !prevUpdateKeys.has(key));
410
+ const removedKeys = [...prevUpdateKeys].filter(key => !currentUpdateKeys.has(key));
386
411
  // Order-preserving on purpose: the completion transfer below reads the
387
412
  // claim committed immediately after the client's update-key hash as its
388
413
  // staged hash (the reveal entry's append order, a ratified convention).
389
414
  const addedHashes = entry.nextKeyHashes.filter(hash => !prevHashes.has(hash));
415
+ const signers = entrySigners({ entry: log[index] });
416
+ addedHashes.forEach((hash, at) => {
417
+ if (!firstCommit.has(hash)) {
418
+ firstCommit.set(hash, {
419
+ signers,
420
+ successor: addedHashes[at + 1],
421
+ successorLast: at + 2 === addedHashes.length
422
+ });
423
+ }
424
+ });
390
425
  // Completion first: the pending revealed rung left `updateKeys`. When the
391
426
  // same entry authorizes a key whose hash sits among the reveal's claims,
392
427
  // the enrollment completed -- that hash and its successor (the client's
@@ -444,6 +479,34 @@ export async function attributeLadderPosture({ log, anchorKeyMultibase, ladderSe
444
479
  for (const hash of addedHashes) {
445
480
  ladderHashes.add(hash);
446
481
  }
482
+ // The HANDOVER: a rung whose hash some OTHER key committed earlier, in
483
+ // an entry this reveal retires the signer of. That is the recovery
484
+ // continuation's shape -- the spent code's reveal-and-commit entry
485
+ // commits the fresh credential's `hash(rung 0)` and `hash(rung 1)`
486
+ // adjacently and the replacement code's hash last, and the
487
+ // add-and-retire entry revealing rung 0 strikes the code -- and it is
488
+ // the one case in which a hash another key committed belongs to this
489
+ // ladder: the committer was handing its standing over, not committing
490
+ // for itself. The hash appended immediately after the rung's in that
491
+ // entry is the ladder's next commitment, provided it is not the entry's
492
+ // LAST addition: what an entry hands to a successor credential comes
493
+ // last (the adjacency and the last-position rule both in
494
+ // `decisions/0007-ladder-reveal-hash-order.md`). The condition is
495
+ // reachable outside the continuation -- a forget entry reveals the rung
496
+ // while retiring the client that signed the bind -- and stays inert
497
+ // there only because a bind appends its one hash last. It is a CLAIM
498
+ // like the rest: the completion below still releases it unless the
499
+ // credential survives or the seed derives it.
500
+ const keyHash = await deriveNextKeyHash(key);
501
+ const origin = prevHashes.has(keyHash)
502
+ ? firstCommit.get(keyHash)
503
+ : undefined;
504
+ if (origin?.successor !== undefined &&
505
+ !origin.successorLast &&
506
+ origin.signers.some(signer => removedKeys.includes(signer))) {
507
+ pending.claims.unshift(origin.successor);
508
+ ladderHashes.add(origin.successor);
509
+ }
447
510
  }
448
511
  else if (pending && ladderSigned({ entry: log[index], ladderKeys })) {
449
512
  // The rung is still revealed AND signed this entry, so the hashes it
@@ -1 +1 @@
1
- {"version":3,"file":"ladder.js","sourceRoot":"","sources":["../../src/clientAnnex/ladder.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAE7D,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,kBAAkB,EACnB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAE7D;;;;GAIG;AACH,MAAM,WAAW,GAAG,oCAAoC,CAAA;AACxD,MAAM,uBAAuB,GAAG,OA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C,GAAG,WAAW,CAAC,CAAA;YACnC,KAAK,MAAM,IAAI,IAAI,WAAW,EAAE,CAAC;gBAC/B,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;YACxB,CAAC;QACH,CAAC;QAED,cAAc,GAAG,iBAAiB,CAAA;QAClC,UAAU,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;IAC3C,CAAC;IAED,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI;QACzC,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,EAAE;KAClB,CAAA;IACD,OAAO;QACL,YAAY,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjE,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;KAC5E,CAAA;AACH,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { DIDDoc, DIDLog } from '@interop/did-method-webvh';
2
2
  import type { ClientWebvhUpdateKeys, WebvhEnrollmentKeys, WebvhIdStore } from '../webvh/didWebvh.js';
3
- import type { ResourceLogPinStore } from '../resourceLog/index.js';
3
+ import type { ResourceLogPinStore } from '@interop/vh-resource-log';
4
4
  import { type RevokedClientKeys } from '../webvh/revokeClient.js';
5
5
  import { type UnlockKeyAgreementPublication, type UnlockLogStore } from '../unlock/standingWebvh.js';
6
6
  /**
@@ -12,7 +12,7 @@ import { type UnlockKeyAgreementPublication, type UnlockLogStore } from '../unlo
12
12
  * what the first durable self-enrollment's reveal-and-commit entry,
13
13
  * re-stating `updateKeys` containing rung 0, requires --
14
14
  * and the ladder VM (the stable sibling) is published under `assertionMethod`
15
- * and `capabilityDelegation` only. The credential's `keyAgreement` posture
15
+ * and `capabilityDelegation` only. The credential's `keyAgreement`
16
16
  * entry is FOLDED INTO GENESIS -- no enrolled client exists to run the
17
17
  * separate bind entry ({@link publishUnlockKey}) -- so the genesis
18
18
  * `keyAgreement` array holds only the credential's entry.
@@ -108,6 +108,14 @@ export declare function ensureLadderAnchoredDidWebvh(options: {
108
108
  * therefore holds them and can sign the add entry)
109
109
  * @param [options.expectedDid] {string} the account DID the log must resolve
110
110
  * to, from the credential-authenticated pointer
111
+ * @param [options.pinStore] {ResourceLogPinStore} this client's chain-head
112
+ * pins; every read both entries are built on is checked against the pinned
113
+ * head (a served prefix is refused before the reveal entry lands, not only
114
+ * by a verify that follows both entries), and the pin advances to each
115
+ * entry as it publishes
116
+ * @param [options.logId] {string} the account log's pin slot
117
+ * (`accountLogPinId({ spaceId })`); required whenever a `pinStore` is
118
+ * supplied
111
119
  * @returns {Promise<{ did: string, webDoc?: object }>} the account DID and,
112
120
  * when the add entry ran here, the final `did.json` projection for the
113
121
  * enrolled session to republish
@@ -118,6 +126,8 @@ export declare function selfEnrollWebvhClient(options: {
118
126
  newClientKeys: WebvhEnrollmentKeys;
119
127
  newClientUpdateSeeds: ClientWebvhUpdateKeys;
120
128
  expectedDid?: string;
129
+ pinStore?: ResourceLogPinStore;
130
+ logId?: string;
121
131
  }): Promise<{
122
132
  did: string;
123
133
  webDoc?: object;
@@ -147,7 +157,7 @@ export declare class LastDurableClientForgetError extends Error {
147
157
  * reverse, collapsed to a single entry because a removal reveals no new key.
148
158
  * The signer is the credential's current ladder rung, recovered from the log
149
159
  * itself ({@link attributeLadderRung}): its hash stands committed by the
150
- * credential's posture (or the rung is already revealed), which is exactly
160
+ * credential's inventory (or the rung is already revealed), which is exactly
151
161
  * what lets it reveal itself in the entry it signs under prerotation. The
152
162
  * entry's members are the revocation removal's, verbatim
153
163
  * (`clientRemovalTarget` / `clientRemovalFields`, shared with
@@ -161,10 +171,10 @@ export declare class LastDurableClientForgetError extends Error {
161
171
  * the rung is revealed and the client still stands. The honest residue is the
162
172
  * acting rung itself -- no entry can remove its own signing key, so the rung
163
173
  * stands REVEALED in `updateKeys` afterwards (the same standing state the
164
- * ladder-anchored postures live in). That is credential-held authority, not
174
+ * ladder-anchored accounts live in). That is credential-held authority, not
165
175
  * the forgotten client's: only the ladder seed derives it, the credential's
166
176
  * next self-enrollment consumes and retires it, and retiring the credential
167
- * itself strikes it (`attributeLadderPosture`).
177
+ * itself strikes it (`attributeLadderInventory`).
168
178
  *
169
179
  * Forgetting the LAST enrolled durable client is refused
170
180
  * ({@link LastDurableClientForgetError}): that transition -- to the
@@ -187,6 +197,13 @@ export declare class LastDurableClientForgetError extends Error {
187
197
  * excluded from the staged-hash attribution
188
198
  * @param [options.expectedDid] {string} the account DID the log must resolve
189
199
  * to, from the caller's stored account pointer
200
+ * @param [options.pinStore] {ResourceLogPinStore} the caller's chain-head
201
+ * pins: the read inside each attempt is checked against the pinned head
202
+ * (a served truncated prefix is refused as a `rollback` before anything is
203
+ * built on it), and the pin advances to the head this entry publishes
204
+ * @param [options.logId] {string} the account log's pin slot
205
+ * (`accountLogPinId({ spaceId })`); required whenever a `pinStore` is
206
+ * supplied
190
207
  * @returns {Promise<{ did: string, doc: DIDDoc, log: DIDLog }>} the account
191
208
  * DID and the document and log as the removal entry leaves them (unchanged
192
209
  * on the idempotent no-op path)
@@ -197,6 +214,8 @@ export declare function forgetWebvhClient(options: {
197
214
  forgottenClient: RevokedClientKeys;
198
215
  knownLatentHashes?: string[];
199
216
  expectedDid?: string;
217
+ pinStore?: ResourceLogPinStore;
218
+ logId?: string;
200
219
  }): Promise<{
201
220
  did: string;
202
221
  doc: DIDDoc;
@@ -223,6 +242,8 @@ export declare function forgetLastWebvhClient(options: {
223
242
  forgottenClient: RevokedClientKeys;
224
243
  knownLatentHashes?: string[];
225
244
  expectedDid?: string;
245
+ pinStore?: ResourceLogPinStore;
246
+ logId?: string;
226
247
  }): Promise<{
227
248
  did: string;
228
249
  doc: DIDDoc;
@@ -232,14 +253,14 @@ export declare function forgetLastWebvhClient(options: {
232
253
  * THE LADDER-VM INSTALL ENTRY (the two-entry transition ceremony's first
233
254
  * entry): publishes the credential's ladder VM -- the stable sibling, under
234
255
  * `assertionMethod` and `capabilityDelegation` only -- while the last durable
235
- * client's whole footprint stays untouched: the both-present transitional
256
+ * client's whole inventory stays untouched: the both-present transitional
236
257
  * state the no-neither invariant permits. The entry is ladder-signed by the
237
258
  * attributed rung, which reveals itself into `updateKeys` with its own hash
238
259
  * kept committed (the carry-over convention), exactly the removal entry's
239
260
  * rung math -- so a torn ceremony's re-run re-attributes the now-revealed
240
261
  * rung and carries on.
241
262
  *
242
- * This entry is what makes the transition's document version POSTURE-CHANGING
263
+ * This entry is what makes the transition's document version INVENTORY-CHANGING
243
264
  * under the ceremony-tail license (the ladder-VM set gains a member), so the
244
265
  * ceremony's ONE ladder-signed roster append anchors here -- and it is what
245
266
  * lets the delegation revocations that follow verify their ladder-signed
@@ -258,6 +279,12 @@ export declare function forgetLastWebvhClient(options: {
258
279
  * @param options.ladderSeed {Uint8Array} the credential's ladder seed
259
280
  * @param [options.expectedDid] {string} the account DID the log must resolve
260
281
  * to, from the caller's stored account pointer
282
+ * @param [options.pinStore] {ResourceLogPinStore} the caller's chain-head
283
+ * pins: the read inside each attempt is checked against the pinned head,
284
+ * and the pin advances to the head this entry publishes
285
+ * @param [options.logId] {string} the account log's pin slot
286
+ * (`accountLogPinId({ spaceId })`); required whenever a `pinStore` is
287
+ * supplied
261
288
  * @returns {Promise<{ did: string, doc: DIDDoc, log: DIDLog, installed: boolean }>}
262
289
  * the account DID and the document and log as the install entry leaves them
263
290
  * (unchanged on the idempotent no-op path); `installed` says whether the
@@ -267,6 +294,8 @@ export declare function installLadderVmWebvh(options: {
267
294
  store: UnlockLogStore;
268
295
  ladderSeed: Uint8Array;
269
296
  expectedDid?: string;
297
+ pinStore?: ResourceLogPinStore;
298
+ logId?: string;
270
299
  }): Promise<{
271
300
  did: string;
272
301
  doc: DIDDoc;
@@ -1 +1 @@
1
- {"version":3,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