@interop/wallet-core 0.65.0 → 0.67.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.
- package/README.md +12 -8
- package/dist/clientAnnex/credentialAnchoredGenesis.d.ts +5 -4
- package/dist/clientAnnex/credentialAnchoredGenesis.d.ts.map +1 -1
- package/dist/clientAnnex/credentialAnchoredGenesis.js +32 -50
- package/dist/clientAnnex/credentialAnchoredGenesis.js.map +1 -1
- package/dist/clientAnnex/establish.d.ts +112 -21
- package/dist/clientAnnex/establish.d.ts.map +1 -1
- package/dist/clientAnnex/establish.js +248 -180
- package/dist/clientAnnex/establish.js.map +1 -1
- package/dist/clientAnnex/forget.d.ts +2 -6
- package/dist/clientAnnex/forget.d.ts.map +1 -1
- package/dist/clientAnnex/forget.js +31 -61
- package/dist/clientAnnex/forget.js.map +1 -1
- package/dist/clientAnnex/forgetLast.d.ts +48 -132
- package/dist/clientAnnex/forgetLast.d.ts.map +1 -1
- package/dist/clientAnnex/forgetLast.js +88 -221
- package/dist/clientAnnex/forgetLast.js.map +1 -1
- package/dist/clientAnnex/gc.d.ts.map +1 -1
- package/dist/clientAnnex/gc.js +9 -0
- package/dist/clientAnnex/gc.js.map +1 -1
- package/dist/clientAnnex/heal.d.ts +97 -13
- package/dist/clientAnnex/heal.d.ts.map +1 -1
- package/dist/clientAnnex/heal.js +108 -174
- package/dist/clientAnnex/heal.js.map +1 -1
- package/dist/clientAnnex/index.d.ts +8 -8
- package/dist/clientAnnex/index.d.ts.map +1 -1
- package/dist/clientAnnex/index.js +6 -6
- package/dist/clientAnnex/index.js.map +1 -1
- package/dist/clientAnnex/ladder.d.ts +51 -4
- package/dist/clientAnnex/ladder.d.ts.map +1 -1
- package/dist/clientAnnex/ladder.js +310 -55
- package/dist/clientAnnex/ladder.js.map +1 -1
- package/dist/clientAnnex/ladderAnchored.d.ts +37 -3
- package/dist/clientAnnex/ladderAnchored.d.ts.map +1 -1
- package/dist/clientAnnex/ladderAnchored.js +69 -34
- package/dist/clientAnnex/ladderAnchored.js.map +1 -1
- package/dist/clientAnnex/log.d.ts +148 -72
- package/dist/clientAnnex/log.d.ts.map +1 -1
- package/dist/clientAnnex/log.js +211 -137
- package/dist/clientAnnex/log.js.map +1 -1
- package/dist/clientAnnex/mend.d.ts.map +1 -1
- package/dist/clientAnnex/mend.js +63 -81
- package/dist/clientAnnex/mend.js.map +1 -1
- package/dist/clientAnnex/recoveryLadderAnchored.d.ts +20 -1
- package/dist/clientAnnex/recoveryLadderAnchored.d.ts.map +1 -1
- package/dist/clientAnnex/recoveryLadderAnchored.js +77 -294
- package/dist/clientAnnex/recoveryLadderAnchored.js.map +1 -1
- package/dist/clientAnnex/rosterDeliveredEpochs.d.ts +13 -5
- package/dist/clientAnnex/rosterDeliveredEpochs.d.ts.map +1 -1
- package/dist/clientAnnex/rosterDeliveredEpochs.js +18 -9
- package/dist/clientAnnex/rosterDeliveredEpochs.js.map +1 -1
- package/dist/clientAnnex/selfEnroll.js +1 -1
- package/dist/clientAnnex/selfEnroll.js.map +1 -1
- package/dist/clientAnnex/zcap.d.ts +19 -0
- package/dist/clientAnnex/zcap.d.ts.map +1 -1
- package/dist/clientAnnex/zcap.js +80 -12
- package/dist/clientAnnex/zcap.js.map +1 -1
- package/dist/clients/index.d.ts +3 -2
- package/dist/clients/index.d.ts.map +1 -1
- package/dist/clients/index.js +3 -2
- package/dist/clients/index.js.map +1 -1
- package/dist/clients/listing.d.ts.map +1 -1
- package/dist/clients/listing.js +33 -15
- package/dist/clients/listing.js.map +1 -1
- package/dist/clients/policy.d.ts +18 -0
- package/dist/clients/policy.d.ts.map +1 -1
- package/dist/clients/policy.js +22 -8
- package/dist/clients/policy.js.map +1 -1
- package/dist/clients/revocation.d.ts +18 -30
- package/dist/clients/revocation.d.ts.map +1 -1
- package/dist/clients/revocation.js +12 -27
- package/dist/clients/revocation.js.map +1 -1
- package/dist/clients/rosterPolicy.d.ts +6 -1
- package/dist/clients/rosterPolicy.d.ts.map +1 -1
- package/dist/clients/rosterPolicy.js +27 -30
- package/dist/clients/rosterPolicy.js.map +1 -1
- package/dist/descriptors/errors.d.ts +6 -5
- package/dist/descriptors/errors.d.ts.map +1 -1
- package/dist/descriptors/errors.js +6 -5
- package/dist/descriptors/errors.js.map +1 -1
- package/dist/descriptors/index.d.ts +7 -3
- package/dist/descriptors/index.d.ts.map +1 -1
- package/dist/descriptors/index.js +7 -3
- package/dist/descriptors/index.js.map +1 -1
- package/dist/descriptors/logSource.d.ts +28 -6
- package/dist/descriptors/logSource.d.ts.map +1 -1
- package/dist/descriptors/logSource.js +33 -7
- package/dist/descriptors/logSource.js.map +1 -1
- package/dist/enrollment/enrollment.d.ts.map +1 -1
- package/dist/enrollment/enrollment.js +3 -7
- package/dist/enrollment/enrollment.js.map +1 -1
- package/dist/genesis/accountGenesis.d.ts +8 -10
- package/dist/genesis/accountGenesis.d.ts.map +1 -1
- package/dist/genesis/accountGenesis.js +39 -41
- package/dist/genesis/accountGenesis.js.map +1 -1
- package/dist/genesis/kmsAuthentication.d.ts +50 -0
- package/dist/genesis/kmsAuthentication.d.ts.map +1 -0
- package/dist/genesis/kmsAuthentication.js +49 -0
- package/dist/genesis/kmsAuthentication.js.map +1 -0
- package/dist/keyring/kdf.d.ts +16 -20
- package/dist/keyring/kdf.d.ts.map +1 -1
- package/dist/keyring/kdf.js +2 -2
- package/dist/keyring/kdf.js.map +1 -1
- package/dist/keyring/unlockSpace.d.ts +8 -30
- package/dist/keyring/unlockSpace.d.ts.map +1 -1
- package/dist/keyring/unlockSpace.js +8 -31
- package/dist/keyring/unlockSpace.js.map +1 -1
- package/dist/keys/clientKeyRecord.d.ts +2 -1
- package/dist/keys/clientKeyRecord.d.ts.map +1 -1
- package/dist/keys/clientKeyRecord.js +28 -11
- package/dist/keys/clientKeyRecord.js.map +1 -1
- package/dist/keys/index.d.ts +19 -5
- package/dist/keys/index.d.ts.map +1 -1
- package/dist/keys/index.js +17 -3
- package/dist/keys/index.js.map +1 -1
- package/dist/keys/rosterLogStore.d.ts +3 -1
- package/dist/keys/rosterLogStore.d.ts.map +1 -1
- package/dist/keys/rosterLogStore.js +20 -8
- package/dist/keys/rosterLogStore.js.map +1 -1
- package/dist/keys/spaceEpochs.d.ts +92 -3
- package/dist/keys/spaceEpochs.d.ts.map +1 -1
- package/dist/keys/spaceEpochs.js +110 -4
- package/dist/keys/spaceEpochs.js.map +1 -1
- package/dist/keys/userKeyCascade.d.ts +8 -5
- package/dist/keys/userKeyCascade.d.ts.map +1 -1
- package/dist/keys/userKeyCascade.js +7 -6
- package/dist/keys/userKeyCascade.js.map +1 -1
- package/dist/keys/userKeyRoster.d.ts +68 -4
- package/dist/keys/userKeyRoster.d.ts.map +1 -1
- package/dist/keys/userKeyRoster.js +146 -33
- package/dist/keys/userKeyRoster.js.map +1 -1
- package/dist/keys/userKeyRosterCascade.d.ts +110 -10
- package/dist/keys/userKeyRosterCascade.d.ts.map +1 -1
- package/dist/keys/userKeyRosterCascade.js +184 -40
- package/dist/keys/userKeyRosterCascade.js.map +1 -1
- package/dist/recovery/continuation.d.ts +255 -0
- package/dist/recovery/continuation.d.ts.map +1 -0
- package/dist/recovery/continuation.js +471 -0
- package/dist/recovery/continuation.js.map +1 -0
- package/dist/recovery/index.d.ts +12 -8
- package/dist/recovery/index.d.ts.map +1 -1
- package/dist/recovery/index.js +11 -7
- package/dist/recovery/index.js.map +1 -1
- package/dist/recovery/recoveryDelegation.d.ts +40 -120
- package/dist/recovery/recoveryDelegation.d.ts.map +1 -1
- package/dist/recovery/recoveryDelegation.js +36 -268
- package/dist/recovery/recoveryDelegation.js.map +1 -1
- package/dist/recovery/recoveryWebvh.d.ts +42 -83
- package/dist/recovery/recoveryWebvh.d.ts.map +1 -1
- package/dist/recovery/recoveryWebvh.js +44 -380
- package/dist/recovery/recoveryWebvh.js.map +1 -1
- package/dist/request/appKey.d.ts +35 -1
- package/dist/request/appKey.d.ts.map +1 -1
- package/dist/request/appKey.js +29 -10
- package/dist/request/appKey.js.map +1 -1
- package/dist/request/classify.d.ts +3 -14
- package/dist/request/classify.d.ts.map +1 -1
- package/dist/request/classify.js +19 -40
- package/dist/request/classify.js.map +1 -1
- package/dist/request/index.d.ts +1 -0
- package/dist/request/index.d.ts.map +1 -1
- package/dist/request/index.js +1 -0
- package/dist/request/index.js.map +1 -1
- package/dist/request/onboarding.d.ts.map +1 -1
- package/dist/request/onboarding.js +19 -27
- package/dist/request/onboarding.js.map +1 -1
- package/dist/request/parse.d.ts +5 -3
- package/dist/request/parse.d.ts.map +1 -1
- package/dist/request/parse.js +7 -6
- package/dist/request/parse.js.map +1 -1
- package/dist/request/processRequest.d.ts.map +1 -1
- package/dist/request/processRequest.js +2 -1
- package/dist/request/processRequest.js.map +1 -1
- package/dist/request/queryPredicates.d.ts +98 -0
- package/dist/request/queryPredicates.d.ts.map +1 -0
- package/dist/request/queryPredicates.js +107 -0
- package/dist/request/queryPredicates.js.map +1 -0
- package/dist/resourceLog/document.d.ts +39 -0
- package/dist/resourceLog/document.d.ts.map +1 -1
- package/dist/resourceLog/document.js +41 -0
- package/dist/resourceLog/document.js.map +1 -1
- package/dist/resourceLog/ladderRungs.d.ts.map +1 -1
- package/dist/resourceLog/ladderRungs.js +3 -2
- package/dist/resourceLog/ladderRungs.js.map +1 -1
- package/dist/sync/contactsConflict.d.ts.map +1 -1
- package/dist/sync/contactsConflict.js +8 -2
- package/dist/sync/contactsConflict.js.map +1 -1
- package/dist/sync/engine.d.ts +38 -23
- package/dist/sync/engine.d.ts.map +1 -1
- package/dist/sync/engine.js +36 -5
- package/dist/sync/engine.js.map +1 -1
- package/dist/sync/index.d.ts +9 -12
- package/dist/sync/index.d.ts.map +1 -1
- package/dist/sync/index.js +8 -11
- package/dist/sync/index.js.map +1 -1
- package/dist/sync/push.d.ts.map +1 -1
- package/dist/sync/push.js +1 -2
- package/dist/sync/push.js.map +1 -1
- package/dist/sync/remint.d.ts +0 -31
- package/dist/sync/remint.d.ts.map +1 -1
- package/dist/sync/remint.js +32 -1
- package/dist/sync/remint.js.map +1 -1
- package/dist/sync/types.d.ts +4 -41
- package/dist/sync/types.d.ts.map +1 -1
- package/dist/sync/types.js +4 -47
- package/dist/sync/types.js.map +1 -1
- package/dist/unlock/index.d.ts +1 -1
- package/dist/unlock/index.d.ts.map +1 -1
- package/dist/unlock/index.js +1 -1
- package/dist/unlock/index.js.map +1 -1
- package/dist/unlock/retire.d.ts +16 -56
- package/dist/unlock/retire.d.ts.map +1 -1
- package/dist/unlock/retire.js +7 -76
- package/dist/unlock/retire.js.map +1 -1
- package/dist/unlock/standingWebvh.d.ts +20 -40
- package/dist/unlock/standingWebvh.d.ts.map +1 -1
- package/dist/unlock/standingWebvh.js +35 -76
- package/dist/unlock/standingWebvh.js.map +1 -1
- package/dist/unlock/unlockRecord.d.ts.map +1 -1
- package/dist/unlock/unlockRecord.js +69 -44
- package/dist/unlock/unlockRecord.js.map +1 -1
- package/dist/webvh/accountEntry.d.ts +63 -7
- package/dist/webvh/accountEntry.d.ts.map +1 -1
- package/dist/webvh/accountEntry.js +110 -19
- package/dist/webvh/accountEntry.js.map +1 -1
- package/dist/webvh/delegatedLogStore.d.ts +18 -12
- package/dist/webvh/delegatedLogStore.d.ts.map +1 -1
- package/dist/webvh/delegatedLogStore.js +32 -11
- package/dist/webvh/delegatedLogStore.js.map +1 -1
- package/dist/webvh/didWebvh.d.ts +39 -23
- package/dist/webvh/didWebvh.d.ts.map +1 -1
- package/dist/webvh/didWebvh.js +63 -45
- package/dist/webvh/didWebvh.js.map +1 -1
- package/dist/webvh/enrollClient.d.ts.map +1 -1
- package/dist/webvh/enrollClient.js +19 -23
- package/dist/webvh/enrollClient.js.map +1 -1
- package/dist/webvh/index.d.ts +11 -7
- package/dist/webvh/index.d.ts.map +1 -1
- package/dist/webvh/index.js +9 -6
- package/dist/webvh/index.js.map +1 -1
- package/dist/webvh/listClients.d.ts.map +1 -1
- package/dist/webvh/listClients.js +102 -65
- package/dist/webvh/listClients.js.map +1 -1
- package/dist/webvh/mergeMethods.d.ts +84 -0
- package/dist/webvh/mergeMethods.d.ts.map +1 -0
- package/dist/webvh/mergeMethods.js +46 -0
- package/dist/webvh/mergeMethods.js.map +1 -0
- package/dist/webvh/revokeClient.d.ts +12 -2
- package/dist/webvh/revokeClient.d.ts.map +1 -1
- package/dist/webvh/revokeClient.js +126 -48
- package/dist/webvh/revokeClient.js.map +1 -1
- package/dist/webvh/verifyLog.d.ts +21 -0
- package/dist/webvh/verifyLog.d.ts.map +1 -1
- package/dist/webvh/verifyLog.js +36 -14
- package/dist/webvh/verifyLog.js.map +1 -1
- package/package.json +11 -11
|
@@ -36,6 +36,20 @@
|
|
|
36
36
|
* epoch names a non-current key generation -- so a mid-cascade crash strands
|
|
37
37
|
* nothing permanently and a naive full re-run finishes it (the login-time
|
|
38
38
|
* completion sweep is the standing backstop).
|
|
39
|
+
*
|
|
40
|
+
* The tail has two entry points over the same preamble and fan-out.
|
|
41
|
+
* `rotateRosterToDocumentAndCascade` is the document-converging one above,
|
|
42
|
+
* for a ceremony whose document edit has already landed.
|
|
43
|
+
* `retireRosterRecipientAndCascade` is the recipient-naming one: for a
|
|
44
|
+
* ceremony that must rotate BEFORE its own document edit -- the two forget
|
|
45
|
+
* ceremonies, where the forgetting client can sign nothing after its removal
|
|
46
|
+
* entry -- the document still lists the retiring recipient, so convergence
|
|
47
|
+
* would retire nothing, and the caller names the roster kid to retire
|
|
48
|
+
* instead. That entry point reads the fresh key back through a key the
|
|
49
|
+
* caller names (the standing credential's, whose wrap survives the rotation)
|
|
50
|
+
* and runs no seal backstop: with the document edit still ahead, there is no
|
|
51
|
+
* removal to seal against, and on the last-client transition the rotation
|
|
52
|
+
* itself is the one ladder-signed append its anchor licenses.
|
|
39
53
|
*/
|
|
40
54
|
import type { DIDDoc, DIDLog } from '@interop/did-method-webvh';
|
|
41
55
|
import type { IKeyAgreementKey } from '@interop/data-integrity-core';
|
|
@@ -68,8 +82,11 @@ export interface CascadeCollections {
|
|
|
68
82
|
isEncrypted?: (collectionId: string) => Promise<boolean>;
|
|
69
83
|
}
|
|
70
84
|
/**
|
|
71
|
-
* What the shared tail reports: whether the roster
|
|
72
|
-
*
|
|
85
|
+
* What the shared tail reports: whether the roster rotated on this run -- a
|
|
86
|
+
* re-run of an already-complete ceremony reports `false`; the
|
|
87
|
+
* document-converging entry point reads it off the adopting read, so a
|
|
88
|
+
* caller holding no cached key sees `true` on its first read either way,
|
|
89
|
+
* while the recipient-retiring one reports whether THIS call appended -- the roster's
|
|
73
90
|
* seal-backstop report (present when the roster store is sealable and the
|
|
74
91
|
* roster stage ran), the per-collection fan-out result, and the rotated key
|
|
75
92
|
* with the roster descriptor it was read from.
|
|
@@ -81,6 +98,41 @@ export interface RosterCascadeResult {
|
|
|
81
98
|
userKey?: UserKey;
|
|
82
99
|
rosterDescriptor?: CollectionEncryption;
|
|
83
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* The post-edit anchoring guarantee, shared by both entry points: the roster
|
|
103
|
+
* appends -- and the seal backstop's removal detection -- must run under a
|
|
104
|
+
* controller view that includes the log the ceremony is anchoring at, or the
|
|
105
|
+
* rotation anchors before it (a revocation's rotation leaves the log
|
|
106
|
+
* unsealed with the seal blind to the removal; the last-client transition's
|
|
107
|
+
* ladder-signed rotation lands before its reinstall version and the
|
|
108
|
+
* ceremony-tail license refuses it). Rather than leaving that to the
|
|
109
|
+
* injected store's own controller wiring, the view built from the ceremony's
|
|
110
|
+
* log is set as the store's minimum controller version; a fresher resolved
|
|
111
|
+
* view still wins. A store that is not log-governed has no controller view
|
|
112
|
+
* to anchor and is left alone. Exported for the one caller that reads the
|
|
113
|
+
* roster before its anchoring entry exists (the last-client transition's
|
|
114
|
+
* pre-pair probe, anchored at the pre-transition head it verified).
|
|
115
|
+
*
|
|
116
|
+
* @param options {object}
|
|
117
|
+
* @param options.rosterStore {EncryptionDescriptorStore}
|
|
118
|
+
* @param options.did {string}
|
|
119
|
+
* @param options.log {DIDLog}
|
|
120
|
+
*/
|
|
121
|
+
export declare function anchorRosterStoreAt({ rosterStore, did, log }: {
|
|
122
|
+
rosterStore: EncryptionDescriptorStore;
|
|
123
|
+
did: string;
|
|
124
|
+
log: DIDLog;
|
|
125
|
+
}): void;
|
|
126
|
+
/**
|
|
127
|
+
* Persists a rotated key: called with `{ userKey, latestEpochId, descriptor }`
|
|
128
|
+
* after the roster read and BEFORE the fan-out. The key and the epoch pin
|
|
129
|
+
* must persist atomically.
|
|
130
|
+
*/
|
|
131
|
+
export type UserKeyAdoptedHook = (adopted: {
|
|
132
|
+
userKey: UserKey;
|
|
133
|
+
latestEpochId: string;
|
|
134
|
+
descriptor: CollectionEncryption;
|
|
135
|
+
}) => Promise<void>;
|
|
84
136
|
/**
|
|
85
137
|
* Runs the roster rotation (with its seal backstop) and the collection
|
|
86
138
|
* fan-out over the document a ceremony's own edit just published. See the
|
|
@@ -98,9 +150,8 @@ export interface RosterCascadeResult {
|
|
|
98
150
|
* (identity) key-agreement key -- its roster entry
|
|
99
151
|
* @param [options.pinnedEpochId] {string} the locally pinned latest-seen
|
|
100
152
|
* roster epoch
|
|
101
|
-
* @param [options.onUserKeyAdopted] {
|
|
102
|
-
*
|
|
103
|
-
* and BEFORE the fan-out. The key and the epoch pin must persist atomically
|
|
153
|
+
* @param [options.onUserKeyAdopted] {UserKeyAdoptedHook} persists a
|
|
154
|
+
* rotated key
|
|
104
155
|
* @param options.collections {CascadeCollections} the fan-out's work
|
|
105
156
|
* @returns {Promise<RosterCascadeResult>}
|
|
106
157
|
*/
|
|
@@ -112,11 +163,60 @@ export declare function rotateRosterToDocumentAndCascade({ rosterStore, did, doc
|
|
|
112
163
|
userKey?: UserKey;
|
|
113
164
|
clientKeyAgreementKey: IKeyAgreementKey;
|
|
114
165
|
pinnedEpochId?: string | null;
|
|
115
|
-
onUserKeyAdopted?:
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
166
|
+
onUserKeyAdopted?: UserKeyAdoptedHook;
|
|
167
|
+
collections: CascadeCollections;
|
|
168
|
+
}): Promise<RosterCascadeResult>;
|
|
169
|
+
/**
|
|
170
|
+
* The recipient-naming entry point: retires ONE named roster recipient and
|
|
171
|
+
* runs the collection fan-out, for a ceremony that rotates BEFORE its own
|
|
172
|
+
* document edit (see the module doc). The document handed in still keys the
|
|
173
|
+
* retiring recipient, so the rotation names its kid explicitly; the fresh key
|
|
174
|
+
* is read back through `readBackKeyAgreementKey`, a recipient whose wrap
|
|
175
|
+
* survives the rotation (the standing credential's, on both forgets). No
|
|
176
|
+
* seal backstop runs here.
|
|
177
|
+
*
|
|
178
|
+
* Every stage detects its own completion from durable state: a recipient the
|
|
179
|
+
* current epoch no longer wraps to skips the append (so a re-run of a
|
|
180
|
+
* torn-after-rotation ceremony attempts no second append at the same anchor,
|
|
181
|
+
* which on a ladder-signed roster the one-shot license would refuse), the
|
|
182
|
+
* read-back adopts whatever the roster now delivers, and the fan-out is
|
|
183
|
+
* staleness-driven. An account with no roster yet reports `rotated: false`
|
|
184
|
+
* with an empty fan-out and no key.
|
|
185
|
+
*
|
|
186
|
+
* @param options {object}
|
|
187
|
+
* @param options.rosterStore {EncryptionDescriptorStore} the
|
|
188
|
+
* `key-map/user-key.jsonl` roster store
|
|
189
|
+
* @param options.did {string} the account's did:webvh
|
|
190
|
+
* @param options.doc {DIDDoc} the document the rotation's recipients are
|
|
191
|
+
* resolved from -- the one `log` resolves to
|
|
192
|
+
* @param options.log {DIDLog} the log the rotation anchors at, which the
|
|
193
|
+
* minimum controller version is built from: the pre-edit head for a plain
|
|
194
|
+
* forget, the post-reinstall head for the last-client transition
|
|
195
|
+
* @param options.retireRecipientId {string} the roster kid to retire
|
|
196
|
+
* @param [options.userKey] {UserKey} this client's cached user key
|
|
197
|
+
* @param options.readBackKeyAgreementKey {IKeyAgreementKey} the recipient
|
|
198
|
+
* whose wrap survives the rotation, reading the fresh key back and
|
|
199
|
+
* unwrapping the generations for the fan-out
|
|
200
|
+
* @param [options.pinnedEpochId] {string} the locally pinned latest-seen
|
|
201
|
+
* roster epoch
|
|
202
|
+
* @param [options.onUserKeyAdopted] {UserKeyAdoptedHook} persists a
|
|
203
|
+
* rotated key
|
|
204
|
+
* @param options.collections {CascadeCollections} the fan-out's work
|
|
205
|
+
* @returns {Promise<RosterCascadeResult>} `rotated` says whether THIS run
|
|
206
|
+
* retired the recipient's wrap; `rosterSeal` is never present
|
|
207
|
+
* @throws {UserKeyRosterIntegrityError} the roster's `currentEpoch` names
|
|
208
|
+
* no epoch in its own list
|
|
209
|
+
*/
|
|
210
|
+
export declare function retireRosterRecipientAndCascade({ rosterStore, did, doc, log, retireRecipientId, userKey, readBackKeyAgreementKey, pinnedEpochId, onUserKeyAdopted, collections }: {
|
|
211
|
+
rosterStore: EncryptionDescriptorStore;
|
|
212
|
+
did: string;
|
|
213
|
+
doc: DIDDoc;
|
|
214
|
+
log: DIDLog;
|
|
215
|
+
retireRecipientId: string;
|
|
216
|
+
userKey?: UserKey;
|
|
217
|
+
readBackKeyAgreementKey: IKeyAgreementKey;
|
|
218
|
+
pinnedEpochId?: string | null;
|
|
219
|
+
onUserKeyAdopted?: UserKeyAdoptedHook;
|
|
120
220
|
collections: CascadeCollections;
|
|
121
221
|
}): Promise<RosterCascadeResult>;
|
|
122
222
|
//# sourceMappingURL=userKeyRosterCascade.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userKeyRosterCascade.d.ts","sourceRoot":"","sources":["../../src/keys/userKeyRosterCascade.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"userKeyRosterCascade.d.ts","sourceRoot":"","sources":["../../src/keys/userKeyRosterCascade.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;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AAW,EAAE,kBAAkB,CAAA;CAChC,GAAG,OAAO,CAAC,mBAAmB,CAAC,CA2C/B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { webvhResourceLogController } from '../resourceLog/index.js';
|
|
2
2
|
import { cascadeCollectionsToUserKey } from './userKeyCascade.js';
|
|
3
3
|
import { isSealableDescriptorStore } from './rosterLogStore.js';
|
|
4
|
-
import { convergeUserKeyRosterToDocument, readUserKeyRoster } from './userKeyRoster.js';
|
|
4
|
+
import { convergeUserKeyRosterToDocument, readUserKeyRoster, rosterWrapsRecipient, rotateUserKeyRoster } from './userKeyRoster.js';
|
|
5
5
|
/**
|
|
6
6
|
* Resolves the collection ids the fan-out covers, whether they are a fixed set
|
|
7
7
|
* or a listing the app performs.
|
|
@@ -16,6 +16,94 @@ async function collectionIdsOf({ collections }) {
|
|
|
16
16
|
? await collectionIds()
|
|
17
17
|
: collectionIds;
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* The post-edit anchoring guarantee, shared by both entry points: the roster
|
|
21
|
+
* appends -- and the seal backstop's removal detection -- must run under a
|
|
22
|
+
* controller view that includes the log the ceremony is anchoring at, or the
|
|
23
|
+
* rotation anchors before it (a revocation's rotation leaves the log
|
|
24
|
+
* unsealed with the seal blind to the removal; the last-client transition's
|
|
25
|
+
* ladder-signed rotation lands before its reinstall version and the
|
|
26
|
+
* ceremony-tail license refuses it). Rather than leaving that to the
|
|
27
|
+
* injected store's own controller wiring, the view built from the ceremony's
|
|
28
|
+
* log is set as the store's minimum controller version; a fresher resolved
|
|
29
|
+
* view still wins. A store that is not log-governed has no controller view
|
|
30
|
+
* to anchor and is left alone. Exported for the one caller that reads the
|
|
31
|
+
* roster before its anchoring entry exists (the last-client transition's
|
|
32
|
+
* pre-pair probe, anchored at the pre-transition head it verified).
|
|
33
|
+
*
|
|
34
|
+
* @param options {object}
|
|
35
|
+
* @param options.rosterStore {EncryptionDescriptorStore}
|
|
36
|
+
* @param options.did {string}
|
|
37
|
+
* @param options.log {DIDLog}
|
|
38
|
+
*/
|
|
39
|
+
export function anchorRosterStoreAt({ rosterStore, did, log }) {
|
|
40
|
+
if (isSealableDescriptorStore(rosterStore)) {
|
|
41
|
+
rosterStore.setMinimumControllerVersion({
|
|
42
|
+
controller: webvhResourceLogController({ did, log })
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The adopting read after a rotation: the roster read on the threaded
|
|
48
|
+
* descriptor (the continuity and possession checks still run on it), then
|
|
49
|
+
* the caller's `onUserKeyAdopted` when the key rotated on this run.
|
|
50
|
+
*
|
|
51
|
+
* @param options {object}
|
|
52
|
+
* @param options.rosterStore {EncryptionDescriptorStore}
|
|
53
|
+
* @param options.descriptor {CollectionEncryption} the rotation's own
|
|
54
|
+
* verified result, so one run acquires the roster once for both halves
|
|
55
|
+
* @param [options.userKey] {UserKey}
|
|
56
|
+
* @param options.readBackKeyAgreementKey {IKeyAgreementKey}
|
|
57
|
+
* @param [options.pinnedEpochId] {string}
|
|
58
|
+
* @param [options.onUserKeyAdopted] {Function}
|
|
59
|
+
* @returns {Promise<object>}
|
|
60
|
+
*/
|
|
61
|
+
async function adoptRotatedUserKey({ rosterStore, descriptor, userKey, readBackKeyAgreementKey, pinnedEpochId, onUserKeyAdopted }) {
|
|
62
|
+
const read = await readUserKeyRoster({
|
|
63
|
+
store: rosterStore,
|
|
64
|
+
descriptor,
|
|
65
|
+
...(userKey ? { userKey } : {}),
|
|
66
|
+
clientKeyAgreementKey: readBackKeyAgreementKey,
|
|
67
|
+
pinnedEpochId
|
|
68
|
+
});
|
|
69
|
+
if (read.rotated) {
|
|
70
|
+
await onUserKeyAdopted?.({
|
|
71
|
+
userKey: read.userKey,
|
|
72
|
+
latestEpochId: read.latestEpochId,
|
|
73
|
+
descriptor: read.descriptor
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
rotated: read.rotated,
|
|
78
|
+
userKey: read.userKey,
|
|
79
|
+
descriptor: read.descriptor
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The collection fan-out, in parallel -- run even when the roster was found
|
|
84
|
+
* already rotated (a re-run after a crash), because the staleness rule finds
|
|
85
|
+
* exactly the stranded collections.
|
|
86
|
+
*
|
|
87
|
+
* @param options {object}
|
|
88
|
+
* @param options.collections {CascadeCollections}
|
|
89
|
+
* @param options.rosterDescriptor {CollectionEncryption}
|
|
90
|
+
* @param options.clientKeyAgreementKey {IKeyAgreementKey} the key that
|
|
91
|
+
* unwraps the roster's generations for the per-collection re-epoch
|
|
92
|
+
* @param options.userKey {UserKey}
|
|
93
|
+
* @returns {Promise<UserKeyCascadeResult>}
|
|
94
|
+
*/
|
|
95
|
+
async function fanOutToCollections({ collections, rosterDescriptor, clientKeyAgreementKey, userKey }) {
|
|
96
|
+
return cascadeCollectionsToUserKey({
|
|
97
|
+
collectionIds: await collectionIdsOf({ collections }),
|
|
98
|
+
storeFor: collections.storeFor,
|
|
99
|
+
...(collections.isEncrypted
|
|
100
|
+
? { isEncrypted: collections.isEncrypted }
|
|
101
|
+
: {}),
|
|
102
|
+
rosterDescriptor,
|
|
103
|
+
clientKeyAgreementKey,
|
|
104
|
+
userKey
|
|
105
|
+
});
|
|
106
|
+
}
|
|
19
107
|
/**
|
|
20
108
|
* Runs the roster rotation (with its seal backstop) and the collection
|
|
21
109
|
* fan-out over the document a ceremony's own edit just published. See the
|
|
@@ -33,25 +121,13 @@ async function collectionIdsOf({ collections }) {
|
|
|
33
121
|
* (identity) key-agreement key -- its roster entry
|
|
34
122
|
* @param [options.pinnedEpochId] {string} the locally pinned latest-seen
|
|
35
123
|
* roster epoch
|
|
36
|
-
* @param [options.onUserKeyAdopted] {
|
|
37
|
-
*
|
|
38
|
-
* and BEFORE the fan-out. The key and the epoch pin must persist atomically
|
|
124
|
+
* @param [options.onUserKeyAdopted] {UserKeyAdoptedHook} persists a
|
|
125
|
+
* rotated key
|
|
39
126
|
* @param options.collections {CascadeCollections} the fan-out's work
|
|
40
127
|
* @returns {Promise<RosterCascadeResult>}
|
|
41
128
|
*/
|
|
42
129
|
export async function rotateRosterToDocumentAndCascade({ rosterStore, did, doc, log, userKey, clientKeyAgreementKey, pinnedEpochId, onUserKeyAdopted, collections }) {
|
|
43
|
-
|
|
44
|
-
// backstop's removal detection -- must run under a controller view that
|
|
45
|
-
// includes the edit the ceremony just published, or the rotation anchors
|
|
46
|
-
// pre-edit and the log stays unsealed with the seal blind to the removal.
|
|
47
|
-
// Rather than leaving that to the injected store's own controller wiring,
|
|
48
|
-
// the view built from the edit's post-edit log is set as the store's minimum
|
|
49
|
-
// controller version; a fresher resolved view still wins.
|
|
50
|
-
if (isSealableDescriptorStore(rosterStore)) {
|
|
51
|
-
rosterStore.setMinimumControllerVersion({
|
|
52
|
-
controller: webvhResourceLogController({ did, log })
|
|
53
|
-
});
|
|
54
|
-
}
|
|
130
|
+
anchorRosterStoreAt({ rosterStore, did, log });
|
|
55
131
|
// The roster rotation, recipients resolved from that same document.
|
|
56
132
|
// Whether there IS a roster is settled BY the convergence call itself: a
|
|
57
133
|
// `null` descriptor back means the account has no `key-map/user-key.jsonl`
|
|
@@ -70,23 +146,14 @@ export async function rotateRosterToDocumentAndCascade({ rosterStore, did, doc,
|
|
|
70
146
|
if (converged.descriptor === null) {
|
|
71
147
|
return { rotated: false, collections: { outcomes: {}, failed: [] } };
|
|
72
148
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
// continuity and possession checks still run on the threaded descriptor).
|
|
76
|
-
const read = await readUserKeyRoster({
|
|
77
|
-
store: rosterStore,
|
|
149
|
+
const read = await adoptRotatedUserKey({
|
|
150
|
+
rosterStore,
|
|
78
151
|
descriptor: converged.descriptor,
|
|
79
|
-
|
|
80
|
-
clientKeyAgreementKey,
|
|
81
|
-
pinnedEpochId
|
|
152
|
+
userKey,
|
|
153
|
+
readBackKeyAgreementKey: clientKeyAgreementKey,
|
|
154
|
+
pinnedEpochId,
|
|
155
|
+
onUserKeyAdopted
|
|
82
156
|
});
|
|
83
|
-
if (read.rotated) {
|
|
84
|
-
await onUserKeyAdopted?.({
|
|
85
|
-
userKey: read.userKey,
|
|
86
|
-
latestEpochId: read.latestEpochId,
|
|
87
|
-
descriptor: read.descriptor
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
157
|
// The seal backstop: an ordinary rotation is the sealing append by
|
|
91
158
|
// construction, but a rotation that no-op'd (the removed party held no
|
|
92
159
|
// current-epoch wrap -- an orphan entry, or any re-run) appended nothing,
|
|
@@ -102,15 +169,8 @@ export async function rotateRosterToDocumentAndCascade({ rosterStore, did, doc,
|
|
|
102
169
|
rosterSeal = { outcome: 'failed', error: err };
|
|
103
170
|
}
|
|
104
171
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
// rule finds exactly the stranded collections.
|
|
108
|
-
const cascade = await cascadeCollectionsToUserKey({
|
|
109
|
-
collectionIds: await collectionIdsOf({ collections }),
|
|
110
|
-
storeFor: collections.storeFor,
|
|
111
|
-
...(collections.isEncrypted
|
|
112
|
-
? { isEncrypted: collections.isEncrypted }
|
|
113
|
-
: {}),
|
|
172
|
+
const cascade = await fanOutToCollections({
|
|
173
|
+
collections,
|
|
114
174
|
rosterDescriptor: read.descriptor,
|
|
115
175
|
clientKeyAgreementKey,
|
|
116
176
|
userKey: read.userKey
|
|
@@ -123,4 +183,88 @@ export async function rotateRosterToDocumentAndCascade({ rosterStore, did, doc,
|
|
|
123
183
|
rosterDescriptor: read.descriptor
|
|
124
184
|
};
|
|
125
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* The recipient-naming entry point: retires ONE named roster recipient and
|
|
188
|
+
* runs the collection fan-out, for a ceremony that rotates BEFORE its own
|
|
189
|
+
* document edit (see the module doc). The document handed in still keys the
|
|
190
|
+
* retiring recipient, so the rotation names its kid explicitly; the fresh key
|
|
191
|
+
* is read back through `readBackKeyAgreementKey`, a recipient whose wrap
|
|
192
|
+
* survives the rotation (the standing credential's, on both forgets). No
|
|
193
|
+
* seal backstop runs here.
|
|
194
|
+
*
|
|
195
|
+
* Every stage detects its own completion from durable state: a recipient the
|
|
196
|
+
* current epoch no longer wraps to skips the append (so a re-run of a
|
|
197
|
+
* torn-after-rotation ceremony attempts no second append at the same anchor,
|
|
198
|
+
* which on a ladder-signed roster the one-shot license would refuse), the
|
|
199
|
+
* read-back adopts whatever the roster now delivers, and the fan-out is
|
|
200
|
+
* staleness-driven. An account with no roster yet reports `rotated: false`
|
|
201
|
+
* with an empty fan-out and no key.
|
|
202
|
+
*
|
|
203
|
+
* @param options {object}
|
|
204
|
+
* @param options.rosterStore {EncryptionDescriptorStore} the
|
|
205
|
+
* `key-map/user-key.jsonl` roster store
|
|
206
|
+
* @param options.did {string} the account's did:webvh
|
|
207
|
+
* @param options.doc {DIDDoc} the document the rotation's recipients are
|
|
208
|
+
* resolved from -- the one `log` resolves to
|
|
209
|
+
* @param options.log {DIDLog} the log the rotation anchors at, which the
|
|
210
|
+
* minimum controller version is built from: the pre-edit head for a plain
|
|
211
|
+
* forget, the post-reinstall head for the last-client transition
|
|
212
|
+
* @param options.retireRecipientId {string} the roster kid to retire
|
|
213
|
+
* @param [options.userKey] {UserKey} this client's cached user key
|
|
214
|
+
* @param options.readBackKeyAgreementKey {IKeyAgreementKey} the recipient
|
|
215
|
+
* whose wrap survives the rotation, reading the fresh key back and
|
|
216
|
+
* unwrapping the generations for the fan-out
|
|
217
|
+
* @param [options.pinnedEpochId] {string} the locally pinned latest-seen
|
|
218
|
+
* roster epoch
|
|
219
|
+
* @param [options.onUserKeyAdopted] {UserKeyAdoptedHook} persists a
|
|
220
|
+
* rotated key
|
|
221
|
+
* @param options.collections {CascadeCollections} the fan-out's work
|
|
222
|
+
* @returns {Promise<RosterCascadeResult>} `rotated` says whether THIS run
|
|
223
|
+
* retired the recipient's wrap; `rosterSeal` is never present
|
|
224
|
+
* @throws {UserKeyRosterIntegrityError} the roster's `currentEpoch` names
|
|
225
|
+
* no epoch in its own list
|
|
226
|
+
*/
|
|
227
|
+
export async function retireRosterRecipientAndCascade({ rosterStore, did, doc, log, retireRecipientId, userKey, readBackKeyAgreementKey, pinnedEpochId, onUserKeyAdopted, collections }) {
|
|
228
|
+
anchorRosterStoreAt({ rosterStore, did, log });
|
|
229
|
+
const current = await rosterStore.read();
|
|
230
|
+
if (current === null) {
|
|
231
|
+
return { rotated: false, collections: { outcomes: {}, failed: [] } };
|
|
232
|
+
}
|
|
233
|
+
let descriptor = current.descriptor;
|
|
234
|
+
let rotated = false;
|
|
235
|
+
if (rosterWrapsRecipient({ descriptor, recipientId: retireRecipientId })) {
|
|
236
|
+
// Seeded from the read above, so the roster is acquired once: the
|
|
237
|
+
// rotation's verified head, its license check, and its minimum-controller
|
|
238
|
+
// anchoring all run over that one read.
|
|
239
|
+
descriptor = await rotateUserKeyRoster({
|
|
240
|
+
store: rosterStore,
|
|
241
|
+
document: doc,
|
|
242
|
+
retireRecipientId,
|
|
243
|
+
current
|
|
244
|
+
});
|
|
245
|
+
rotated = true;
|
|
246
|
+
}
|
|
247
|
+
// The fresh key comes back through the surviving recipient's wrap -- the
|
|
248
|
+
// retired one is gone from the current epoch.
|
|
249
|
+
const read = await adoptRotatedUserKey({
|
|
250
|
+
rosterStore,
|
|
251
|
+
descriptor,
|
|
252
|
+
userKey,
|
|
253
|
+
readBackKeyAgreementKey,
|
|
254
|
+
pinnedEpochId,
|
|
255
|
+
onUserKeyAdopted
|
|
256
|
+
});
|
|
257
|
+
const cascade = await fanOutToCollections({
|
|
258
|
+
collections,
|
|
259
|
+
rosterDescriptor: read.descriptor,
|
|
260
|
+
clientKeyAgreementKey: readBackKeyAgreementKey,
|
|
261
|
+
userKey: read.userKey
|
|
262
|
+
});
|
|
263
|
+
return {
|
|
264
|
+
rotated,
|
|
265
|
+
collections: cascade,
|
|
266
|
+
userKey: read.userKey,
|
|
267
|
+
rosterDescriptor: read.descriptor
|
|
268
|
+
};
|
|
269
|
+
}
|
|
126
270
|
//# sourceMappingURL=userKeyRosterCascade.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userKeyRosterCascade.js","sourceRoot":"","sources":["../../src/keys/userKeyRosterCascade.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"userKeyRosterCascade.js","sourceRoot":"","sources":["../../src/keys/userKeyRosterCascade.ts"],"names":[],"mappings":"AAyDA,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,EACL,2BAA2B,EAE5B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,EACL,+BAA+B,EAC/B,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,oBAAoB,CAAA;AA+C3B;;;;;;;GAOG;AACH,KAAK,UAAU,eAAe,CAAC,EAC7B,WAAW,EAGZ;IACC,MAAM,EAAE,aAAa,EAAE,GAAG,WAAW,CAAA;IACrC,OAAO,OAAO,aAAa,KAAK,UAAU;QACxC,CAAC,CAAC,MAAM,aAAa,EAAE;QACvB,CAAC,CAAC,aAAa,CAAA;AACnB,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAClC,WAAW,EACX,GAAG,EACH,GAAG,EAKJ;IACC,IAAI,yBAAyB,CAAC,WAAW,CAAC,EAAE,CAAC;QAC3C,WAAW,CAAC,2BAA2B,CAAC;YACtC,UAAU,EAAE,0BAA0B,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;SACrD,CAAC,CAAA;IACJ,CAAC;AACH,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,KAAK,UAAU,mBAAmB,CAAC,EACjC,WAAW,EACX,UAAU,EACV,OAAO,EACP,uBAAuB,EACvB,aAAa,EACb,gBAAgB,EAQjB;IAKC,MAAM,IAAI,GAAG,MAAM,iBAAiB,CAAC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