@interop/wallet-core 0.62.0 → 0.66.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 +41 -16
- package/dist/clientAnnex/credentialAnchoredGenesis.d.ts +46 -26
- package/dist/clientAnnex/credentialAnchoredGenesis.d.ts.map +1 -1
- package/dist/clientAnnex/credentialAnchoredGenesis.js +91 -39
- package/dist/clientAnnex/credentialAnchoredGenesis.js.map +1 -1
- package/dist/clientAnnex/establish.d.ts +119 -35
- package/dist/clientAnnex/establish.d.ts.map +1 -1
- package/dist/clientAnnex/establish.js +227 -160
- package/dist/clientAnnex/establish.js.map +1 -1
- package/dist/clientAnnex/forget.d.ts +18 -8
- package/dist/clientAnnex/forget.d.ts.map +1 -1
- package/dist/clientAnnex/forget.js +37 -64
- package/dist/clientAnnex/forget.js.map +1 -1
- package/dist/clientAnnex/forgetLast.d.ts +85 -38
- package/dist/clientAnnex/forgetLast.d.ts.map +1 -1
- package/dist/clientAnnex/forgetLast.js +155 -98
- package/dist/clientAnnex/forgetLast.js.map +1 -1
- package/dist/clientAnnex/gc.d.ts +3 -2
- package/dist/clientAnnex/gc.d.ts.map +1 -1
- package/dist/clientAnnex/gc.js +16 -7
- package/dist/clientAnnex/gc.js.map +1 -1
- package/dist/clientAnnex/heal.d.ts +65 -14
- package/dist/clientAnnex/heal.d.ts.map +1 -1
- package/dist/clientAnnex/heal.js +397 -298
- package/dist/clientAnnex/heal.js.map +1 -1
- package/dist/clientAnnex/index.d.ts +23 -7
- package/dist/clientAnnex/index.d.ts.map +1 -1
- package/dist/clientAnnex/index.js +26 -7
- package/dist/clientAnnex/index.js.map +1 -1
- package/dist/clientAnnex/ladder.d.ts +58 -0
- package/dist/clientAnnex/ladder.d.ts.map +1 -1
- package/dist/clientAnnex/ladder.js +249 -41
- package/dist/clientAnnex/ladder.js.map +1 -1
- package/dist/clientAnnex/ladderAnchored.d.ts +148 -22
- package/dist/clientAnnex/ladderAnchored.d.ts.map +1 -1
- package/dist/clientAnnex/ladderAnchored.js +391 -346
- package/dist/clientAnnex/ladderAnchored.js.map +1 -1
- package/dist/clientAnnex/log.d.ts +237 -53
- package/dist/clientAnnex/log.d.ts.map +1 -1
- package/dist/clientAnnex/log.js +533 -198
- package/dist/clientAnnex/log.js.map +1 -1
- package/dist/clientAnnex/mend.d.ts +12 -6
- package/dist/clientAnnex/mend.d.ts.map +1 -1
- package/dist/clientAnnex/mend.js +44 -72
- package/dist/clientAnnex/mend.js.map +1 -1
- package/dist/clientAnnex/recoveryLadderAnchored.d.ts +6 -4
- package/dist/clientAnnex/recoveryLadderAnchored.d.ts.map +1 -1
- package/dist/clientAnnex/recoveryLadderAnchored.js +56 -35
- package/dist/clientAnnex/recoveryLadderAnchored.js.map +1 -1
- package/dist/clientAnnex/spaceCapability.d.ts +123 -0
- package/dist/clientAnnex/spaceCapability.d.ts.map +1 -0
- package/dist/clientAnnex/spaceCapability.js +152 -0
- package/dist/clientAnnex/spaceCapability.js.map +1 -0
- package/dist/clientAnnex/stages.d.ts +63 -0
- package/dist/clientAnnex/stages.d.ts.map +1 -0
- package/dist/clientAnnex/stages.js +64 -0
- package/dist/clientAnnex/stages.js.map +1 -0
- package/dist/clientAnnex/zcap.d.ts +1 -1
- package/dist/clientAnnex/zcap.d.ts.map +1 -1
- package/dist/clientAnnex/zcap.js +42 -35
- package/dist/clientAnnex/zcap.js.map +1 -1
- package/dist/clients/policy.d.ts +15 -1
- package/dist/clients/policy.d.ts.map +1 -1
- package/dist/clients/policy.js +12 -6
- package/dist/clients/policy.js.map +1 -1
- package/dist/clients/revocation.d.ts +18 -10
- package/dist/clients/revocation.d.ts.map +1 -1
- package/dist/clients/revocation.js +13 -5
- package/dist/clients/revocation.js.map +1 -1
- package/dist/clients/rosterPolicy.d.ts +10 -2
- package/dist/clients/rosterPolicy.d.ts.map +1 -1
- package/dist/clients/rosterPolicy.js +41 -24
- package/dist/clients/rosterPolicy.js.map +1 -1
- package/dist/descriptors/acquire.d.ts.map +1 -1
- package/dist/descriptors/acquire.js +6 -23
- package/dist/descriptors/acquire.js.map +1 -1
- package/dist/descriptors/cipher.d.ts.map +1 -1
- package/dist/descriptors/cipher.js +5 -0
- package/dist/descriptors/cipher.js.map +1 -1
- package/dist/descriptors/errors.d.ts +43 -0
- package/dist/descriptors/errors.d.ts.map +1 -0
- package/dist/descriptors/errors.js +45 -0
- package/dist/descriptors/errors.js.map +1 -0
- package/dist/descriptors/index.d.ts +5 -0
- package/dist/descriptors/index.d.ts.map +1 -1
- package/dist/descriptors/index.js +5 -0
- package/dist/descriptors/index.js.map +1 -1
- package/dist/enrollment/enrollment.d.ts +37 -10
- package/dist/enrollment/enrollment.d.ts.map +1 -1
- package/dist/enrollment/enrollment.js +52 -15
- package/dist/enrollment/enrollment.js.map +1 -1
- package/dist/genesis/accountGenesis.d.ts +42 -11
- package/dist/genesis/accountGenesis.d.ts.map +1 -1
- package/dist/genesis/accountGenesis.js +80 -22
- package/dist/genesis/accountGenesis.js.map +1 -1
- package/dist/genesis/index.d.ts +3 -1
- package/dist/genesis/index.d.ts.map +1 -1
- package/dist/genesis/index.js +3 -1
- package/dist/genesis/index.js.map +1 -1
- package/dist/identity/agents.d.ts +17 -1
- package/dist/identity/agents.d.ts.map +1 -1
- package/dist/identity/agents.js +23 -7
- package/dist/identity/agents.js.map +1 -1
- package/dist/identity/index.d.ts +3 -1
- package/dist/identity/index.d.ts.map +1 -1
- package/dist/identity/index.js +3 -1
- package/dist/identity/index.js.map +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/keyring/index.d.ts +2 -1
- package/dist/keyring/index.d.ts.map +1 -1
- package/dist/keyring/index.js +2 -1
- package/dist/keyring/index.js.map +1 -1
- package/dist/keyring/record.d.ts.map +1 -1
- package/dist/keyring/record.js +3 -6
- package/dist/keyring/record.js.map +1 -1
- package/dist/keyring/unlockSpace.d.ts +14 -5
- package/dist/keyring/unlockSpace.d.ts.map +1 -1
- package/dist/keyring/unlockSpace.js +31 -36
- package/dist/keyring/unlockSpace.js.map +1 -1
- package/dist/keys/index.d.ts +22 -8
- package/dist/keys/index.d.ts.map +1 -1
- package/dist/keys/index.js +20 -6
- package/dist/keys/index.js.map +1 -1
- package/dist/keys/rosterLogStore.d.ts +15 -12
- package/dist/keys/rosterLogStore.d.ts.map +1 -1
- package/dist/keys/rosterLogStore.js +21 -16
- package/dist/keys/rosterLogStore.js.map +1 -1
- package/dist/keys/rosterStore.d.ts +3 -6
- package/dist/keys/rosterStore.d.ts.map +1 -1
- package/dist/keys/rosterStore.js +10 -9
- package/dist/keys/rosterStore.js.map +1 -1
- package/dist/keys/spaceEpochs.d.ts.map +1 -1
- package/dist/keys/spaceEpochs.js +2 -3
- 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 +95 -8
- package/dist/keys/userKeyRoster.d.ts.map +1 -1
- package/dist/keys/userKeyRoster.js +278 -35
- package/dist/keys/userKeyRoster.js.map +1 -1
- package/dist/keys/userKeyRosterCascade.d.ts +117 -16
- package/dist/keys/userKeyRosterCascade.d.ts.map +1 -1
- package/dist/keys/userKeyRosterCascade.js +184 -43
- package/dist/keys/userKeyRosterCascade.js.map +1 -1
- package/dist/keys/wasLabelsStore.d.ts +9 -2
- package/dist/keys/wasLabelsStore.d.ts.map +1 -1
- package/dist/keys/wasLabelsStore.js +14 -6
- package/dist/keys/wasLabelsStore.js.map +1 -1
- package/dist/log.d.ts +7 -2
- package/dist/log.d.ts.map +1 -1
- package/dist/log.js +6 -1
- package/dist/log.js.map +1 -1
- package/dist/recovery/index.d.ts +13 -9
- package/dist/recovery/index.d.ts.map +1 -1
- package/dist/recovery/index.js +12 -8
- package/dist/recovery/index.js.map +1 -1
- package/dist/recovery/recoveryCode.d.ts +27 -7
- package/dist/recovery/recoveryCode.d.ts.map +1 -1
- package/dist/recovery/recoveryCode.js +18 -6
- package/dist/recovery/recoveryCode.js.map +1 -1
- package/dist/recovery/recoveryDelegation.d.ts +23 -0
- package/dist/recovery/recoveryDelegation.d.ts.map +1 -1
- package/dist/recovery/recoveryDelegation.js +66 -46
- package/dist/recovery/recoveryDelegation.js.map +1 -1
- package/dist/recovery/recoveryWebvh.d.ts +75 -63
- package/dist/recovery/recoveryWebvh.d.ts.map +1 -1
- package/dist/recovery/recoveryWebvh.js +127 -116
- 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 +32 -8
- package/dist/request/classify.d.ts.map +1 -1
- package/dist/request/classify.js +39 -14
- package/dist/request/classify.js.map +1 -1
- package/dist/request/ephemeralExchange.d.ts +1 -6
- package/dist/request/ephemeralExchange.d.ts.map +1 -1
- package/dist/request/ephemeralExchange.js.map +1 -1
- package/dist/request/onboarding.d.ts.map +1 -1
- package/dist/request/onboarding.js +2 -2
- package/dist/request/onboarding.js.map +1 -1
- package/dist/request/parse.d.ts.map +1 -1
- package/dist/request/parse.js +2 -3
- package/dist/request/parse.js.map +1 -1
- package/dist/resourceLog/controller.d.ts +34 -12
- package/dist/resourceLog/controller.d.ts.map +1 -1
- package/dist/resourceLog/controller.js +79 -86
- package/dist/resourceLog/controller.js.map +1 -1
- package/dist/resourceLog/document.d.ts +182 -0
- package/dist/resourceLog/document.d.ts.map +1 -0
- package/dist/resourceLog/document.js +159 -0
- package/dist/resourceLog/document.js.map +1 -0
- package/dist/resourceLog/errors.d.ts +47 -8
- package/dist/resourceLog/errors.d.ts.map +1 -1
- package/dist/resourceLog/errors.js +54 -8
- package/dist/resourceLog/errors.js.map +1 -1
- package/dist/resourceLog/index.d.ts +7 -3
- package/dist/resourceLog/index.d.ts.map +1 -1
- package/dist/resourceLog/index.js +7 -3
- package/dist/resourceLog/index.js.map +1 -1
- package/dist/resourceLog/ladderRungs.d.ts +35 -0
- package/dist/resourceLog/ladderRungs.d.ts.map +1 -0
- package/dist/resourceLog/ladderRungs.js +352 -0
- package/dist/resourceLog/ladderRungs.js.map +1 -0
- package/dist/resourceLog/license.d.ts +42 -17
- package/dist/resourceLog/license.d.ts.map +1 -1
- package/dist/resourceLog/license.js +38 -24
- package/dist/resourceLog/license.js.map +1 -1
- package/dist/space/activity.d.ts +15 -15
- package/dist/space/activity.d.ts.map +1 -1
- package/dist/space/activity.js +15 -15
- package/dist/space/activity.js.map +1 -1
- package/dist/space/collections.d.ts +11 -0
- package/dist/space/collections.d.ts.map +1 -1
- package/dist/space/collections.js +13 -0
- package/dist/space/collections.js.map +1 -1
- package/dist/space/deleteSpace.d.ts +28 -0
- package/dist/space/deleteSpace.d.ts.map +1 -0
- package/dist/space/deleteSpace.js +44 -0
- package/dist/space/deleteSpace.js.map +1 -0
- package/dist/space/errors.d.ts.map +1 -1
- package/dist/space/errors.js +0 -1
- package/dist/space/errors.js.map +1 -1
- package/dist/space/index.d.ts +6 -0
- package/dist/space/index.d.ts.map +1 -1
- package/dist/space/index.js +6 -0
- package/dist/space/index.js.map +1 -1
- package/dist/space/plaintextCollection.d.ts +43 -0
- package/dist/space/plaintextCollection.d.ts.map +1 -0
- package/dist/space/plaintextCollection.js +17 -0
- package/dist/space/plaintextCollection.js.map +1 -0
- package/dist/stages.d.ts +23 -0
- package/dist/stages.d.ts.map +1 -0
- package/dist/stages.js +23 -0
- package/dist/stages.js.map +1 -0
- package/dist/sync/index.d.ts +7 -0
- package/dist/sync/index.d.ts.map +1 -1
- package/dist/sync/index.js +7 -0
- package/dist/sync/index.js.map +1 -1
- package/dist/sync/push.js +4 -4
- package/dist/sync/push.js.map +1 -1
- package/dist/sync/remint.js +2 -2
- package/dist/sync/remint.js.map +1 -1
- package/dist/sync/types.d.ts +41 -1
- package/dist/sync/types.d.ts.map +1 -1
- package/dist/sync/types.js +47 -1
- package/dist/sync/types.js.map +1 -1
- package/dist/unlock/index.d.ts +5 -1
- package/dist/unlock/index.d.ts.map +1 -1
- package/dist/unlock/index.js +5 -1
- package/dist/unlock/index.js.map +1 -1
- package/dist/unlock/retire.d.ts +35 -7
- package/dist/unlock/retire.d.ts.map +1 -1
- package/dist/unlock/retire.js +52 -14
- package/dist/unlock/retire.js.map +1 -1
- package/dist/unlock/standingClient.d.ts.map +1 -1
- package/dist/unlock/standingClient.js +5 -1
- package/dist/unlock/standingClient.js.map +1 -1
- package/dist/unlock/standingWebvh.d.ts +217 -35
- package/dist/unlock/standingWebvh.d.ts.map +1 -1
- package/dist/unlock/standingWebvh.js +469 -210
- package/dist/unlock/standingWebvh.js.map +1 -1
- package/dist/webvh/accountEntry.d.ts +146 -0
- package/dist/webvh/accountEntry.d.ts.map +1 -0
- package/dist/webvh/accountEntry.js +239 -0
- package/dist/webvh/accountEntry.js.map +1 -0
- package/dist/webvh/didWeb.d.ts +12 -7
- package/dist/webvh/didWeb.d.ts.map +1 -1
- package/dist/webvh/didWeb.js +2 -2
- package/dist/webvh/didWeb.js.map +1 -1
- package/dist/webvh/didWebProjection.d.ts +164 -0
- package/dist/webvh/didWebProjection.d.ts.map +1 -0
- package/dist/webvh/didWebProjection.js +230 -0
- package/dist/webvh/didWebProjection.js.map +1 -0
- package/dist/webvh/didWebvh.d.ts +275 -136
- package/dist/webvh/didWebvh.d.ts.map +1 -1
- package/dist/webvh/didWebvh.js +307 -340
- package/dist/webvh/didWebvh.js.map +1 -1
- package/dist/webvh/enrollClient.d.ts +65 -0
- package/dist/webvh/enrollClient.d.ts.map +1 -0
- package/dist/webvh/enrollClient.js +172 -0
- package/dist/webvh/enrollClient.js.map +1 -0
- package/dist/webvh/index.d.ts +37 -12
- package/dist/webvh/index.d.ts.map +1 -1
- package/dist/webvh/index.js +33 -10
- package/dist/webvh/index.js.map +1 -1
- package/dist/webvh/listClients.d.ts +1 -35
- package/dist/webvh/listClients.d.ts.map +1 -1
- package/dist/webvh/listClients.js +2 -30
- package/dist/webvh/listClients.js.map +1 -1
- package/dist/webvh/revokeClient.d.ts +41 -11
- package/dist/webvh/revokeClient.d.ts.map +1 -1
- package/dist/webvh/revokeClient.js +99 -48
- package/dist/webvh/revokeClient.js.map +1 -1
- package/dist/webvh/standingZcap.d.ts +61 -14
- package/dist/webvh/standingZcap.d.ts.map +1 -1
- package/dist/webvh/standingZcap.js +91 -0
- package/dist/webvh/standingZcap.js.map +1 -1
- package/dist/webvh/verifyLog.d.ts +59 -5
- package/dist/webvh/verifyLog.d.ts.map +1 -1
- package/dist/webvh/verifyLog.js +76 -11
- package/dist/webvh/verifyLog.js.map +1 -1
- package/dist/webvh/wasIdStore.d.ts +8 -8
- package/dist/webvh/wasIdStore.d.ts.map +1 -1
- package/dist/webvh/wasIdStore.js +39 -14
- package/dist/webvh/wasIdStore.js.map +1 -1
- package/dist/webvh/zcap.d.ts +14 -1
- package/dist/webvh/zcap.d.ts.map +1 -1
- package/dist/webvh/zcap.js +3 -27
- package/dist/webvh/zcap.js.map +1 -1
- package/package.json +2 -2
- package/dist/webvh/keyAgreement.d.ts +0 -97
- package/dist/webvh/keyAgreement.d.ts.map +0 -1
- package/dist/webvh/keyAgreement.js +0 -71
- package/dist/webvh/keyAgreement.js.map +0 -1
|
@@ -23,11 +23,12 @@
|
|
|
23
23
|
* carries an epoch roster from provisioning (`ensureWalletSpaceEpochs`), so a
|
|
24
24
|
* descriptor met without epochs can only mean a tampering or pre-provisioning
|
|
25
25
|
* host and is refused fail-closed. A descriptor whose `currentEpoch` names no
|
|
26
|
-
* epoch in its own list is refused the same way
|
|
27
|
-
* `readUserKeyRoster` refuses on the roster itself
|
|
28
|
-
* arrive host-served
|
|
29
|
-
*
|
|
30
|
-
*
|
|
26
|
+
* epoch in its own list is refused the same way, through the same helper
|
|
27
|
+
* `readUserKeyRoster` refuses on the roster itself ({@link currentEpochOf},
|
|
28
|
+
* `UserKeyRosterIntegrityError`): collection descriptors arrive host-served
|
|
29
|
+
* with no server-side epoch invariants, so a mismatched pair is a
|
|
30
|
+
* configuration no enrolled client authenticated, never something to
|
|
31
|
+
* evaluate against the last epoch. No construction anywhere installs a
|
|
31
32
|
* user-key secret as a collection epoch secret, which is what keeps a
|
|
32
33
|
* collection-epoch escrow (an App Connect grant, a share) from ever handing a
|
|
33
34
|
* grantee the user key itself.
|
|
@@ -111,6 +112,8 @@ export type CollectionUserKeyRotationOutcome = 'noop' | 'sealed' | 'escrowed' |
|
|
|
111
112
|
* @param options.generations {UserKey[]} every roster generation this client
|
|
112
113
|
* could unwrap ({@link unwrapUserKeyGenerations}), oldest first
|
|
113
114
|
* @returns {Promise<CollectionUserKeyRotationOutcome>}
|
|
115
|
+
* @throws {UserKeyRosterIntegrityError} the descriptor's `currentEpoch`
|
|
116
|
+
* names no epoch in its own list
|
|
114
117
|
*/
|
|
115
118
|
export declare function rotateCollectionEpochsToUserKey({ store, userKey, generations }: {
|
|
116
119
|
store: EncryptionDescriptorStore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userKeyCascade.d.ts","sourceRoot":"","sources":["../../src/keys/userKeyCascade.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"userKeyCascade.d.ts","sourceRoot":"","sources":["../../src/keys/userKeyCascade.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,EAML,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACxB,MAAM,yBAAyB,CAAA;AAGhC,OAAO,EAAoB,KAAK,OAAO,EAAE,MA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AC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IACxD,gBAAgB,EAAE,oBAAoB,CAAA;IACtC,qBAAqB,EAAE,gBAAgB,CAAA;IACvC,OAAO,EAAE,OAAO,CAAA;CACjB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAwBhC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { addRecipient, epochKeyIdFor, hasKeyEpochs, replaceRecipient, unwrapEpochSecret } from '@interop/was-client/edv';
|
|
2
2
|
import { isSealableDescriptorStore } from './rosterLogStore.js';
|
|
3
|
+
import { currentEpochOf } from './userKeyRoster.js';
|
|
3
4
|
import { userKeyVaultKeys } from './userKey.js';
|
|
4
5
|
/**
|
|
5
6
|
* A user key presented as an epoch-roster recipient: the kid is the
|
|
@@ -83,6 +84,8 @@ export async function unwrapUserKeyGenerations({ descriptor, clientKeyAgreementK
|
|
|
83
84
|
* @param options.generations {UserKey[]} every roster generation this client
|
|
84
85
|
* could unwrap ({@link unwrapUserKeyGenerations}), oldest first
|
|
85
86
|
* @returns {Promise<CollectionUserKeyRotationOutcome>}
|
|
87
|
+
* @throws {UserKeyRosterIntegrityError} the descriptor's `currentEpoch`
|
|
88
|
+
* names no epoch in its own list
|
|
86
89
|
*/
|
|
87
90
|
export async function rotateCollectionEpochsToUserKey({ store, userKey, generations }) {
|
|
88
91
|
const current = await store.read();
|
|
@@ -97,12 +100,10 @@ export async function rotateCollectionEpochsToUserKey({ store, userKey, generati
|
|
|
97
100
|
'epoch-less descriptor can only come from a tampering or ' +
|
|
98
101
|
'pre-provisioning host; refusing to rotate it.');
|
|
99
102
|
}
|
|
100
|
-
const currentEpoch =
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
'refusing to evaluate it against any other epoch.');
|
|
105
|
-
}
|
|
103
|
+
const currentEpoch = currentEpochOf({
|
|
104
|
+
descriptor,
|
|
105
|
+
label: 'The collection descriptor'
|
|
106
|
+
});
|
|
106
107
|
const currentKids = new Set(currentEpoch.recipients.map(entry => entry.header.kid));
|
|
107
108
|
const staleKids = staleGenerations
|
|
108
109
|
.map(generation => epochKeyIdFor(generation.id))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userKeyCascade.js","sourceRoot":"","sources":["../../src/keys/userKeyCascade.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"userKeyCascade.js","sourceRoot":"","sources":["../../src/keys/userKeyCascade.ts"],"names":[],"mappings":"AAqCA,OAAO,EACL,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EAGlB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,gBAAgB,EAAgB,MAAM,cAAc,CAAA;AAE7D;;;;;;;;GAQG;AACH,MAAM,UAAU,kBAAkB,CAAC,EACjC,OAAO,EAGR;IACC,OAAO;QACL,EAAE,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC;QAC7B,kBAAkB,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAE;KAC9C,CAAA;AACH,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,EAC7C,UAAU,EACV,qBAAqB,EAItB;IACC,MAAM,WAAW,GAAc,EAAE,CAAA;IACjC,KAAK,MAAM,KAAK,IAAI,UAAU,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC;QAC5C,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,IAAI,CACjC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,KAAK,qBAAqB,CAAC,EAAE,CAC/D,CAAA;QACD,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,SAAQ;Q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kBAAkB,CAAC,EAAE,OAAO,EAAE,CAAC;QAC1C,KAAK,EAAE,EAAE,eAAe,EAAE,KAAK,CAAC,eAAe,EAAE;KAClD,CAAC,CAAA;IACF,OAAO,UAAU,CAAA;AACnB,CAAC;AAYD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,EAChD,aAAa,EACb,QAAQ,EACR,WAAW,EACX,gBAAgB,EAChB,qBAAqB,EACrB,OAAO,EAQR;IACC,MAAM,WAAW,GAAG,MAAM,wBAAwB,CAAC;QACjD,UAAU,EAAE,gBAAgB;QAC5B,qBAAqB;KACtB,CAAC,CAAA;IACF,MAAM,QAAQ,GAAqD,EAAE,CAAA;IACrE,MAAM,MAAM,GAAoD,EAAE,CAAA;IAClE,MAAM,OAAO,CAAC,GAAG,CACf,aAAa,CAAC,GAAG,CAAC,KAAK,EAAC,YAAY,EAAC,EAAE;QACrC,IAAI,CAAC;YACH,IAAI,WAAW,IAAI,CAAC,CAAC,MAAM,WAAW,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC;gBACtD,OAAM;YACR,CAAC;YACD,QAAQ,CAAC,YAAY,CAAC,GAAG,MAAM,+BAA+B,CAAC;gBAC7D,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAC;gBAC7B,OAAO;gBACP,WAAW;aACZ,CAAC,CAAA;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,MAAM,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;QAC3C,CAAC;IACH,CAAC,CAAC,CACH,CAAA;IACD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;AAC7B,CAAC"}
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
* clients, against log-verified keys.
|
|
49
49
|
*/
|
|
50
50
|
import type { IKeyAgreementKey } from '@interop/data-integrity-core';
|
|
51
|
-
import type { CollectionEncryption } from '@interop/was-client';
|
|
51
|
+
import type { CollectionEncryption, CollectionEncryptionEpoch } from '@interop/was-client';
|
|
52
52
|
import { type EncryptionDescriptorStore, type RecipientPublicKey } from '@interop/was-client/edv';
|
|
53
53
|
import { type ResourceLogSigner } from '@interop/vh-resource-log';
|
|
54
|
-
import type { KeyAgreementDocument } from '../
|
|
54
|
+
import type { KeyAgreementDocument } from '../resourceLog/document.js';
|
|
55
55
|
import { type ICapabilityAgent } from '../webvh/zcap.js';
|
|
56
56
|
import type { UserKey } from './userKey.js';
|
|
57
57
|
/**
|
|
@@ -63,6 +63,41 @@ import type { UserKey } from './userKey.js';
|
|
|
63
63
|
export declare class UserKeyRosterIntegrityError extends Error {
|
|
64
64
|
constructor(message: string);
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Resolves a descriptor's current epoch, refusing a descriptor whose
|
|
68
|
+
* `currentEpoch` names no epoch in its own list -- the shape no enrolled
|
|
69
|
+
* client authenticated. Every site that resolves a current epoch goes
|
|
70
|
+
* through here, so the refusal has one implementation and one class.
|
|
71
|
+
*
|
|
72
|
+
* @param options {object}
|
|
73
|
+
* @param options.descriptor {CollectionEncryption}
|
|
74
|
+
* @param options.label {string} names the descriptor in the refusal, e.g.
|
|
75
|
+
* 'The user key roster' or 'The collection descriptor'
|
|
76
|
+
* @returns {CollectionEncryptionEpoch} the current epoch
|
|
77
|
+
* @throws {UserKeyRosterIntegrityError}
|
|
78
|
+
*/
|
|
79
|
+
export declare function currentEpochOf({ descriptor, label }: {
|
|
80
|
+
descriptor: CollectionEncryption;
|
|
81
|
+
label: string;
|
|
82
|
+
}): CollectionEncryptionEpoch;
|
|
83
|
+
/**
|
|
84
|
+
* Whether a roster's CURRENT epoch wraps to the named recipient -- the probe
|
|
85
|
+
* the enrollment wrap asks before adding, and the recipient-retiring cascade
|
|
86
|
+
* tail asks before rotating (a recipient with no current-epoch wrap has
|
|
87
|
+
* nothing to rotate off). Resolves the current epoch through
|
|
88
|
+
* {@link currentEpochOf}, so a roster whose `currentEpoch` names no epoch in
|
|
89
|
+
* its own list is refused rather than read as "not wrapped".
|
|
90
|
+
*
|
|
91
|
+
* @param options {object}
|
|
92
|
+
* @param options.descriptor {CollectionEncryption} the roster descriptor
|
|
93
|
+
* @param options.recipientId {string} the roster kid
|
|
94
|
+
* @returns {boolean}
|
|
95
|
+
* @throws {UserKeyRosterIntegrityError}
|
|
96
|
+
*/
|
|
97
|
+
export declare function rosterWrapsRecipient({ descriptor, recipientId }: {
|
|
98
|
+
descriptor: CollectionEncryption;
|
|
99
|
+
recipientId: string;
|
|
100
|
+
}): boolean;
|
|
66
101
|
/**
|
|
67
102
|
* Thrown when a served roster conflicts with the locally pinned latest-seen
|
|
68
103
|
* epoch -- the epochs list no longer contains the pinned epoch, or
|
|
@@ -205,6 +240,8 @@ export declare function ensureUserKeyRoster({ store, userKey, clientKeyAgreement
|
|
|
205
240
|
* client's own (identity) key-agreement key, unwrapping each epoch for
|
|
206
241
|
* re-wrapping
|
|
207
242
|
* @returns {Promise<CollectionEncryption>} the refreshed roster descriptor
|
|
243
|
+
* @throws {UserKeyRosterIntegrityError} the descriptor's `currentEpoch`
|
|
244
|
+
* names no epoch in its own list
|
|
208
245
|
*/
|
|
209
246
|
export declare function addUserKeyRosterRecipient({ store, recipient, ownerKeyAgreementKey }: {
|
|
210
247
|
store: EncryptionDescriptorStore;
|
|
@@ -306,6 +343,30 @@ export declare function rosterRecipientsToRetire({ descriptor, keepRecipientIds
|
|
|
306
343
|
descriptor: CollectionEncryption;
|
|
307
344
|
keepRecipientIds: string[];
|
|
308
345
|
}): string[];
|
|
346
|
+
/**
|
|
347
|
+
* The enrolled clients the account document keys, as roster recipients. A
|
|
348
|
+
* client's `keyAgreement` twin carries the controller marker
|
|
349
|
+
* `did:key:<its signing multibase>` (`clientKeyAgreementController` is the one
|
|
350
|
+
* write-side builder), so the marker names the signing half and the method
|
|
351
|
+
* carries the key-agreement half -- together, exactly the pair
|
|
352
|
+
* {@link rosterRecipientKid} takes. That is what makes the escrow direction of
|
|
353
|
+
* the convergence possible from the document alone.
|
|
354
|
+
*
|
|
355
|
+
* A standing unlock credential is deliberately not here, and not because it is
|
|
356
|
+
* unwanted. Its roster kid names its standing client's SIGNING key, which the
|
|
357
|
+
* document never publishes: the document carries the credential's
|
|
358
|
+
* key-agreement key (or a commitment to it) and nothing else, so no reader can
|
|
359
|
+
* rebuild the kid its own roster reads look for. A credential's missing wrap
|
|
360
|
+
* is therefore mended by the ceremony that holds the credential, never here.
|
|
361
|
+
*
|
|
362
|
+
* @param options {object}
|
|
363
|
+
* @param options.document {KeyAgreementDocument} the locally verified
|
|
364
|
+
* did:webvh document
|
|
365
|
+
* @returns {RecipientPublicKey[]} in document order
|
|
366
|
+
*/
|
|
367
|
+
export declare function enrolledClientRosterRecipients({ document }: {
|
|
368
|
+
document: KeyAgreementDocument;
|
|
369
|
+
}): RecipientPublicKey[];
|
|
309
370
|
/**
|
|
310
371
|
* Converges the roster onto the account document: the standing detector for a
|
|
311
372
|
* revocation cascade torn between its two halves. The cascade edits the
|
|
@@ -318,9 +379,30 @@ export declare function rosterRecipientsToRetire({ descriptor, keepRecipientIds
|
|
|
318
379
|
* document-backed resolver cannot answer for is exactly a recipient the
|
|
319
380
|
* document no longer keys, so a healthy account reads the descriptor and
|
|
320
381
|
* writes nothing. When any such recipient is found the roster is rotated away
|
|
321
|
-
* from ALL of them at once
|
|
322
|
-
*
|
|
323
|
-
*
|
|
382
|
+
* from ALL of them at once, because the resolver drops every unbacked entry
|
|
383
|
+
* from the fresh epoch, not just the one named as retiring.
|
|
384
|
+
*
|
|
385
|
+
* The convergence runs in TWO directions, in one append. The retire direction
|
|
386
|
+
* is above. The escrow direction is its mirror: an enrolled client the
|
|
387
|
+
* document keys that holds no wrap in the current epoch is escrowed into every
|
|
388
|
+
* epoch ({@link enrolledClientRosterRecipients} names the candidates). That is
|
|
389
|
+
* the mender for a ceremony torn between the entry that published a client and
|
|
390
|
+
* the append that was to wrap the user key to it -- the one-request window a
|
|
391
|
+
* ladder-signed enrollment approval leaves, where the ladder's append is
|
|
392
|
+
* licensed only as the tail of its own entry and cannot precede it. A standing
|
|
393
|
+
* unlock credential is not a candidate: its roster kid names a signing key the
|
|
394
|
+
* document does not publish (see the helper), so its missing wrap is mended by
|
|
395
|
+
* the ceremony holding the credential.
|
|
396
|
+
*
|
|
397
|
+
* Either direction, and both together, cost exactly ONE descriptor write. A
|
|
398
|
+
* convergence needing both rides `replaceRecipient`; a pure escrow rides
|
|
399
|
+
* {@link escrowRosterRecipients}, which stages every missing recipient's
|
|
400
|
+
* wraps through was-client's `addRecipient` and writes once, so the user key
|
|
401
|
+
* is not rotated for a missing wrap and a ladder-signed convergence never
|
|
402
|
+
* needs a second append it has no license for. A healthy roster writes
|
|
403
|
+
* nothing at all. The escrow direction needs a key that unwraps every epoch,
|
|
404
|
+
* so it runs only for a caller that supplies `ownerKeyAgreementKey`; without
|
|
405
|
+
* one the retire direction runs alone.
|
|
324
406
|
*
|
|
325
407
|
* Rotating onto nobody is refused: a current epoch in which NO recipient is
|
|
326
408
|
* backed by the document is a mismatched pair (a stale document, the wrong
|
|
@@ -340,17 +422,22 @@ export declare function rosterRecipientsToRetire({ descriptor, keepRecipientIds
|
|
|
340
422
|
* @param [options.descriptor] {CollectionEncryption} a descriptor the caller
|
|
341
423
|
* has just read (a login-time roster read), to save a re-read; omitted, the
|
|
342
424
|
* roster is read fresh
|
|
425
|
+
* @param [options.ownerKeyAgreementKey] {IKeyAgreementKey} a key-agreement
|
|
426
|
+
* key holding a wrap in every epoch, unwrapping each one for the escrow
|
|
427
|
+
* direction; omitted, only the retire direction runs
|
|
343
428
|
* @returns {Promise<object>} whether the roster rotated on this call, the
|
|
344
|
-
* stale recipient kids found, and the roster descriptor
|
|
345
|
-
* (`null` when the account has no roster yet)
|
|
429
|
+
* stale recipient kids found, the kids escrowed, and the roster descriptor
|
|
430
|
+
* as it now stands (`null` when the account has no roster yet)
|
|
346
431
|
*/
|
|
347
|
-
export declare function convergeUserKeyRosterToDocument({ store, document, descriptor }: {
|
|
432
|
+
export declare function convergeUserKeyRosterToDocument({ store, document, descriptor, ownerKeyAgreementKey }: {
|
|
348
433
|
store: EncryptionDescriptorStore;
|
|
349
434
|
document: KeyAgreementDocument;
|
|
350
435
|
descriptor?: CollectionEncryption;
|
|
436
|
+
ownerKeyAgreementKey?: IKeyAgreementKey;
|
|
351
437
|
}): Promise<{
|
|
352
438
|
rotated: boolean;
|
|
353
439
|
staleRecipientIds: string[];
|
|
440
|
+
escrowedRecipientIds: string[];
|
|
354
441
|
descriptor: CollectionEncryption | null;
|
|
355
442
|
}>;
|
|
356
443
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userKeyRoster.d.ts","sourceRoot":"","sources":["../../src/keys/userKeyRoster.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"userKeyRoster.d.ts","sourceRoot":"","sources":["../../src/keys/userKeyRoster.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,EACV,oBAAoB,EACpB,yBAAyB,EAC1B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAOL,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACxB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAO/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EAEL,KAAK,gBAAgB,EACtB,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