@interop/wallet-core 0.81.1 → 0.83.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/dist/descriptors/logSource.d.ts +5 -0
- package/dist/descriptors/logSource.d.ts.map +1 -1
- package/dist/descriptors/logSource.js +8 -0
- package/dist/descriptors/logSource.js.map +1 -1
- package/dist/keys/userKeyCascade.d.ts +6 -2
- package/dist/keys/userKeyCascade.d.ts.map +1 -1
- package/dist/keys/userKeyCascade.js +22 -3
- package/dist/keys/userKeyCascade.js.map +1 -1
- package/package.json +4 -4
|
@@ -76,6 +76,11 @@ export declare function collectionDescriptorLogPinId({ spaceId, collectionId }:
|
|
|
76
76
|
* inherit the roster's ceremony-tail license and refuse a served log its own
|
|
77
77
|
* wallet's standing credential wrote.
|
|
78
78
|
*
|
|
79
|
+
* The source declares `verifiesHistory: true`. was-client's
|
|
80
|
+
* `acquireDescriptor` refuses a `history`-bearing descriptor with
|
|
81
|
+
* `UnverifiedDescriptorError` from any source that does not, and a wrapper
|
|
82
|
+
* around this source must forward the flag.
|
|
83
|
+
*
|
|
79
84
|
* @param options {object}
|
|
80
85
|
* @param options.logFor {function} `(collectionId) => ResourceLogStore` --
|
|
81
86
|
* the collection's governing log's transport seam (was-client's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logSource.d.ts","sourceRoot":"","sources":["../../src/descriptors/logSource.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,EAC/B,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAA;AACzE,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACtB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,yBAAyB,CAAA;AAEhC;;;;;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BAA0B,CAsB7B"}
|
|
@@ -74,6 +74,11 @@ export function collectionDescriptorLogPinId({ spaceId, collectionId }) {
|
|
|
74
74
|
* inherit the roster's ceremony-tail license and refuse a served log its own
|
|
75
75
|
* wallet's standing credential wrote.
|
|
76
76
|
*
|
|
77
|
+
* The source declares `verifiesHistory: true`. was-client's
|
|
78
|
+
* `acquireDescriptor` refuses a `history`-bearing descriptor with
|
|
79
|
+
* `UnverifiedDescriptorError` from any source that does not, and a wrapper
|
|
80
|
+
* around this source must forward the flag.
|
|
81
|
+
*
|
|
77
82
|
* @param options {object}
|
|
78
83
|
* @param options.logFor {function} `(collectionId) => ResourceLogStore` --
|
|
79
84
|
* the collection's governing log's transport seam (was-client's
|
|
@@ -90,6 +95,9 @@ export function collectionDescriptorLogPinId({ spaceId, collectionId }) {
|
|
|
90
95
|
*/
|
|
91
96
|
export function logGovernedDescriptorSource({ logFor, resolveController, pinStore, spaceId }) {
|
|
92
97
|
return {
|
|
98
|
+
// Every read below resolves the governing log's verified head, so this
|
|
99
|
+
// source may hand out a descriptor that carries `history`.
|
|
100
|
+
verifiesHistory: true,
|
|
93
101
|
async collectionEncryption({ collectionId }) {
|
|
94
102
|
const current = await readGovernedEpochConfiguration({
|
|
95
103
|
store: logFor(collectionId),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logSource.js","sourceRoot":"","sources":["../../src/descriptors/logSource.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EACL,8BAA8B,EAC9B,8BAA8B,EAC/B,MAAM,8BAA8B,CAAA;AAErC,OAAO,EACL,kBAAkB,EAGnB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,qBAAqB,EAEtB,MAAM,yBAAyB,CAAA;AAEhC;;;;;GAKG;AACH,OAAO,EAAE,8BAA8B,EAAE,8BAA8B,EAAE,CAAA;AAEzE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,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EAAE,YAAY,EAAE,CAAC;aAC/D,CAAC,CAAA;YACF,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;gBACrB,OAAO,SAAS,CAAA;YAClB,CAAC;YACD,OAAO,OAAO,CAAC,UAAU,CAAA;QAC3B,CAAC;KACF,CAAA;AACH,CAAC"}
|
|
@@ -54,8 +54,12 @@ export type CollectionUserKeyRotationOutcome = 'noop' | 'sealed' | 'escrowed' |
|
|
|
54
54
|
* - **Stale current epoch** (names a non-current generation): one
|
|
55
55
|
* `replaceRecipient` write -- the current user key escrowed into every epoch,
|
|
56
56
|
* a fresh epoch minted without the stale generations. Two requests per
|
|
57
|
-
* collection
|
|
58
|
-
*
|
|
57
|
+
* collection. On a log-governed (sealable) store, app recipients and other
|
|
58
|
+
* readers ride through: the current epoch comes from the verified log head,
|
|
59
|
+
* so its did:key roster is authenticated and re-wrapped as it stands
|
|
60
|
+
* (`trustRosterDidKeys`). On any other store the roster is host-served and
|
|
61
|
+
* unauthenticated, so the fresh epoch goes to the current user key alone
|
|
62
|
+
* and every other entry is dropped.
|
|
59
63
|
* - **Current already** and fully escrowed: no epoch write at all, so a naive
|
|
60
64
|
* re-run after a mid-cascade crash converges with zero redundant epochs. On
|
|
61
65
|
* a log-governed (sealable) store this is exactly where an unsealed log can
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
1
|
+
{"version":3,"file":"userKeyCascade.d.ts","sourceRoot":"","sources":["../../src/keys/userKeyCascade.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;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AAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IACxD,gBAAgB,EAAE,oBAAoB,CAAA;IACtC,qBAAqB,EAAE,gBAAgB,CAAA;IACvC,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,CAAC,EAAE,0BAA0B,CAAA;CACxC,GAAG,OAAO,CAAC,oBAAoB,CAAC,CA4BhC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { addRecipient, epochKeyIdFor, hasKeyEpochs, replaceRecipient } from '@interop/was-client/edv/core';
|
|
1
|
+
import { addRecipient, epochKeyIdFor, hasKeyEpochs, replaceRecipient, trustRosterDidKeys } from '@interop/was-client/edv/core';
|
|
2
2
|
import { isSealableDescriptorStore } from './rosterLogStore.js';
|
|
3
3
|
import { currentEpochOf } from './userKeyRoster.js';
|
|
4
4
|
import { userKeyVaultKeys } from './userKey.js';
|
|
@@ -10,8 +10,12 @@ import { unwrapUserKeyGenerations, userKeyAsRecipient } from './userKeyGeneratio
|
|
|
10
10
|
* - **Stale current epoch** (names a non-current generation): one
|
|
11
11
|
* `replaceRecipient` write -- the current user key escrowed into every epoch,
|
|
12
12
|
* a fresh epoch minted without the stale generations. Two requests per
|
|
13
|
-
* collection
|
|
14
|
-
*
|
|
13
|
+
* collection. On a log-governed (sealable) store, app recipients and other
|
|
14
|
+
* readers ride through: the current epoch comes from the verified log head,
|
|
15
|
+
* so its did:key roster is authenticated and re-wrapped as it stands
|
|
16
|
+
* (`trustRosterDidKeys`). On any other store the roster is host-served and
|
|
17
|
+
* unauthenticated, so the fresh epoch goes to the current user key alone
|
|
18
|
+
* and every other entry is dropped.
|
|
15
19
|
* - **Current already** and fully escrowed: no epoch write at all, so a naive
|
|
16
20
|
* re-run after a mid-cascade crash converges with zero redundant epochs. On
|
|
17
21
|
* a log-governed (sealable) store this is exactly where an unsealed log can
|
|
@@ -84,6 +88,9 @@ export async function rotateCollectionEpochsToUserKey({ store, userKey, generati
|
|
|
84
88
|
retire: staleKids,
|
|
85
89
|
recipient: userKeyAsRecipient({ userKey }),
|
|
86
90
|
owner: { keyAgreementKey: owner.keyAgreementKey },
|
|
91
|
+
resolveRecipientKey: isSealableDescriptorStore(store)
|
|
92
|
+
? trustRosterDidKeys
|
|
93
|
+
: vouchNoSurvivor,
|
|
87
94
|
pull: async () => { }
|
|
88
95
|
});
|
|
89
96
|
return 'rotated';
|
|
@@ -116,6 +123,18 @@ export async function rotateCollectionEpochsToUserKey({ store, userKey, generati
|
|
|
116
123
|
});
|
|
117
124
|
return 'escrowed';
|
|
118
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* The survivor resolver for a store whose roster is not authenticated: it
|
|
128
|
+
* vouches for no surviving entry. The incoming current user key needs no
|
|
129
|
+
* resolver (`replaceRecipient` wraps it from the key in hand), and every stale
|
|
130
|
+
* generation still in the current epoch is being retired, so a server-planted
|
|
131
|
+
* entry is dropped from the fresh epoch rather than handed its secret.
|
|
132
|
+
*
|
|
133
|
+
* @returns {Promise<null>}
|
|
134
|
+
*/
|
|
135
|
+
async function vouchNoSurvivor() {
|
|
136
|
+
return null;
|
|
137
|
+
}
|
|
119
138
|
/**
|
|
120
139
|
* The collection fan-out of the user key rotation cascade: re-epochs every
|
|
121
140
|
* named collection onto the roster's current user key, in parallel, unwrapping
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userKeyCascade.js","sourceRoot":"","sources":["../../src/keys/userKeyCascade.ts"],"names":[],"mappings":"AAqCA,OAAO,EACL,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,gBAAgB,
|
|
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,kBAAkB,EAGnB,MAAM,8BAA8B,CAAA;AAErC,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA;A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GAAG,EAAE,CAAC,CAAA;QAC3C,CAAC;IACH,CAAC,CAAC,CACH,CAAA;IACD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;AAC7B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interop/wallet-core",
|
|
3
3
|
"description": "Shared wallet-domain logic (WAS sync engine core and wallet Space layout contracts) for Interop wallet apps.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.83.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "pnpm run clear && tsc",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@interop/ed25519-verification-key": "^8.2.1",
|
|
28
28
|
"@interop/ezcap": "^7.5.0",
|
|
29
29
|
"@interop/social-core": "^0.8.1",
|
|
30
|
-
"@interop/vh-resource-log": "^0.5.
|
|
30
|
+
"@interop/vh-resource-log": "^0.5.4",
|
|
31
31
|
"@interop/x25519-key-agreement-key": "^5.4.1",
|
|
32
32
|
"@noble/ciphers": "^2.3.0",
|
|
33
33
|
"@noble/hashes": "^2.3.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@eslint/js": "^10.0.1",
|
|
39
39
|
"@interop/logger": "^0.2.0",
|
|
40
40
|
"@interop/storage-core": "^0.20.0",
|
|
41
|
-
"@interop/was-client": "^0.
|
|
41
|
+
"@interop/was-client": "^0.75.0",
|
|
42
42
|
"@playwright/test": "^1.60.0",
|
|
43
43
|
"@types/node": "^26.0.1",
|
|
44
44
|
"@vitest/coverage-v8": "^4.1.7",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"vitest": "^4.1.7"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@interop/was-client": ">=0.
|
|
56
|
+
"@interop/was-client": ">=0.75.0 <1.0.0"
|
|
57
57
|
},
|
|
58
58
|
"files": [
|
|
59
59
|
"dist",
|