@interop/wallet-core 0.61.0 → 0.62.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 (83) hide show
  1. package/dist/clientAnnex/forgetLast.d.ts +66 -19
  2. package/dist/clientAnnex/forgetLast.d.ts.map +1 -1
  3. package/dist/clientAnnex/forgetLast.js +120 -38
  4. package/dist/clientAnnex/forgetLast.js.map +1 -1
  5. package/dist/clientAnnex/heal.d.ts +64 -29
  6. package/dist/clientAnnex/heal.d.ts.map +1 -1
  7. package/dist/clientAnnex/heal.js +287 -50
  8. package/dist/clientAnnex/heal.js.map +1 -1
  9. package/dist/clientAnnex/index.d.ts +2 -2
  10. package/dist/clientAnnex/index.d.ts.map +1 -1
  11. package/dist/clientAnnex/index.js +2 -2
  12. package/dist/clientAnnex/index.js.map +1 -1
  13. package/dist/clientAnnex/ladder.d.ts +246 -18
  14. package/dist/clientAnnex/ladder.d.ts.map +1 -1
  15. package/dist/clientAnnex/ladder.js +742 -53
  16. package/dist/clientAnnex/ladder.js.map +1 -1
  17. package/dist/clientAnnex/ladderAnchored.d.ts +113 -6
  18. package/dist/clientAnnex/ladderAnchored.d.ts.map +1 -1
  19. package/dist/clientAnnex/ladderAnchored.js +208 -27
  20. package/dist/clientAnnex/ladderAnchored.js.map +1 -1
  21. package/dist/clientAnnex/log.d.ts +37 -1
  22. package/dist/clientAnnex/log.d.ts.map +1 -1
  23. package/dist/clientAnnex/log.js +34 -10
  24. package/dist/clientAnnex/log.js.map +1 -1
  25. package/dist/clientAnnex/recoveryLadderAnchored.d.ts +32 -7
  26. package/dist/clientAnnex/recoveryLadderAnchored.d.ts.map +1 -1
  27. package/dist/clientAnnex/recoveryLadderAnchored.js +124 -23
  28. package/dist/clientAnnex/recoveryLadderAnchored.js.map +1 -1
  29. package/dist/clientAnnex/zcap.js +2 -2
  30. package/dist/clientAnnex/zcap.js.map +1 -1
  31. package/dist/identity/agents.js +2 -2
  32. package/dist/identity/agents.js.map +1 -1
  33. package/dist/keys/index.d.ts +1 -1
  34. package/dist/keys/index.d.ts.map +1 -1
  35. package/dist/keys/index.js +1 -1
  36. package/dist/keys/index.js.map +1 -1
  37. package/dist/keys/userKeyRoster.d.ts +32 -2
  38. package/dist/keys/userKeyRoster.d.ts.map +1 -1
  39. package/dist/keys/userKeyRoster.js +40 -2
  40. package/dist/keys/userKeyRoster.js.map +1 -1
  41. package/dist/recovery/recoveryDelegation.d.ts +4 -1
  42. package/dist/recovery/recoveryDelegation.d.ts.map +1 -1
  43. package/dist/recovery/recoveryDelegation.js +4 -2
  44. package/dist/recovery/recoveryDelegation.js.map +1 -1
  45. package/dist/recovery/recoveryWebvh.d.ts +42 -2
  46. package/dist/recovery/recoveryWebvh.d.ts.map +1 -1
  47. package/dist/recovery/recoveryWebvh.js +160 -18
  48. package/dist/recovery/recoveryWebvh.js.map +1 -1
  49. package/dist/unlock/index.d.ts +2 -2
  50. package/dist/unlock/index.d.ts.map +1 -1
  51. package/dist/unlock/index.js +1 -1
  52. package/dist/unlock/index.js.map +1 -1
  53. package/dist/unlock/retire.d.ts +62 -9
  54. package/dist/unlock/retire.d.ts.map +1 -1
  55. package/dist/unlock/retire.js +59 -5
  56. package/dist/unlock/retire.js.map +1 -1
  57. package/dist/unlock/standingWebvh.d.ts +131 -21
  58. package/dist/unlock/standingWebvh.d.ts.map +1 -1
  59. package/dist/unlock/standingWebvh.js +239 -54
  60. package/dist/unlock/standingWebvh.js.map +1 -1
  61. package/dist/webvh/didWebvh.d.ts +3 -2
  62. package/dist/webvh/didWebvh.d.ts.map +1 -1
  63. package/dist/webvh/didWebvh.js +7 -5
  64. package/dist/webvh/didWebvh.js.map +1 -1
  65. package/dist/webvh/index.d.ts +2 -2
  66. package/dist/webvh/index.d.ts.map +1 -1
  67. package/dist/webvh/index.js +1 -1
  68. package/dist/webvh/index.js.map +1 -1
  69. package/dist/webvh/keyAgreement.d.ts +25 -0
  70. package/dist/webvh/keyAgreement.d.ts.map +1 -1
  71. package/dist/webvh/keyAgreement.js +24 -0
  72. package/dist/webvh/keyAgreement.js.map +1 -1
  73. package/dist/webvh/listClients.d.ts +7 -5
  74. package/dist/webvh/listClients.d.ts.map +1 -1
  75. package/dist/webvh/listClients.js +7 -5
  76. package/dist/webvh/listClients.js.map +1 -1
  77. package/dist/webvh/revokeClient.d.ts +48 -0
  78. package/dist/webvh/revokeClient.d.ts.map +1 -1
  79. package/dist/webvh/revokeClient.js +85 -1
  80. package/dist/webvh/revokeClient.js.map +1 -1
  81. package/dist/webvh/zcap.js +3 -3
  82. package/dist/webvh/zcap.js.map +1 -1
  83. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"heal.js","sourceRoot":"","sources":["../../src/clientAnnex/heal.ts"],"names":[],"mappings":"AAoDA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAE/C,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAM5E,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE9E,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAE1D,OAAO,EACL,mBAAmB,EACnB,UAAU,EACV,oBAAoB,EACrB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAC7D,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,iCAAiC,EACjC,uBAAuB,EACvB,iCAAiC,EACjC,mCAAmC,EACnC,8BAA8B,EAC9B,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,UAAU,CAAA;AAqBjB;;;;GAIG;AACH,MAAM,OAAO,qCAAsC,SAAQ,KAAK;IACrD,MAAM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,UAAU;YACV,WAAW,EAAE,UAAU;YACvB,GAAG,GAAG;SACP,CAAC,CAAA;QACF,wEAAwE;QACxE,sDAAsD;QACtD,MAAM,SAAS,GAAG,MAAM,gBAAgB,CAAC;YACvC,OAAO;YACP,WAAW,EAAE,UAAU;YACvB,GAAG,GAAG;SACP,CAAC,CAAA;QACF,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,MAAM,IAAI,KAAK,CACb,sEAAsE,CACvE,CAAA;QACH,CAAC;QACD,wEAAwE;QACxE,qEAAqE;QACrE,uEAAuE;QACvE,yEAAyE;QACzE,yEAAyE;QACzE,iDAAiD;QACjD,IAAI,UAAiC,CAAA;QACrC,IAAI,CAAC;YACH,UAAU,GAAG,MAAM,sBAAsB,CAAC;gBACxC,UAAU;gBACV,GAAG,EAAE,SAAS,CAAC,GAAG;aACnB,CAAC,CAAA;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IACG,GAAyB,CAAC,IAAI;gBAC7B,uCAAuC;gBACxC,GAA6C,CAAC,MAAM;oBACnD,6BAA6B,EAC/B,CAAC;gBACD,MAAM,IAAI,qBAAqB,CAC7B,kEAAkE;oBAChE,2DAA2D,EAC7D,EAAE,KAAK,EAAE,GAAG,EAAE,CACf,CAAA;YACH,CAAC;YACD,MAAM,GAAG,CAAA;QACX,CAAC;QACD,MAAM,8BAA8B,CAAC;YACnC,OAAO;YACP,UAAU;YACV,cAAc;YACd,WAAW,EAAE,UAAU;YACvB,OAAO,EAAE,IAAI;YACb,SAAS;YACT,GAAG,GAAG;SACP,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC"}
