@interop/wallet-core 0.68.0 → 0.70.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 +31 -41
- package/dist/clientAnnex/credentialAnchoredGenesis.d.ts +12 -1
- package/dist/clientAnnex/credentialAnchoredGenesis.d.ts.map +1 -1
- package/dist/clientAnnex/credentialAnchoredGenesis.js +9 -2
- package/dist/clientAnnex/credentialAnchoredGenesis.js.map +1 -1
- package/dist/clientAnnex/establish.d.ts +10 -0
- package/dist/clientAnnex/establish.d.ts.map +1 -1
- package/dist/clientAnnex/establish.js +14 -2
- package/dist/clientAnnex/establish.js.map +1 -1
- package/dist/clientAnnex/ladder.d.ts +103 -57
- package/dist/clientAnnex/ladder.d.ts.map +1 -1
- package/dist/clientAnnex/ladder.js +254 -335
- package/dist/clientAnnex/ladder.js.map +1 -1
- package/dist/clientAnnex/ladderAnchored.d.ts.map +1 -1
- package/dist/clientAnnex/ladderAnchored.js +10 -5
- package/dist/clientAnnex/ladderAnchored.js.map +1 -1
- package/dist/clientAnnex/mend.d.ts +19 -4
- package/dist/clientAnnex/mend.d.ts.map +1 -1
- package/dist/clientAnnex/mend.js +83 -35
- package/dist/clientAnnex/mend.js.map +1 -1
- package/dist/clientAnnex/recoveryLadderAnchored.d.ts +3 -15
- package/dist/clientAnnex/recoveryLadderAnchored.d.ts.map +1 -1
- package/dist/clientAnnex/recoveryLadderAnchored.js +22 -3
- package/dist/clientAnnex/recoveryLadderAnchored.js.map +1 -1
- package/dist/clientAnnex/rosterDeliveredEpochs.d.ts +13 -14
- package/dist/clientAnnex/rosterDeliveredEpochs.d.ts.map +1 -1
- package/dist/clientAnnex/rosterDeliveredEpochs.js +12 -12
- package/dist/clientAnnex/rosterDeliveredEpochs.js.map +1 -1
- package/dist/clients/grantState.d.ts +67 -0
- package/dist/clients/grantState.d.ts.map +1 -0
- package/dist/clients/grantState.js +72 -0
- package/dist/clients/grantState.js.map +1 -0
- package/dist/clients/index.d.ts +7 -0
- package/dist/clients/index.d.ts.map +1 -1
- package/dist/clients/index.js +6 -0
- package/dist/clients/index.js.map +1 -1
- package/dist/descriptors/index.d.ts +21 -46
- package/dist/descriptors/index.d.ts.map +1 -1
- package/dist/descriptors/index.js +21 -45
- package/dist/descriptors/index.js.map +1 -1
- package/dist/descriptors/logSource.d.ts +45 -56
- package/dist/descriptors/logSource.d.ts.map +1 -1
- package/dist/descriptors/logSource.js +64 -74
- package/dist/descriptors/logSource.js.map +1 -1
- package/dist/enrollment/connectCode.d.ts +4 -3
- package/dist/enrollment/connectCode.d.ts.map +1 -1
- package/dist/enrollment/connectCode.js +4 -3
- package/dist/enrollment/connectCode.js.map +1 -1
- package/dist/enrollment/index.d.ts +2 -2
- package/dist/enrollment/index.js +2 -2
- package/dist/enrollment/onboardingInvite.d.ts +1 -1
- package/dist/enrollment/onboardingInvite.js +1 -1
- package/dist/enrollment/onboardingResponse.js +1 -1
- package/dist/genesis/accountGenesis.d.ts +13 -1
- package/dist/genesis/accountGenesis.d.ts.map +1 -1
- package/dist/genesis/accountGenesis.js +11 -2
- package/dist/genesis/accountGenesis.js.map +1 -1
- package/dist/identity/index.d.ts +1 -1
- package/dist/identity/index.js +1 -1
- package/dist/index.d.ts +4 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -8
- package/dist/index.js.map +1 -1
- package/dist/keyring/kdf.d.ts +33 -19
- package/dist/keyring/kdf.d.ts.map +1 -1
- package/dist/keyring/kdf.js +36 -25
- package/dist/keyring/kdf.js.map +1 -1
- package/dist/keys/collectionLogStore.d.ts +73 -0
- package/dist/keys/collectionLogStore.d.ts.map +1 -0
- package/dist/keys/collectionLogStore.js +60 -0
- package/dist/keys/collectionLogStore.js.map +1 -0
- package/dist/keys/index.d.ts +18 -6
- package/dist/keys/index.d.ts.map +1 -1
- package/dist/keys/index.js +18 -6
- package/dist/keys/index.js.map +1 -1
- package/dist/keys/rosterLogStore.d.ts +44 -6
- package/dist/keys/rosterLogStore.d.ts.map +1 -1
- package/dist/keys/rosterLogStore.js +51 -238
- package/dist/keys/rosterLogStore.js.map +1 -1
- package/dist/keys/rosterStore.d.ts.map +1 -1
- package/dist/keys/rosterStore.js +2 -1
- package/dist/keys/rosterStore.js.map +1 -1
- package/dist/keys/spaceEpochs.d.ts +67 -34
- package/dist/keys/spaceEpochs.d.ts.map +1 -1
- package/dist/keys/spaceEpochs.js +80 -30
- package/dist/keys/spaceEpochs.js.map +1 -1
- package/dist/keys/userKeyCascade.d.ts +26 -1
- package/dist/keys/userKeyCascade.d.ts.map +1 -1
- package/dist/keys/userKeyCascade.js +29 -2
- package/dist/keys/userKeyCascade.js.map +1 -1
- package/dist/keys/userKeyRoster.d.ts +5 -0
- package/dist/keys/userKeyRoster.d.ts.map +1 -1
- package/dist/keys/userKeyRoster.js +5 -0
- package/dist/keys/userKeyRoster.js.map +1 -1
- package/dist/keys/userKeyRosterCascade.d.ts +54 -16
- package/dist/keys/userKeyRosterCascade.d.ts.map +1 -1
- package/dist/keys/userKeyRosterCascade.js +50 -22
- package/dist/keys/userKeyRosterCascade.js.map +1 -1
- package/dist/recovery/continuation.d.ts +5 -4
- package/dist/recovery/continuation.d.ts.map +1 -1
- package/dist/recovery/continuation.js +14 -13
- package/dist/recovery/continuation.js.map +1 -1
- package/dist/resourceLog/controller.d.ts +18 -6
- package/dist/resourceLog/controller.d.ts.map +1 -1
- package/dist/resourceLog/controller.js +5 -3
- package/dist/resourceLog/controller.js.map +1 -1
- package/dist/resourceLog/document.d.ts +10 -2
- package/dist/resourceLog/document.d.ts.map +1 -1
- package/dist/resourceLog/document.js +1 -2
- package/dist/resourceLog/document.js.map +1 -1
- package/dist/resourceLog/errors.d.ts +17 -43
- package/dist/resourceLog/errors.d.ts.map +1 -1
- package/dist/resourceLog/errors.js +17 -50
- package/dist/resourceLog/errors.js.map +1 -1
- package/dist/resourceLog/index.d.ts +4 -1
- package/dist/resourceLog/index.d.ts.map +1 -1
- package/dist/resourceLog/index.js +4 -1
- package/dist/resourceLog/index.js.map +1 -1
- package/dist/resourceLog/logClass.d.ts +69 -0
- package/dist/resourceLog/logClass.d.ts.map +1 -0
- package/dist/resourceLog/logClass.js +43 -0
- package/dist/resourceLog/logClass.js.map +1 -0
- package/dist/space/collections.d.ts +22 -2
- package/dist/space/collections.d.ts.map +1 -1
- package/dist/space/collections.js +18 -0
- package/dist/space/collections.js.map +1 -1
- package/dist/space/index.d.ts +8 -5
- package/dist/space/index.d.ts.map +1 -1
- package/dist/space/index.js +8 -5
- package/dist/space/index.js.map +1 -1
- package/dist/space/provisioning.d.ts +16 -6
- package/dist/space/provisioning.d.ts.map +1 -1
- package/dist/space/provisioning.js +11 -7
- package/dist/space/provisioning.js.map +1 -1
- package/dist/space/wasLink.d.ts +13 -2
- package/dist/space/wasLink.d.ts.map +1 -1
- package/dist/space/wasLink.js +28 -2
- package/dist/space/wasLink.js.map +1 -1
- package/dist/sync/engine.d.ts +4 -2
- package/dist/sync/engine.d.ts.map +1 -1
- package/dist/sync/engine.js.map +1 -1
- package/dist/sync/index.d.ts +9 -6
- package/dist/sync/index.d.ts.map +1 -1
- package/dist/sync/index.js +8 -5
- package/dist/sync/index.js.map +1 -1
- package/dist/sync/push.d.ts +0 -29
- package/dist/sync/push.d.ts.map +1 -1
- package/dist/sync/push.js +30 -28
- package/dist/sync/push.js.map +1 -1
- package/dist/sync/types.d.ts +39 -21
- package/dist/sync/types.d.ts.map +1 -1
- package/dist/sync/types.js +13 -7
- 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.map +1 -1
- package/dist/unlock/retire.d.ts +8 -1
- package/dist/unlock/retire.d.ts.map +1 -1
- package/dist/unlock/retire.js +8 -1
- package/dist/unlock/retire.js.map +1 -1
- package/dist/unlock/standingWebvh.d.ts +81 -19
- package/dist/unlock/standingWebvh.d.ts.map +1 -1
- package/dist/unlock/standingWebvh.js +170 -30
- package/dist/unlock/standingWebvh.js.map +1 -1
- package/dist/webvh/did.d.ts +2 -4
- package/dist/webvh/did.d.ts.map +1 -1
- package/dist/webvh/did.js +2 -4
- package/dist/webvh/did.js.map +1 -1
- package/dist/webvh/didWebvh.d.ts +3 -2
- package/dist/webvh/didWebvh.d.ts.map +1 -1
- package/dist/webvh/didWebvh.js +2 -1
- package/dist/webvh/didWebvh.js.map +1 -1
- package/dist/webvh/revokeClient.d.ts +13 -7
- package/dist/webvh/revokeClient.d.ts.map +1 -1
- package/dist/webvh/revokeClient.js +14 -7
- package/dist/webvh/revokeClient.js.map +1 -1
- package/package.json +4 -19
- package/dist/descriptors/acquire.d.ts +0 -122
- package/dist/descriptors/acquire.d.ts.map +0 -1
- package/dist/descriptors/acquire.js +0 -100
- package/dist/descriptors/acquire.js.map +0 -1
- package/dist/descriptors/cipher.d.ts +0 -71
- package/dist/descriptors/cipher.d.ts.map +0 -1
- package/dist/descriptors/cipher.js +0 -109
- package/dist/descriptors/cipher.js.map +0 -1
- package/dist/descriptors/errors.d.ts +0 -44
- package/dist/descriptors/errors.d.ts.map +0 -1
- package/dist/descriptors/errors.js +0 -46
- package/dist/descriptors/errors.js.map +0 -1
- package/dist/descriptors/refresh.d.ts +0 -62
- package/dist/descriptors/refresh.d.ts.map +0 -1
- package/dist/descriptors/refresh.js +0 -69
- package/dist/descriptors/refresh.js.map +0 -1
- package/dist/request/appKey.d.ts +0 -295
- package/dist/request/appKey.d.ts.map +0 -1
- package/dist/request/appKey.js +0 -516
- package/dist/request/appKey.js.map +0 -1
- package/dist/request/capabilityRequest.d.ts +0 -41
- package/dist/request/capabilityRequest.d.ts.map +0 -1
- package/dist/request/capabilityRequest.js +0 -46
- package/dist/request/capabilityRequest.js.map +0 -1
- package/dist/request/classify.d.ts +0 -226
- package/dist/request/classify.d.ts.map +0 -1
- package/dist/request/classify.js +0 -416
- package/dist/request/classify.js.map +0 -1
- package/dist/request/composeVp.d.ts +0 -52
- package/dist/request/composeVp.d.ts.map +0 -1
- package/dist/request/composeVp.js +0 -176
- package/dist/request/composeVp.js.map +0 -1
- package/dist/request/ephemeralExchange.d.ts +0 -100
- package/dist/request/ephemeralExchange.d.ts.map +0 -1
- package/dist/request/ephemeralExchange.js +0 -230
- package/dist/request/ephemeralExchange.js.map +0 -1
- package/dist/request/exchangeClient.d.ts +0 -142
- package/dist/request/exchangeClient.d.ts.map +0 -1
- package/dist/request/exchangeClient.js +0 -241
- package/dist/request/exchangeClient.js.map +0 -1
- package/dist/request/index.d.ts +0 -59
- package/dist/request/index.d.ts.map +0 -1
- package/dist/request/index.js +0 -59
- package/dist/request/index.js.map +0 -1
- package/dist/request/interactionRequest.d.ts +0 -23
- package/dist/request/interactionRequest.d.ts.map +0 -1
- package/dist/request/interactionRequest.js +0 -46
- package/dist/request/interactionRequest.js.map +0 -1
- package/dist/request/interactionUrl.d.ts +0 -42
- package/dist/request/interactionUrl.d.ts.map +0 -1
- package/dist/request/interactionUrl.js +0 -104
- package/dist/request/interactionUrl.js.map +0 -1
- package/dist/request/matching.d.ts +0 -95
- package/dist/request/matching.d.ts.map +0 -1
- package/dist/request/matching.js +0 -205
- package/dist/request/matching.js.map +0 -1
- package/dist/request/onboarding.d.ts +0 -94
- package/dist/request/onboarding.d.ts.map +0 -1
- package/dist/request/onboarding.js +0 -167
- package/dist/request/onboarding.js.map +0 -1
- package/dist/request/parse.d.ts +0 -63
- package/dist/request/parse.d.ts.map +0 -1
- package/dist/request/parse.js +0 -153
- package/dist/request/parse.js.map +0 -1
- package/dist/request/presentationSuite.d.ts +0 -71
- package/dist/request/presentationSuite.d.ts.map +0 -1
- package/dist/request/presentationSuite.js +0 -143
- package/dist/request/presentationSuite.js.map +0 -1
- package/dist/request/processRequest.d.ts +0 -45
- package/dist/request/processRequest.d.ts.map +0 -1
- package/dist/request/processRequest.js +0 -147
- package/dist/request/processRequest.js.map +0 -1
- package/dist/request/queryPredicates.d.ts +0 -98
- package/dist/request/queryPredicates.d.ts.map +0 -1
- package/dist/request/queryPredicates.js +0 -107
- package/dist/request/queryPredicates.js.map +0 -1
- package/dist/request/types.d.ts +0 -257
- package/dist/request/types.d.ts.map +0 -1
- package/dist/request/types.js +0 -2
- package/dist/request/types.js.map +0 -1
- package/dist/request/walletInput.d.ts +0 -93
- package/dist/request/walletInput.d.ts.map +0 -1
- package/dist/request/walletInput.js +0 -179
- package/dist/request/walletInput.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountGenesis.js","sourceRoot":"","sources":["../../src/genesis/accountGenesis.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAK5C,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAC3E,OAAO,EACL,yBAAyB,EACzB,cAAc,EACd,yBAAyB,EAM1B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,WAAW,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAsB,MAAM,WAAW,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AAEvD;;GAEG;AACH,MAAM,cAAc,GAAG,EAAE,CAAA;AAkBzB;;;;;;;GAOG;AACH,MAAM,UAAU,WAAW;IACzB,OAAO,cAAc,CAAC,MAAM,CAC1B,MAAM,CAAC,eAAe,CAAC,IAAI,UAAU,CAAC,cAAc,CAAC,CAAC,CACvD,CAAA;AACH,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB;IACrC,MAAM,UAAU,GAAG,MAAM,CAAC,eAAe,CAAC,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC,CAAA;IAC7D,OAAO;QACL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ACH,CAAC;IAED,OAAO;QACL,GAAG;QACH,GAAG,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACjD,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7B,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3C,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACnC,MAAM;KACP,CAAA;AACH,CAAC"}
|
package/dist/identity/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* app-side derivations such as a keyring unlock identity).
|
|
17
17
|
*
|
|
18
18
|
* Kept out of the root export: this subpath pulls the webkms-client / ezcap /
|
|
19
|
-
* x25519 dependency graph
|
|
19
|
+
* x25519 dependency graph.
|
|
20
20
|
*/
|
|
21
21
|
export { BOOTSTRAP_HANDLE, BOOTSTRAP_KEY_NAME, agentsFromKeyAgent, agentsFromSecret, agentsFromSeed, zcapClientForSigner } from './agents.js';
|
|
22
22
|
export type { ProfileAgents } from './agents.js';
|
package/dist/identity/index.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* app-side derivations such as a keyring unlock identity).
|
|
17
17
|
*
|
|
18
18
|
* Kept out of the root export: this subpath pulls the webkms-client / ezcap /
|
|
19
|
-
* x25519 dependency graph
|
|
19
|
+
* x25519 dependency graph.
|
|
20
20
|
*/
|
|
21
21
|
export { BOOTSTRAP_HANDLE, BOOTSTRAP_KEY_NAME, agentsFromKeyAgent, agentsFromSecret, agentsFromSeed, zcapClientForSigner } from './agents.js';
|
|
22
22
|
export { singleKeyResolver } from './keyResolver.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -10,10 +10,6 @@
|
|
|
10
10
|
* - `@interop/wallet-core/identity` -- the WAS identity derivation
|
|
11
11
|
* (`agentsFromSecret` / `agentsFromSeed`, `singleKeyResolver`) both wallet
|
|
12
12
|
* apps must perform byte-for-byte identically.
|
|
13
|
-
* - `@interop/wallet-core/request` -- wallet-request / exchange protocol
|
|
14
|
-
* handling (classification and parsing, QueryByExample matching, cryptosuite
|
|
15
|
-
* negotiation, VP composition, the VC-API exchange client, and VCALM
|
|
16
|
-
* `interaction:` URL handling).
|
|
17
13
|
* - `@interop/wallet-core/webvh` -- the account's did:webvh identity: the
|
|
18
14
|
* hosted DID log, its per-client update-key rotation, the client enrollment
|
|
19
15
|
* entries, and ZCap signing under the did:webvh verification-method id.
|
|
@@ -40,10 +36,10 @@
|
|
|
40
36
|
* re-implementing its swallow.
|
|
41
37
|
*
|
|
42
38
|
* This root re-exports `sync` and `space` for convenience. `identity`,
|
|
43
|
-
* `
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
39
|
+
* `webvh`, `keys`, `descriptors`, `keyring`, `enrollment`, and `recovery`
|
|
40
|
+
* are deliberately NOT re-exported here, so plaintext consumers of the root
|
|
41
|
+
* never pull the signing / KMS dependency graph (the was-client
|
|
42
|
+
* subpath-isolation pattern).
|
|
47
43
|
*/
|
|
48
44
|
export * from './sync/index.js';
|
|
49
45
|
export * from './space/index.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACnD,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -10,10 +10,6 @@
|
|
|
10
10
|
* - `@interop/wallet-core/identity` -- the WAS identity derivation
|
|
11
11
|
* (`agentsFromSecret` / `agentsFromSeed`, `singleKeyResolver`) both wallet
|
|
12
12
|
* apps must perform byte-for-byte identically.
|
|
13
|
-
* - `@interop/wallet-core/request` -- wallet-request / exchange protocol
|
|
14
|
-
* handling (classification and parsing, QueryByExample matching, cryptosuite
|
|
15
|
-
* negotiation, VP composition, the VC-API exchange client, and VCALM
|
|
16
|
-
* `interaction:` URL handling).
|
|
17
13
|
* - `@interop/wallet-core/webvh` -- the account's did:webvh identity: the
|
|
18
14
|
* hosted DID log, its per-client update-key rotation, the client enrollment
|
|
19
15
|
* entries, and ZCap signing under the did:webvh verification-method id.
|
|
@@ -40,10 +36,10 @@
|
|
|
40
36
|
* re-implementing its swallow.
|
|
41
37
|
*
|
|
42
38
|
* This root re-exports `sync` and `space` for convenience. `identity`,
|
|
43
|
-
* `
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
39
|
+
* `webvh`, `keys`, `descriptors`, `keyring`, `enrollment`, and `recovery`
|
|
40
|
+
* are deliberately NOT re-exported here, so plaintext consumers of the root
|
|
41
|
+
* never pull the signing / KMS dependency graph (the was-client
|
|
42
|
+
* subpath-isolation pattern).
|
|
47
43
|
*/
|
|
48
44
|
export * from './sync/index.js';
|
|
49
45
|
export * from './space/index.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA"}
|
package/dist/keyring/kdf.d.ts
CHANGED
|
@@ -10,18 +10,24 @@ import type { RecordSigner } from './record.js';
|
|
|
10
10
|
export declare const UNLOCK_HANDLE = "unlock";
|
|
11
11
|
export declare const UNLOCK_KEY_NAME = "unlock-key";
|
|
12
12
|
/**
|
|
13
|
-
* Unlock-derivation parameters, one variant per KDF family:
|
|
14
|
-
* a low-entropy passphrase; HKDF expands
|
|
15
|
-
* passkey PRF output). Each unlock method
|
|
16
|
-
* its own salt, so two methods can never
|
|
17
|
-
* The `version`
|
|
18
|
-
*
|
|
13
|
+
* Unlock-derivation parameters, one variant per KDF family: Argon2id
|
|
14
|
+
* (memory-hard) stretches a low-entropy passphrase; HKDF expands
|
|
15
|
+
* already-uniform key material (e.g. a passkey PRF output). Each unlock method
|
|
16
|
+
* pins its own parameter set -- and its own salt, so two methods can never
|
|
17
|
+
* derive the same unlock identity. The `version` is one counter per unlock
|
|
18
|
+
* method, recording which parameter set produced that method's derivation;
|
|
19
|
+
* the keyring record's own `version` is stamped separately.
|
|
20
|
+
*
|
|
21
|
+
* The Argon2id arm carries no `hash` member: Argon2 fixes Blake2b internally.
|
|
22
|
+
* `memory` is in KiB (RFC 9106's and noble's unit); the RFC's `m` / `t` / `p`
|
|
23
|
+
* are named `memory` / `passes` / `parallelism`.
|
|
19
24
|
*/
|
|
20
25
|
export type UnlockKdf = {
|
|
21
26
|
version: number;
|
|
22
|
-
algorithm: '
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
algorithm: 'Argon2id';
|
|
28
|
+
memory: number;
|
|
29
|
+
passes: number;
|
|
30
|
+
parallelism: number;
|
|
25
31
|
salt: string;
|
|
26
32
|
} | {
|
|
27
33
|
version: number;
|
|
@@ -31,20 +37,28 @@ export type UnlockKdf = {
|
|
|
31
37
|
info: string;
|
|
32
38
|
};
|
|
33
39
|
/**
|
|
34
|
-
*
|
|
35
|
-
* (`unlockSeed =
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* unlock
|
|
40
|
+
* Argon2id parameters for the passphrase unlock derivation
|
|
41
|
+
* (`unlockSeed = Argon2id(passphrase)`): 64 MiB of memory, 3 passes,
|
|
42
|
+
* parallelism 1, a 32-byte tag. The memory and pass counts are those of RFC
|
|
43
|
+
* 9106 section 4's second recommended option (m = 64 MiB, t = 3, p = 4); the
|
|
44
|
+
* parallelism is a deliberate departure from that option's four lanes. It
|
|
45
|
+
* stays 1 because noble is single-threaded, so a higher value changes the
|
|
46
|
+
* bytes and buys no speed. Passphrase version 2 pins exactly
|
|
47
|
+
* these parameters; version 1 was PBKDF2-600k over SHA-256 under the salt
|
|
48
|
+
* `freewallet/keyring/unlock/v1`, and it was replaced outright rather than
|
|
49
|
+
* kept beside this set, so a passphrase bound under it no longer addresses
|
|
50
|
+
* its unlock Space. The KDF's own `version` is what records the parameter
|
|
51
|
+
* set: the keyring record's frame version is unchanged, since a record cannot
|
|
52
|
+
* be read before its derivation has already succeeded, so a version inside it
|
|
53
|
+
* could never steer a lookup. The salt is a fixed app-wide constant -- login
|
|
54
|
+
* stays passphrase-only, with no email (or other) input mixed into the
|
|
55
|
+
* derivation. Every unlock method's KDF carries a distinct salt, so two
|
|
56
|
+
* methods can never derive the same unlock Space.
|
|
43
57
|
*/
|
|
44
58
|
export declare const KEYRING_KDF: UnlockKdf;
|
|
45
59
|
/**
|
|
46
60
|
* Derives the 32-byte unlock seed from an unlock secret, branching on the KDF
|
|
47
|
-
* family:
|
|
61
|
+
* family: Argon2id stretches a passphrase, HKDF expands already-uniform key
|
|
48
62
|
* material such as a passkey PRF output.
|
|
49
63
|
*
|
|
50
64
|
* Exported for the standing-credential derivation (`unlock/standingClient`):
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kdf.d.ts","sourceRoot":"","sources":["../../src/keyring/kdf.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAKxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAE1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,aAAa,WAAW,CAAA;AACrC,eAAO,MAAM,eAAe,eAAe,CAAA;AAQ3C
|
|
1
|
+
{"version":3,"file":"kdf.d.ts","sourceRoot":"","sources":["../../src/keyring/kdf.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAKxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAE1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE/C;;;;;GAKG;AACH,eAAO,MAAM,aAAa,WAAW,CAAA;AACrC,eAAO,MAAM,eAAe,eAAe,CAAA;AAQ3C;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,SAAS,GACjB;IACE,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,UAAU,CAAA;IACrB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;CACb,GACD;IACE,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAEL;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,EAAE,SAOzB,CAAA;AAoBD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,gBAAgB,CAAC,EACrC,MAAM,EACN,GAAG,EACJ,EAAE;IACD,MAAM,EAAE,MAAM,GAAG,UAAU,CAAA;IAC3B,GAAG,EAAE,SAAS,CAAA;CACf,GAAG,OAAO,CAAC,UAAU,CAAC,CAuBtB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,oBAAoB,CAAC,EACzC,MAAM,EACN,GAAG,EACJ,EAAE;IACD,MAAM,EAAE,MAAM,GAAG,UAAU,CAAA;IAC3B,GAAG,EAAE,SAAS,CAAA;CACf,GAAG,OAAO,CAAC,cAAc,CAAC,CAG1B;AAED;;;;;;;;;GASG;AACH,wBAAsB,sBAAsB,CAAC,EAC3C,IAAI,EACL,EAAE;IACD,IAAI,EAAE,UAAU,CAAA;CACjB,GAAG,OAAO,CAAC,cAAc,CAAC,CA4B1B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAEjE;AAED;;;;;;GAMG;AACH,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,aAAa,EACb,YAAY,GAAG,iBAAiB,GAAG,aAAa,CACjD;IACC,KAAK,EAAE,eAAe,CAAA;IACtB,YAAY,EAAE,YAAY,CAAA;IAC1B,OAAO,EAAE,MAAM,CAAA;CAChB"}
|
package/dist/keyring/kdf.js
CHANGED
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
* output for the same secret and parameter set, or the same passphrase would
|
|
13
13
|
* address two different unlock Spaces. It is therefore implemented over
|
|
14
14
|
* `@noble/hashes` rather than WebCrypto's `crypto.subtle.deriveBits`, which
|
|
15
|
-
* React Native does not provide;
|
|
16
|
-
* (RFC
|
|
15
|
+
* React Native does not provide; Argon2id and HKDF are both fully specified
|
|
16
|
+
* (RFC 9106 / RFC 5869), so any two implementations agree bit for bit.
|
|
17
17
|
*/
|
|
18
18
|
import { deriveSpaceId } from '@interop/was-client/sync';
|
|
19
19
|
import { CapabilityAgent } from '@interop/webkms-client';
|
|
20
|
+
import { argon2idAsync } from '@noble/hashes/argon2.js';
|
|
20
21
|
import { hkdf } from '@noble/hashes/hkdf.js';
|
|
21
|
-
import { pbkdf2Async } from '@noble/hashes/pbkdf2.js';
|
|
22
22
|
import { sha256, sha512 } from '@noble/hashes/sha2.js';
|
|
23
23
|
import { agentsFromKeyAgent } from '../identity/agents.js';
|
|
24
24
|
import { recordSignerFromAgent } from './record.js';
|
|
@@ -36,26 +36,36 @@ export const UNLOCK_KEY_NAME = 'unlock-key';
|
|
|
36
36
|
*/
|
|
37
37
|
const UNLOCK_SEED_BYTES = 32;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
|
-
* (`unlockSeed =
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* unlock
|
|
39
|
+
* Argon2id parameters for the passphrase unlock derivation
|
|
40
|
+
* (`unlockSeed = Argon2id(passphrase)`): 64 MiB of memory, 3 passes,
|
|
41
|
+
* parallelism 1, a 32-byte tag. The memory and pass counts are those of RFC
|
|
42
|
+
* 9106 section 4's second recommended option (m = 64 MiB, t = 3, p = 4); the
|
|
43
|
+
* parallelism is a deliberate departure from that option's four lanes. It
|
|
44
|
+
* stays 1 because noble is single-threaded, so a higher value changes the
|
|
45
|
+
* bytes and buys no speed. Passphrase version 2 pins exactly
|
|
46
|
+
* these parameters; version 1 was PBKDF2-600k over SHA-256 under the salt
|
|
47
|
+
* `freewallet/keyring/unlock/v1`, and it was replaced outright rather than
|
|
48
|
+
* kept beside this set, so a passphrase bound under it no longer addresses
|
|
49
|
+
* its unlock Space. The KDF's own `version` is what records the parameter
|
|
50
|
+
* set: the keyring record's frame version is unchanged, since a record cannot
|
|
51
|
+
* be read before its derivation has already succeeded, so a version inside it
|
|
52
|
+
* could never steer a lookup. The salt is a fixed app-wide constant -- login
|
|
53
|
+
* stays passphrase-only, with no email (or other) input mixed into the
|
|
54
|
+
* derivation. Every unlock method's KDF carries a distinct salt, so two
|
|
55
|
+
* methods can never derive the same unlock Space.
|
|
48
56
|
*/
|
|
49
57
|
export const KEYRING_KDF = {
|
|
50
|
-
version:
|
|
51
|
-
algorithm: '
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
58
|
+
version: 2,
|
|
59
|
+
algorithm: 'Argon2id',
|
|
60
|
+
memory: 65_536,
|
|
61
|
+
passes: 3,
|
|
62
|
+
parallelism: 1,
|
|
63
|
+
salt: 'freewallet/keyring/unlock/argon2id/v1'
|
|
55
64
|
};
|
|
56
65
|
/**
|
|
57
|
-
* The noble hash constructor a WebCrypto hash name selects
|
|
58
|
-
* matches `crypto.subtle.deriveBits` for the same
|
|
66
|
+
* The noble hash constructor a WebCrypto hash name selects for the HKDF arm,
|
|
67
|
+
* so the derivation matches `crypto.subtle.deriveBits` for the same
|
|
68
|
+
* parameters.
|
|
59
69
|
*
|
|
60
70
|
* @param hash {string} a WebCrypto digest name (`SHA-256`, `SHA-512`)
|
|
61
71
|
* @returns {object} the noble hash
|
|
@@ -71,7 +81,7 @@ function nobleHash(hash) {
|
|
|
71
81
|
}
|
|
72
82
|
/**
|
|
73
83
|
* Derives the 32-byte unlock seed from an unlock secret, branching on the KDF
|
|
74
|
-
* family:
|
|
84
|
+
* family: Argon2id stretches a passphrase, HKDF expands already-uniform key
|
|
75
85
|
* material such as a passkey PRF output.
|
|
76
86
|
*
|
|
77
87
|
* Exported for the standing-credential derivation (`unlock/standingClient`):
|
|
@@ -90,15 +100,16 @@ export async function deriveUnlockSeed({ secret, kdf }) {
|
|
|
90
100
|
const secretBytes = typeof secret === 'string'
|
|
91
101
|
? new TextEncoder().encode(secret)
|
|
92
102
|
: new Uint8Array(secret);
|
|
93
|
-
const hash = nobleHash(kdf.hash);
|
|
94
103
|
const salt = new TextEncoder().encode(kdf.salt);
|
|
95
|
-
if (kdf.algorithm === '
|
|
96
|
-
return
|
|
97
|
-
|
|
104
|
+
if (kdf.algorithm === 'Argon2id') {
|
|
105
|
+
return argon2idAsync(secretBytes, salt, {
|
|
106
|
+
m: kdf.memory,
|
|
107
|
+
t: kdf.passes,
|
|
108
|
+
p: kdf.parallelism,
|
|
98
109
|
dkLen: UNLOCK_SEED_BYTES
|
|
99
110
|
});
|
|
100
111
|
}
|
|
101
|
-
return hkdf(hash, secretBytes, salt, new TextEncoder().encode(kdf.info), UNLOCK_SEED_BYTES);
|
|
112
|
+
return hkdf(nobleHash(kdf.hash), secretBytes, salt, new TextEncoder().encode(kdf.info), UNLOCK_SEED_BYTES);
|
|
102
113
|
}
|
|
103
114
|
/**
|
|
104
115
|
* Derives the full unlock identity from an unlock secret: the unlock
|
package/dist/keyring/kdf.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kdf.js","sourceRoot":"","sources":["../../src/keyring/kdf.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"kdf.js","sourceRoot":"","sources":["../../src/keyring/kdf.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAE1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAGnD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAA;AAC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AE,GAAG,EAAmB;IACvD,OAAO,aAAa,CAAC,GAAG,CAAC,CAAA;AAC3B,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2026 Interop Alliance. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The descriptor store over ONE encrypted collection's governing history log
|
|
6
|
+
* -- the collection's own `meta/log` sub-resource, whose verified head state
|
|
7
|
+
* IS its `encryption` descriptor. The sibling of the user key roster's
|
|
8
|
+
* builder ({@link userKeyRosterDescriptorStore}), over the same wrapped
|
|
9
|
+
* `logGovernedDescriptorStore`: reads resolve to the verified head, writes
|
|
10
|
+
* are signed appends, and `create` is the guarded genesis (`If-None-Match:
|
|
11
|
+
* *`) that declares the Collection governed. The server derives the
|
|
12
|
+
* Collection Description's `encryption` member from that log, so a governed
|
|
13
|
+
* collection's descriptor is never client-written into its Description.
|
|
14
|
+
*
|
|
15
|
+
* The transport seam is was-client's `resourceLogStore({ collection })`, so
|
|
16
|
+
* the handle passed in is the whole address: the store derives its own
|
|
17
|
+
* chain-head pin slot from the handle's Space and collection ids
|
|
18
|
+
* ({@link collectionDescriptorLogPinId}), and no caller names a `logId`.
|
|
19
|
+
*/
|
|
20
|
+
import type { Collection } from '@interop/was-client';
|
|
21
|
+
import type { ResourceLogPinStore, ResourceLogSigner } from '@interop/vh-resource-log';
|
|
22
|
+
import type { WebvhResourceLogController } from '../resourceLog/index.js';
|
|
23
|
+
import { type SealableEncryptionDescriptorStore } from './rosterLogStore.js';
|
|
24
|
+
/**
|
|
25
|
+
* Builds the log-governed, sealable descriptor store over one collection's
|
|
26
|
+
* governing history log.
|
|
27
|
+
*
|
|
28
|
+
* Reads resolve to the log's verified head (chain, entry proofs, external
|
|
29
|
+
* authorization against the independently verified account document, and the
|
|
30
|
+
* chain-head pin, all checked before a descriptor is handed out); writes are
|
|
31
|
+
* signed appends of the full next state; `create` is the guarded genesis that
|
|
32
|
+
* declares the Collection governed -- the epoch[0] install
|
|
33
|
+
* ({@link ensureIndexedFirstEpoch}) is what runs it. `seal()` is the backstop
|
|
34
|
+
* for a rotation that no-op'd and so left the log anchored before the account
|
|
35
|
+
* document's latest membership change, and `setMinimumControllerVersion` is
|
|
36
|
+
* the post-edit anchor a ceremony sets so its appends never resolve to a
|
|
37
|
+
* cached pre-edit view.
|
|
38
|
+
*
|
|
39
|
+
* The signer is the same `ResourceLogSigner` the roster takes: an enrolled
|
|
40
|
+
* client's account key ({@link userKeyRosterLogSigner}), or a standing
|
|
41
|
+
* credential's ladder VM on a credential-anchored account.
|
|
42
|
+
*
|
|
43
|
+
* The store's class is `collection-descriptor`, so a ladder-signed append is
|
|
44
|
+
* admitted on `assertionMethod` membership at the anchored version alone.
|
|
45
|
+
* The ceremony-tail license binds the user key roster log only: a descriptor
|
|
46
|
+
* append escrows one recipient into one collection, lands as a hash-chained
|
|
47
|
+
* entry attributable to that credential, and is auditable by the account's
|
|
48
|
+
* clients.
|
|
49
|
+
*
|
|
50
|
+
* @param options {object}
|
|
51
|
+
* @param options.collection {Collection} the collection handle whose
|
|
52
|
+
* `meta/log` is the log; its `spaceId` and `id` are what the pin slot is
|
|
53
|
+
* derived from, and its capability wiring is what every request rides
|
|
54
|
+
* @param options.resolveController {function}
|
|
55
|
+
* `() => Promise<WebvhResourceLogController>` -- the caller's currently
|
|
56
|
+
* verified controller view (`webvhResourceLogController` over a
|
|
57
|
+
* `verifyAccountLog` result), resolved per operation
|
|
58
|
+
* @param options.pinStore {ResourceLogPinStore} this client's chain-head
|
|
59
|
+
* pins, keyed per log
|
|
60
|
+
* @param options.signer {ResourceLogSigner} the signing key the appends
|
|
61
|
+
* this store writes are proved by. It must be listed under
|
|
62
|
+
* `assertionMethod` in the account document at the version the append
|
|
63
|
+
* anchors at, so a ceremony that strikes a key builds its collection stores
|
|
64
|
+
* on one its own edit leaves standing
|
|
65
|
+
* @returns {SealableEncryptionDescriptorStore}
|
|
66
|
+
*/
|
|
67
|
+
export declare function collectionDescriptorLogStore({ collection, resolveController, pinStore, signer }: {
|
|
68
|
+
collection: Collection;
|
|
69
|
+
resolveController: () => Promise<WebvhResourceLogController>;
|
|
70
|
+
pinStore: ResourceLogPinStore;
|
|
71
|
+
signer: ResourceLogSigner;
|
|
72
|
+
}): SealableEncryptionDescriptorStore;
|
|
73
|
+
//# sourceMappingURL=collectionLogStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collectionLogStore.d.ts","sourceRoot":"","sources":["../../src/keys/collectionLogStore.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAErD,OAAO,KAAK,EACV,mBAAmB,EACnB,iBAAiB,EAClB,MAAM,0BAA0B,CAAA;AAEjC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAA;AACzE,OAAO,EAEL,KAAK,iCAAiC,EACvC,MAAM,qBAAqB,CAAA;AAE5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,4BAA4B,CAAC,EAC3C,UAAU,EACV,iBAAiB,EACjB,QAAQ,EACR,MAAM,EACP,EAAE;IACD,UAAU,EAAE,UAAU,CAAA;IACtB,iBAAiB,EAAE,MAAM,OAAO,CAAC,0BAA0B,CAAC,CAAA;IAC5D,QAAQ,EAAE,mBAAmB,CAAA;IAC7B,MAAM,EAAE,iBAAiB,CAAA;CAC1B,GAAG,iCAAiC,CAYpC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { resourceLogStore } from '@interop/was-client/log';
|
|
2
|
+
import { collectionDescriptorLogPinId } from '../descriptors/logSource.js';
|
|
3
|
+
import { logGovernedDescriptorStore } from './rosterLogStore.js';
|
|
4
|
+
/**
|
|
5
|
+
* Builds the log-governed, sealable descriptor store over one collection's
|
|
6
|
+
* governing history log.
|
|
7
|
+
*
|
|
8
|
+
* Reads resolve to the log's verified head (chain, entry proofs, external
|
|
9
|
+
* authorization against the independently verified account document, and the
|
|
10
|
+
* chain-head pin, all checked before a descriptor is handed out); writes are
|
|
11
|
+
* signed appends of the full next state; `create` is the guarded genesis that
|
|
12
|
+
* declares the Collection governed -- the epoch[0] install
|
|
13
|
+
* ({@link ensureIndexedFirstEpoch}) is what runs it. `seal()` is the backstop
|
|
14
|
+
* for a rotation that no-op'd and so left the log anchored before the account
|
|
15
|
+
* document's latest membership change, and `setMinimumControllerVersion` is
|
|
16
|
+
* the post-edit anchor a ceremony sets so its appends never resolve to a
|
|
17
|
+
* cached pre-edit view.
|
|
18
|
+
*
|
|
19
|
+
* The signer is the same `ResourceLogSigner` the roster takes: an enrolled
|
|
20
|
+
* client's account key ({@link userKeyRosterLogSigner}), or a standing
|
|
21
|
+
* credential's ladder VM on a credential-anchored account.
|
|
22
|
+
*
|
|
23
|
+
* The store's class is `collection-descriptor`, so a ladder-signed append is
|
|
24
|
+
* admitted on `assertionMethod` membership at the anchored version alone.
|
|
25
|
+
* The ceremony-tail license binds the user key roster log only: a descriptor
|
|
26
|
+
* append escrows one recipient into one collection, lands as a hash-chained
|
|
27
|
+
* entry attributable to that credential, and is auditable by the account's
|
|
28
|
+
* clients.
|
|
29
|
+
*
|
|
30
|
+
* @param options {object}
|
|
31
|
+
* @param options.collection {Collection} the collection handle whose
|
|
32
|
+
* `meta/log` is the log; its `spaceId` and `id` are what the pin slot is
|
|
33
|
+
* derived from, and its capability wiring is what every request rides
|
|
34
|
+
* @param options.resolveController {function}
|
|
35
|
+
* `() => Promise<WebvhResourceLogController>` -- the caller's currently
|
|
36
|
+
* verified controller view (`webvhResourceLogController` over a
|
|
37
|
+
* `verifyAccountLog` result), resolved per operation
|
|
38
|
+
* @param options.pinStore {ResourceLogPinStore} this client's chain-head
|
|
39
|
+
* pins, keyed per log
|
|
40
|
+
* @param options.signer {ResourceLogSigner} the signing key the appends
|
|
41
|
+
* this store writes are proved by. It must be listed under
|
|
42
|
+
* `assertionMethod` in the account document at the version the append
|
|
43
|
+
* anchors at, so a ceremony that strikes a key builds its collection stores
|
|
44
|
+
* on one its own edit leaves standing
|
|
45
|
+
* @returns {SealableEncryptionDescriptorStore}
|
|
46
|
+
*/
|
|
47
|
+
export function collectionDescriptorLogStore({ collection, resolveController, pinStore, signer }) {
|
|
48
|
+
return logGovernedDescriptorStore({
|
|
49
|
+
log: resourceLogStore({ collection }),
|
|
50
|
+
resolveController,
|
|
51
|
+
pinStore,
|
|
52
|
+
logId: collectionDescriptorLogPinId({
|
|
53
|
+
spaceId: collection.spaceId,
|
|
54
|
+
collectionId: collection.id
|
|
55
|
+
}),
|
|
56
|
+
signer,
|
|
57
|
+
logClass: 'collection-descriptor'
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=collectionLogStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collectionLogStore.js","sourceRoot":"","sources":["../../src/keys/collectionLogStore.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAK1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAE1E,OAAO,EACL,0BAA0B,EAE3B,MAAM,qBAAqB,CAAA;AAE5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAM,UAAU,4BAA4B,CAAC,EAC3C,UAAU,EACV,iBAAiB,EACjB,QAAQ,EACR,MAAM,EAMP;IACC,OAAO,0BAA0B,CAAC;QAChC,GAAG,EAAE,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAC;QACrC,iBAAiB;QACjB,QAAQ;QACR,KAAK,EAAE,4BAA4B,CAAC;YAClC,OAAO,EAAE,UAAU,CAAC,OAAO;YAC3B,YAAY,EAAE,UAAU,CAAC,EAAE;SAC5B,CAAC;QACF,MAAM;QACN,QAAQ,EAAE,uBAAuB;KAClC,CAAC,CAAA;AACJ,CAAC"}
|
package/dist/keys/index.d.ts
CHANGED
|
@@ -22,13 +22,23 @@
|
|
|
22
22
|
* current epoch, refusing a `currentEpoch` that names no epoch in its own
|
|
23
23
|
* list" (`UserKeyRosterIntegrityError`); every roster and collection
|
|
24
24
|
* descriptor read that needs the current epoch goes through it.
|
|
25
|
-
* - `
|
|
26
|
-
*
|
|
25
|
+
* - `collectionDescriptorLogStore` -- the same store over ONE encrypted
|
|
26
|
+
* collection's governing history log (the collection's `meta/log`
|
|
27
|
+
* sub-resource, whose verified head state is its `encryption` descriptor).
|
|
28
|
+
* It derives its own chain-head pin slot from the collection handle, and
|
|
29
|
+
* carries the `collection-descriptor` log class, whose ladder-signed
|
|
30
|
+
* appends admit on `assertionMethod` membership alone.
|
|
31
|
+
* - `userKeyRosterDescriptorStore` -- the same store over the user key roster:
|
|
32
|
+
* reads resolve to the roster log's verified head
|
|
27
33
|
* (`key-map/user-key.jsonl`), writes append signed entries; built from a
|
|
28
34
|
* bare signing client for the login-time direct read. Sealable
|
|
29
35
|
* (`SealableEncryptionDescriptorStore` / `isSealableDescriptorStore`):
|
|
30
36
|
* `seal()` appends the idempotent backstop entry when the log's head still
|
|
31
37
|
* anchors before the account document's latest membership change.
|
|
38
|
+
*
|
|
39
|
+
* Those two builders are the subpath's whole store surface. Each states its
|
|
40
|
+
* log class at construction, and the generic wrapper under them takes a
|
|
41
|
+
* caller-chosen class and log id, so it stays module-internal.
|
|
32
42
|
* - `rosterRecipientKid` -- the one builder of a client's roster kid, shared by
|
|
33
43
|
* the enrollment wrap and the roster read. A retiring rotation names no kid:
|
|
34
44
|
* it converges onto the account document instead.
|
|
@@ -52,9 +62,10 @@
|
|
|
52
62
|
* names (also the completion sweep's driver).
|
|
53
63
|
* - `rotateRosterToDocumentAndCascade` -- the shared roster-and-cascade tail
|
|
54
64
|
* every account-membership ceremony ends with (a client disconnected, a
|
|
55
|
-
* standing unlock credential retired): the post-edit minimum controller
|
|
56
|
-
*
|
|
57
|
-
*
|
|
65
|
+
* standing unlock credential retired): the post-edit minimum controller
|
|
66
|
+
* version on the roster store AND on every log-governed collection store
|
|
67
|
+
* the fan-out touches, the convergence rotation with its seal backstop, and
|
|
68
|
+
* the collection fan-out onto the fresh user key.
|
|
58
69
|
* - `retireRosterRecipientAndCascade` -- the same tail for a ceremony that
|
|
59
70
|
* rotates BEFORE its document edit (the two forgets): the minimum
|
|
60
71
|
* controller version at the caller's anchor, one named recipient retired
|
|
@@ -82,8 +93,9 @@ export { anchorRosterStoreAt, retireRosterRecipientAndCascade, rotateRosterToDoc
|
|
|
82
93
|
export type { CascadeCollections, RosterCascadeResult, RosterSealReport, UserKeyAdoptedHook } from './userKeyRosterCascade.js';
|
|
83
94
|
export type { DescriptorStoreRead, UserKeyRosterReadResult } from './userKeyRoster.js';
|
|
84
95
|
export type { KeyAgreementDocument } from '../resourceLog/document.js';
|
|
96
|
+
export { collectionDescriptorLogStore } from './collectionLogStore.js';
|
|
85
97
|
export { userKeyRosterDescriptorStore, userKeyRosterPinId } from './rosterStore.js';
|
|
86
|
-
export {
|
|
98
|
+
export { isSealableDescriptorStore } from './rosterLogStore.js';
|
|
87
99
|
export type { SealableEncryptionDescriptorStore } from './rosterLogStore.js';
|
|
88
100
|
export { ensureIndexedFirstEpoch, ensureWalletSpaceEpochs, WalletSpaceProvisioningError, walletSpaceProvisioner } from './spaceEpochs.js';
|
|
89
101
|
export type { WalletSpaceEpochsResult } from './spaceEpochs.js';
|
package/dist/keys/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/keys/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/keys/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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nB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA;AAC/D,YAAY,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAA;AAE5E,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,kBAAkB,CAAA;AACzB,YAAY,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAA;AAE/D,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACf,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAE9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA"}
|
package/dist/keys/index.js
CHANGED
|
@@ -22,13 +22,23 @@
|
|
|
22
22
|
* current epoch, refusing a `currentEpoch` that names no epoch in its own
|
|
23
23
|
* list" (`UserKeyRosterIntegrityError`); every roster and collection
|
|
24
24
|
* descriptor read that needs the current epoch goes through it.
|
|
25
|
-
* - `
|
|
26
|
-
*
|
|
25
|
+
* - `collectionDescriptorLogStore` -- the same store over ONE encrypted
|
|
26
|
+
* collection's governing history log (the collection's `meta/log`
|
|
27
|
+
* sub-resource, whose verified head state is its `encryption` descriptor).
|
|
28
|
+
* It derives its own chain-head pin slot from the collection handle, and
|
|
29
|
+
* carries the `collection-descriptor` log class, whose ladder-signed
|
|
30
|
+
* appends admit on `assertionMethod` membership alone.
|
|
31
|
+
* - `userKeyRosterDescriptorStore` -- the same store over the user key roster:
|
|
32
|
+
* reads resolve to the roster log's verified head
|
|
27
33
|
* (`key-map/user-key.jsonl`), writes append signed entries; built from a
|
|
28
34
|
* bare signing client for the login-time direct read. Sealable
|
|
29
35
|
* (`SealableEncryptionDescriptorStore` / `isSealableDescriptorStore`):
|
|
30
36
|
* `seal()` appends the idempotent backstop entry when the log's head still
|
|
31
37
|
* anchors before the account document's latest membership change.
|
|
38
|
+
*
|
|
39
|
+
* Those two builders are the subpath's whole store surface. Each states its
|
|
40
|
+
* log class at construction, and the generic wrapper under them takes a
|
|
41
|
+
* caller-chosen class and log id, so it stays module-internal.
|
|
32
42
|
* - `rosterRecipientKid` -- the one builder of a client's roster kid, shared by
|
|
33
43
|
* the enrollment wrap and the roster read. A retiring rotation names no kid:
|
|
34
44
|
* it converges onto the account document instead.
|
|
@@ -52,9 +62,10 @@
|
|
|
52
62
|
* names (also the completion sweep's driver).
|
|
53
63
|
* - `rotateRosterToDocumentAndCascade` -- the shared roster-and-cascade tail
|
|
54
64
|
* every account-membership ceremony ends with (a client disconnected, a
|
|
55
|
-
* standing unlock credential retired): the post-edit minimum controller
|
|
56
|
-
*
|
|
57
|
-
*
|
|
65
|
+
* standing unlock credential retired): the post-edit minimum controller
|
|
66
|
+
* version on the roster store AND on every log-governed collection store
|
|
67
|
+
* the fan-out touches, the convergence rotation with its seal backstop, and
|
|
68
|
+
* the collection fan-out onto the fresh user key.
|
|
58
69
|
* - `retireRosterRecipientAndCascade` -- the same tail for a ceremony that
|
|
59
70
|
* rotates BEFORE its document edit (the two forgets): the minimum
|
|
60
71
|
* controller version at the caller's anchor, one named recipient retired
|
|
@@ -76,8 +87,9 @@ export { assertEnrolledClientKeyRecord, decodeClientKeyRecord, encodeClientKeyRe
|
|
|
76
87
|
export { addUserKeyRosterRecipient, convergeUserKeyRosterToDocument, currentEpochOf, enrolledClientRosterRecipients, ensureUserKeyRoster, UserKeyRosterContinuityError, UserKeyRosterIntegrityError, UserKeyRosterUnwrapError, userKeyRosterLogSigner, userKeyRosterRecipientResolver, readUserKeyRoster, replaceUserKeyRosterRecipients, rosterRecipientKid, rosterRecipientsToRetire, rosterWrapsRecipient, rotateUserKeyRoster } from './userKeyRoster.js';
|
|
77
88
|
export { cascadeCollectionsToUserKey, userKeyAsRecipient, rotateCollectionEpochsToUserKey, unwrapUserKeyGenerations } from './userKeyCascade.js';
|
|
78
89
|
export { anchorRosterStoreAt, retireRosterRecipientAndCascade, rotateRosterToDocumentAndCascade } from './userKeyRosterCascade.js';
|
|
90
|
+
export { collectionDescriptorLogStore } from './collectionLogStore.js';
|
|
79
91
|
export { userKeyRosterDescriptorStore, userKeyRosterPinId } from './rosterStore.js';
|
|
80
|
-
export {
|
|
92
|
+
export { isSealableDescriptorStore } from './rosterLogStore.js';
|
|
81
93
|
export { ensureIndexedFirstEpoch, ensureWalletSpaceEpochs, WalletSpaceProvisioningError, walletSpaceProvisioner } from './spaceEpochs.js';
|
|
82
94
|
export { readClientLabels, removeClientLabel, setClientLabel } from './clientLabels.js';
|
|
83
95
|
export { wasClientLabelsStore } from './wasLabelsStore.js';
|
package/dist/keys/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/keys/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/keys/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgFG;AACH,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAG5D,OAAO,EACL,6BAA6B,EAC7B,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,sBAAsB,CAAA;AAQ7B,OAAO,EACL,yBAAyB,EACzB,+BAA+B,EAC/B,cAAc,EACd,8BAA8B,EAC9B,mBAAmB,EACnB,4BAA4B,EAC5B,2BAA2B,EAC3B,wBAAwB,EACxB,sBAAsB,EACtB,8BAA8B,EAC9B,iBAAiB,EACjB,8BAA8B,EAC9B,kBAAkB,EAClB,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,oBAAoB,CAAA;AA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