@@ -42,7 +42,7 @@
42
42
  */
43
43
  export { attributeLadderInventory, attributeLadderRung, clientAnnexRung, clientAnnexRungSeed, generateLadderSeed, LADDER_MAX_SCAN, LadderAttributionError, ladderRung, ladderRungSeed, ladderVmKeyMultibase, ladderVmSeed } from './ladder.js';
44
44
  export type { LadderRung, LadderRungState, LadderStandingInventory } from './ladder.js';
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';
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, setDelegatedClientsPointerOnce } from './log.js';
46
46
  export type { ClientAnnexWriteStore } from './log.js';
47
47
  export { clientAnnexGcDue, delegatedClientsPointerEstablishedAt, GENERATION_GC_PERIOD_MS, GENERATION_QUIET_BOUND_MS, GENERATION_QUIET_GRACE_MS, generationQuiet, runClientAnnexGc, swapClientAnnexGeneration } from './gc.js';
48
48
  export type { ClientAnnexGcReport, ClientAnnexGcSwapOutcome } from './gc.js';
@@ -55,7 +55,7 @@ export { ensureRosterDeliveredEpochs } from './rosterDeliveredEpochs.js';
55
55
  export type { RosterDeliveredEpochsResult } from './rosterDeliveredEpochs.js';
56
56
  export { mendCredentialAnchoredAccount } from './mend.js';
57
57
  export type { CredentialAnchoredAccountCore, CredentialAnchoredMendReport, CredentialAnchoredRegistryContext } from './mend.js';
58
- export { BuiltOnHeadNotReachedError, createLadderAnchoredAccountLog, ensureLadderAnchoredDidWebvh, forgetLastWebvhClient, forgetWebvhClient, installLadderVmWebvh, LastEnrolledClientForgetError, selfEnrollWebvhClient } from './ladderAnchored.js';
58
+ export { BuiltOnHeadNotReachedError, createLadderAnchoredAccountLog, ensureLadderAnchoredDidWebvh, forgetLastWebvhClient, forgetWebvhClient, installLadderVmWebvh, LastEnrolledClientForgetError, selfEnrollWebvhClient, strikeLadderVmWebvh } from './ladderAnchored.js';
59
59
  export { selfEnrollClientCore } from './selfEnroll.js';
60
60
  export { forgetEnrolledClient } from './forget.js';
61
61
  export type { EnrolledClientForgetResult } from './forget.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clientAnnex/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,EACL,wBAAwB,EACxB,mBAAmB,EACnB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ash order).
42
42
  */
43
43
  export { attributeLadderInventory, attributeLadderRung, clientAnnexRung, clientAnnexRungSeed, generateLadderSeed, LADDER_MAX_SCAN, LadderAttributionError, ladderRung, ladderRungSeed, ladderVmKeyMultibase, ladderVmSeed } from './ladder.js';
44
- 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';
44
+ 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, setDelegatedClientsPointerOnce } from './log.js';
45
45
  export { clientAnnexGcDue, delegatedClientsPointerEstablishedAt, GENERATION_GC_PERIOD_MS, GENERATION_QUIET_BOUND_MS, GENERATION_QUIET_GRACE_MS, generationQuiet, runClientAnnexGc, swapClientAnnexGeneration } from './gc.js';
46
46
  export { ladderVmAgent, ladderVmZcapClient } from './zcap.js';
47
47
  export { ClientAnnexGenerationUnavailableError, ensureCredentialClientAnnexGeneration, ladderSignedGenerationDelegationMinter, pointerEntryUpdateKeys, resolveClientAnnexSpaceId } from './heal.js';
48
48
  export { ensurePointedClientAnnexGeneration, establishCredentialAnchoredAccount } from './establish.js';
49
49
  export { ensureRosterDeliveredEpochs } from './rosterDeliveredEpochs.js';
50
50
  export { mendCredentialAnchoredAccount } from './mend.js';
51
- export { BuiltOnHeadNotReachedError, createLadderAnchoredAccountLog, ensureLadderAnchoredDidWebvh, forgetLastWebvhClient, forgetWebvhClient, installLadderVmWebvh, LastEnrolledClientForgetError, selfEnrollWebvhClient } from './ladderAnchored.js';
51
+ export { BuiltOnHeadNotReachedError, createLadderAnchoredAccountLog, ensureLadderAnchoredDidWebvh, forgetLastWebvhClient, forgetWebvhClient, installLadderVmWebvh, LastEnrolledClientForgetError, selfEnrollWebvhClient, strikeLadderVmWebvh } from './ladderAnchored.js';
52
52
  export { selfEnrollClientCore } from './selfEnroll.js';
53
53
  export { forgetEnrolledClient } from './forget.js';
54
54
  export { forgetLastEnrolledClient, RecordRemintFailedError } from './forgetLast.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","s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O,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"}
@@ -61,10 +61,15 @@ export declare function ladderRung({ ladderSeed, index }: {
61
61
  * published verbatim in the account document (the seed is random, so the
62
62
  * hash-commitment rule permits it) and stable across rung spends, so a
63
63
  * delegation it signed survives every ladder advance. It carries the
64
- * ladder-anchored window's document-visible authority (`assertionMethod` and
64
+ * credential's document-visible authority (`assertionMethod` and
65
65
  * `capabilityDelegation`), while update authority stays on the rungs -- the
66
66
  * two roles never share a key.
67
67
  *
68
+ * Its life is the credential's: the VM is installed in the entry that makes
69
+ * the credential standing (`publishUnlockKey`) and struck in the entry that
70
+ * retires it (`removeUnlockKey`). Enrollment never touches it, so several
71
+ * VMs stand on an account with several standing credentials.
72
+ *
68
73
  * Because the key is derived, removing its verification method is never the
69
74
  * terminal remedy: a later reinstall republishes the same key under the same
70
75
  * id, and any still-unexpired delegation it signed resumes verifying the
@@ -172,8 +177,10 @@ export declare function attributeLadderRung({ ladderSeed, published, maxScan }:
172
177
  state: LadderRungState;
173
178
  }>;
174
179
  /**
175
- * Everything of one ladder that currently stands in the published log's
176
- * parameters: the revealed rung keys still authorized in `updateKeys` and the
180
+ * Everything of one ladder that currently stands in the published log: the
181
+ * revealed rung keys still authorized in `updateKeys`, the ladder VMs the
182
+ * final document publishes that this ladder is attributed as the publisher of
183
+ * (`ladderVmIds`), and the
177
184
  * committed hashes the ladder accounts for in `nextKeyHashes` -- including,
178
185
  * for a torn self-enrollment, the hashes the reveal entry committed under the
179
186
  * rung's authority for a client that was never published (its update- and
@@ -183,7 +190,168 @@ export declare function attributeLadderRung({ ladderSeed, published, maxScan }:
183
190
  export interface LadderStandingInventory {
184
191
  revealedKeys: string[];
185
192
  committedHashes: string[];
193
+ ladderVmIds: string[];
194
+ }
195
+ /**
196
+ * Thrown when an edit's `nextKeyHashes` would come out empty. An empty list
197
+ * switches prerotation off in did:webvh, so an entry that struck every
198
+ * commitment would leave the account with no staged key at all. Every ceremony
199
+ * that strikes hashes commits its own successors in the same entry, so the
200
+ * list is non-empty by construction; this is the assertion that says so.
201
+ */
202
+ export declare class NextKeyHashesEmptyError extends Error {
203
+ constructor(message: string);
186
204
  }
205
+ /**
206
+ * Refuses to publish an entry whose `nextKeyHashes` came out empty.
207
+ *
208
+ * @param options {object}
209
+ * @param options.nextKeyHashes {string[]}
210
+ * @param options.ceremony {string} named in the refusal
211
+ * @returns {string[]} the list, unchanged
212
+ */
213
+ export declare function assertNextKeyHashesRemain({ nextKeyHashes, ceremony }: {
214
+ nextKeyHashes: string[];
215
+ ceremony: string;
216
+ }): string[];
217
+ /**
218
+ * The anchor a credential's ladder walk starts from when the caller holds no
219
+ * recorded update key -- the log-only anchoring a cold browser needs. The
220
+ * credential's own `keyAgreement` member id is the anchor: the entry that
221
+ * FIRST introduced that member is the credential's bind entry, and what that
222
+ * entry did to the standing parameters names rung 0.
223
+ *
224
+ * Two shapes are read, both fail-closed:
225
+ *
226
+ * - the entry authorized exactly one update key and that key signed it (a
227
+ * prerotation reveal, the ladder-anchored genesis shape), so rung 0 is that
228
+ * key outright;
229
+ * - the entry authorized no key of its own and newly committed exactly one
230
+ * hash (the `publishUnlockKey` bind an enrolled client signs, and the
231
+ * recovery-code issuance sharing it), so rung 0's hash is that hash.
232
+ *
233
+ * Anything else is ambiguous and returns `undefined`, which the callers report
234
+ * as unclaimed rather than acting on. The reachable ambiguity is a bind entry
235
+ * introducing more than one credential-class member: a recovery
236
+ * add-and-retire entry introduces the fresh credential and the replacement
237
+ * code together, so neither is anchorable this way.
238
+ *
239
+ * @param options {object}
240
+ * @param options.log {DIDLog} a resolved, caller-verified log
241
+ * @param options.credentialVmId {string} the credential's `keyAgreement`
242
+ * verification-method id
243
+ * @returns {Promise<{ anchorKeyMultibase?: string, anchorHash?: string } |
244
+ * undefined>}
245
+ */
246
+ export declare function credentialLadderAnchor({ log, credentialVmId }: {
247
+ log: DIDLog;
248
+ credentialVmId: string;
249
+ }): Promise<{
250
+ anchorKeyMultibase?: string;
251
+ anchorHash?: string;
252
+ } | undefined>;
253
+ /**
254
+ * The strike a retirement entry ALREADY published, recomputed by re-running
255
+ * {@link attributeRetiredCredentialRungs} over the log as it stood just before
256
+ * that entry. A resumed ceremony reports what its first run reported this way,
257
+ * rather than through a second definition of "unclaimed" that could answer
258
+ * differently.
259
+ *
260
+ * The entry is located by the key it authorized: every ceremony that calls
261
+ * this detects its own completion by that key standing in `updateKeys`, and
262
+ * the entry that FIRST authorized it is the one to walk back to. A log that
263
+ * does not authorize the key, or authorizes it at the genesis entry, has no
264
+ * usable prefix and is refused: a caller that reached this had already seen
265
+ * the key authorized, so either shape is a caller defect rather than a
266
+ * state to answer for.
267
+ *
268
+ * @param options {object}
269
+ * @param options.log {DIDLog} the post-entry log
270
+ * @param options.authorizedKeyMultibase {string} the update key the entry
271
+ * authorized
272
+ * @param options.credentialVmIds {string[]} the credentials the entry
273
+ * retired, as the caller derived them from the log
274
+ * @param [options.protectedHashes] {string[]} the same set the first run
275
+ * passed
276
+ * @param [options.protectedKeys] {string[]} likewise
277
+ * @param [options.maxScan] {number}
278
+ * @returns {Promise<{ struckHashes: string[], struckKeys: string[],
279
+ * unclaimedCredentialVmIds: string[] }>}
280
+ */
281
+ export declare function retiredCredentialRungsBeforeKey({ log, authorizedKeyMultibase, credentialVmIds, protectedHashes, protectedKeys, maxScan }: {
282
+ log: DIDLog;
283
+ authorizedKeyMultibase: string;
284
+ credentialVmIds: string[];
285
+ protectedHashes?: string[];
286
+ protectedKeys?: string[];
287
+ maxScan?: number;
288
+ }): Promise<{
289
+ struckHashes: string[];
290
+ struckKeys: string[];
291
+ unclaimedCredentialVmIds: string[];
292
+ }>;
293
+ /**
294
+ * What a full retirement must strike from the standing parameters for a set of
295
+ * credentials being retired in one entry: their committed rung hashes, and any
296
+ * rung of theirs standing revealed in `updateKeys`. Each credential is
297
+ * anchored from the log alone ({@link credentialLadderAnchor}), so a cold
298
+ * browser holding no registry and no seed can still strike them.
299
+ *
300
+ * The bias is under-striking, deliberately. Over-striking is silent and
301
+ * unhealable -- a surviving credential or client keeps its verification
302
+ * methods and its roster wrap, and only fails when someone finally uses it --
303
+ * while under-striking leaves a committed rung a retired credential's holder
304
+ * could reveal, which the report names. Five things keep it that way:
305
+ *
306
+ * - a credential whose anchor is ambiguous or whose walk refuses is reported
307
+ * as unclaimed and nothing of its is struck;
308
+ * - only what the walk positively claims is a candidate;
309
+ * - a hash or key the caller names as its own (`protectedHashes` /
310
+ * `protectedKeys`, the successors the entry itself commits) is dropped;
311
+ * - every SURVIVING enrolled client's active update key, its carry-over hash
312
+ * and its staged hash are dropped, whatever the walk claimed
313
+ * ({@link survivingClientKeyProtection}). That guard is structural rather
314
+ * than a property of the walk, because a mis-anchored walk landing on a
315
+ * client's key would otherwise end that client's ability to extend the
316
+ * account log for good. The walks therefore run FIRST, and the hashes they
317
+ * claimed are passed to the protection as known-latent, so a retiring
318
+ * credential's own rung cannot make a client's staged attribution ambiguous
319
+ * and get itself protected as a candidate;
320
+ * - a listed enrolled client whose ACTIVE update key the log cannot attribute
321
+ * withholds the WHOLE strike: nothing is struck and every credential is
322
+ * reported, since the structural guard cannot say what that client holds.
323
+ *
324
+ * The report is a not-fully-retired report rather than a nothing-happened one.
325
+ * A credential appears on `unclaimedCredentialVmIds` when its walk refused,
326
+ * when it claimed nothing, AND when any single hash or key it claimed was
327
+ * withheld by one of the kept sets. The rest of that credential's claims are
328
+ * still struck; what the caller must not be told is that a partial retirement
329
+ * was a whole one.
330
+ *
331
+ * @param options {object}
332
+ * @param options.log {DIDLog} a resolved, caller-verified log, read BEFORE
333
+ * the entry is built
334
+ * @param options.credentialVmIds {string[]} the retiring credentials'
335
+ * `keyAgreement` verification-method ids
336
+ * @param [options.protectedHashes] {string[]} hashes the entry itself
337
+ * commits, never struck
338
+ * @param [options.protectedKeys] {string[]} update keys the entry itself
339
+ * authorizes, never struck
340
+ * @param [options.maxScan] {number} the ladder walk's bound
341
+ * @returns {Promise<{ struckHashes: string[], struckKeys: string[],
342
+ * unclaimedCredentialVmIds: string[] }>}
343
+ */
344
+ export declare function attributeRetiredCredentialRungs({ log, credentialVmIds, protectedHashes, protectedKeys, maxScan }: {
345
+ log: DIDLog;
346
+ credentialVmIds: string[];
347
+ protectedHashes?: string[];
348
+ protectedKeys?: string[];
349
+ maxScan?: number;
350
+ }): Promise<{
351
+ struckHashes: string[];
352
+ struckKeys: string[];
353
+ unclaimedCredentialVmIds: string[];
354
+ }>;
187
355
  /**
188
356
  * Attributes a ladder's FULL standing inventory from the log -- the retirement
189
357
  * counterpart of {@link attributeLadderRung}, which recovers only the single
@@ -224,35 +392,95 @@ export interface LadderStandingInventory {
224
392
  * commitment in that position instead, and striking that would leave the
225
393
  * replacement unusable and unhealable;
226
394
  * - a claim or revealed key that later leaves the parameters without a
227
- * completion was struck by some other edit and simply stops standing.
395
+ * completion was struck by some other edit and simply stops standing;
396
+ * - a ladder VM standing in the final document belongs to this ladder on
397
+ * either of two arms, asked at the entry that PUBLISHED it (the entry at
398
+ * which the id appeared among the document's ladder VMs). The SIGNER arm:
399
+ * that entry was signed by a key this ladder accounted for at that point,
400
+ * which covers every install a ladder rung signs (the ladder-anchored
401
+ * genesis, the ladder-VM install, the transient recovery's add-and-retire
402
+ * entry). The CO-INTRODUCTION arm: that entry also introduced this
403
+ * credential's own `keyAgreement` member (`credentialVmId`), which is what
404
+ * reaches a bind entry an ENROLLED CLIENT signed -- the shape
405
+ * `publishUnlockKey` writes, whose signer is the binding client's update
406
+ * key rather than a rung. Three guards keep that arm from over-claiming:
407
+ * it needs `credentialVmId` in hand, the entry must introduce exactly ONE
408
+ * credential-class `keyAgreement` member (the account-controlled class,
409
+ * `credentialKeyAgreementMethods`; the transient recovery entry introduces
410
+ * two and is left to the signer arm), and the entry must introduce exactly
411
+ * ONE ladder VM. The question is anchored rather than free-standing: it
412
+ * answers "is this VM mine", and a VM no anchored ladder claims is
413
+ * identified by subtraction and left standing, since striking a key this
414
+ * ladder cannot show it owns would take out a surviving credential's.
415
+ * The COMMITMENT arm: that entry committed a hash the ladder knows a priori
416
+ * (the anchor's, a seed-derived rung's, or one the backward pre-pass
417
+ * recovered), introduced exactly one ladder VM, and introduced no OTHER
418
+ * credential's `keyAgreement` member. It reaches the reinstall an
419
+ * `establishStandingUnlock` re-run writes, which mints a fresh ladder seed
420
+ * for a credential whose member already stands, so neither of the other
421
+ * arms can see it. Like the co-introduction arm it needs `credentialVmId`
422
+ * in hand, since with no id the foreign-member guard would pass vacuously.
423
+ *
424
+ * The attribution is anchor-invariant across the shapes where each rung's
425
+ * hash was committed by an entry that also revealed the previous rung, or by
426
+ * a handover. The signer arm's key set is the anchor plus every earlier rung
427
+ * a backward pre-pass recovers from the log's own positional rules ({@link
428
+ * recoverEarlierRungs}, over `decisions/0007-ladder-reveal-hash-order.md`),
429
+ * so an entry a spent rung signed is attributed however far the anchor has
430
+ * since climbed. The ladder seed (`ladderSeed`) remains a shortcut and a
431
+ * cross-check rather than a requirement: it makes every rung's key and hash
432
+ * known outright and skips the pre-pass. A residue no arm can attribute is
433
+ * still released -- the retirement then strikes what the recorded inventory
434
+ * names and nothing more. More than one ladder reveal standing or arriving at
435
+ * once matches no legitimate history and fails closed ({@link
436
+ * LadderAttributionError}).
437
+ *
438
+ * One shape is out of reach seedlessly, and it is reachable today. The
439
+ * last-client transition strikes the ladder VM and reinstalls it in the same
440
+ * run (`forgetLastEnrolledClient` stage 1): same seed, the credential's
441
+ * member standing, the acting rung's hash still committed, and no hash added.
442
+ * A later self-enrollment then spends that already-revealed rung, so its
443
+ * reveal-and-commit entry authorizes no key while committing the next rung's
444
+ * hash, and the registry anchor advances to that next rung. The backward walk
445
+ * climbs from the anchor by asking which key the entry that committed its
446
+ * hash authorized; that entry authorized none, so the walk cannot name the
447
+ * rung that signed it, and the earlier rung and the reinstalled VM go
448
+ * unrecovered. A seedless retirement then reports the VM as `unclaimed` and
449
+ * leaves it standing. Tracked as WC-158.
228
450
  *
229
- * With the ladder seed in hand (`ladderSeed`), every rung's key and hash are
230
- * additionally known a priori, so the attribution does not depend on the
231
- * anchor being current; without it, the walk is anchored on
232
- * `anchorKeyMultibase` and on `credentialVmId` alone, and a residue neither
233
- * can attribute is released -- the retirement then strikes what the recorded
234
- * inventory names and nothing more. More than one ladder reveal standing or
235
- * arriving at once matches no legitimate history and fails closed
236
- * ({@link LadderAttributionError}).
451
+ * The anchor comes in three forms, and the walk is the same afterwards. A
452
+ * recorded update-key multibase (`anchorKeyMultibase`) is what a caller
453
+ * holding a registry entry passes. A hash (`anchorHash`) is the same anchor
454
+ * with the key withheld: the rung is picked up when the log reveals it, since
455
+ * the reveal test already matches on the commitment. With neither, and a
456
+ * `credentialVmId` in hand, the anchor is read off the credential's bind entry
457
+ * ({@link credentialLadderAnchor}) -- the cold-browser mode, where no registry
458
+ * is readable before the entry is written. An anchor the bind entry cannot
459
+ * name unambiguously refuses with {@link LadderAttributionError} rather than
460
+ * walking from a guess.
237
461
  *
238
462
  * @param options {object}
239
463
  * @param options.log {DIDLog} a resolved, caller-verified log
240
- * @param options.anchorKeyMultibase {string} the credential's recorded
464
+ * @param [options.anchorKeyMultibase] {string} the credential's recorded
241
465
  * update-key multibase (bind-time rung 0, or a refreshed later rung)
466
+ * @param [options.anchorHash] {string} the same anchor as a committed hash,
467
+ * for a caller that resolved one without the key
242
468
  * @param [options.ladderSeed] {Uint8Array} the credential's ladder seed,
243
469
  * when the caller holds it
244
470
  * @param [options.credentialVmId] {string} the credential's own
245
471
  * `keyAgreement` verification-method id, which tells a climb (the
246
472
  * credential stands afterwards) from a spend (its inventory goes in the same
247
- * entry)
473
+ * entry), which the ladder VM's co-introduction arm is anchored on, and
474
+ * which supplies the anchor itself when neither anchor form is passed
248
475
  * @param [options.maxScan] {number} seeded pre-derivation bound; defaults to
249
476
  * {@link LADDER_MAX_SCAN}
250
- * @returns {Promise<LadderStandingInventory>} what currently stands; both
251
- * arrays empty when the log carries nothing of the ladder any more
477
+ * @returns {Promise<LadderStandingInventory>} what currently stands; every
478
+ * array empty when the log carries nothing of the ladder any more
252
479
  */
253
- export declare function attributeLadderInventory({ log, anchorKeyMultibase, ladderSeed, credentialVmId, maxScan }: {
480
+ export declare function attributeLadderInventory({ log, anchorKeyMultibase, anchorHash: suppliedAnchorHash, ladderSeed, credentialVmId, maxScan }: {
254
481
  log: DIDLog;
255
- anchorKeyMultibase: string;
482
+ anchorKeyMultibase?: string;
483
+ anchorHash?: string;
256
484
  ladderSeed?: Uint8Array;
257
485
  credentialVmId?: string;
258
486
  maxScan?: number;
@@ -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,EAC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