@interop/wallet-core 0.51.0 → 0.52.1
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 +7 -11
- package/dist/clientAnnex/credentialAnchoredGenesis.d.ts +2 -2
- package/dist/clientAnnex/credentialAnchoredGenesis.d.ts.map +1 -1
- package/dist/clientAnnex/credentialAnchoredGenesis.js +1 -1
- package/dist/clientAnnex/forget.d.ts +18 -6
- package/dist/clientAnnex/forget.d.ts.map +1 -1
- package/dist/clientAnnex/forget.js +19 -6
- package/dist/clientAnnex/forget.js.map +1 -1
- package/dist/clientAnnex/forgetLast.d.ts +33 -20
- package/dist/clientAnnex/forgetLast.d.ts.map +1 -1
- package/dist/clientAnnex/forgetLast.js +43 -17
- package/dist/clientAnnex/forgetLast.js.map +1 -1
- package/dist/clientAnnex/gc.d.ts +3 -3
- package/dist/clientAnnex/gc.d.ts.map +1 -1
- package/dist/clientAnnex/gc.js +2 -2
- package/dist/clientAnnex/gc.js.map +1 -1
- package/dist/clientAnnex/index.d.ts +5 -5
- package/dist/clientAnnex/index.d.ts.map +1 -1
- package/dist/clientAnnex/index.js +4 -4
- package/dist/clientAnnex/index.js.map +1 -1
- package/dist/clientAnnex/ladder.d.ts +19 -11
- package/dist/clientAnnex/ladder.d.ts.map +1 -1
- package/dist/clientAnnex/ladder.js +77 -14
- package/dist/clientAnnex/ladder.js.map +1 -1
- package/dist/clientAnnex/ladderAnchored.d.ts +36 -7
- package/dist/clientAnnex/ladderAnchored.d.ts.map +1 -1
- package/dist/clientAnnex/ladderAnchored.js +80 -18
- package/dist/clientAnnex/ladderAnchored.js.map +1 -1
- package/dist/clientAnnex/log.d.ts +6 -6
- package/dist/clientAnnex/log.d.ts.map +1 -1
- package/dist/clientAnnex/log.js +8 -8
- package/dist/clientAnnex/log.js.map +1 -1
- package/dist/clientAnnex/recoveryLadderAnchored.d.ts +7 -7
- package/dist/clientAnnex/recoveryLadderAnchored.js +9 -9
- package/dist/clientAnnex/recoveryLadderAnchored.js.map +1 -1
- package/dist/clientAnnex/selfEnroll.d.ts +6 -4
- package/dist/clientAnnex/selfEnroll.d.ts.map +1 -1
- package/dist/clientAnnex/selfEnroll.js +19 -7
- package/dist/clientAnnex/selfEnroll.js.map +1 -1
- package/dist/clients/listing.d.ts +1 -1
- package/dist/clients/listing.d.ts.map +1 -1
- package/dist/clients/listing.js +1 -1
- package/dist/clients/listing.js.map +1 -1
- package/dist/clients/revocation.d.ts +1 -1
- package/dist/clients/rosterPolicy.d.ts +1 -1
- package/dist/clients/rosterPolicy.d.ts.map +1 -1
- package/dist/descriptors/acquire.js +1 -1
- package/dist/descriptors/logSource.d.ts +1 -2
- package/dist/descriptors/logSource.d.ts.map +1 -1
- package/dist/descriptors/logSource.js +2 -2
- package/dist/descriptors/logSource.js.map +1 -1
- package/dist/enrollment/enrollment.d.ts +1 -1
- package/dist/enrollment/enrollment.d.ts.map +1 -1
- package/dist/enrollment/enrollment.js +2 -1
- package/dist/enrollment/enrollment.js.map +1 -1
- package/dist/genesis/accountGenesis.d.ts +1 -1
- package/dist/genesis/accountGenesis.d.ts.map +1 -1
- package/dist/genesis/accountGenesis.js +1 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/keyring/kdf.d.ts +6 -20
- package/dist/keyring/kdf.d.ts.map +1 -1
- package/dist/keyring/kdf.js +8 -5
- package/dist/keyring/kdf.js.map +1 -1
- package/dist/keyring/unlockSpace.js +1 -1
- package/dist/keys/rosterLogStore.d.ts +16 -14
- package/dist/keys/rosterLogStore.d.ts.map +1 -1
- package/dist/keys/rosterLogStore.js +149 -32
- package/dist/keys/rosterLogStore.js.map +1 -1
- package/dist/keys/rosterStore.d.ts +8 -7
- package/dist/keys/rosterStore.d.ts.map +1 -1
- package/dist/keys/rosterStore.js +6 -6
- package/dist/keys/rosterStore.js.map +1 -1
- package/dist/keys/spaceEpochs.d.ts +1 -1
- package/dist/keys/spaceEpochs.js +1 -1
- package/dist/keys/userKeyRoster.d.ts +3 -3
- package/dist/keys/userKeyRoster.d.ts.map +1 -1
- package/dist/keys/userKeyRoster.js +3 -3
- package/dist/keys/userKeyRoster.js.map +1 -1
- package/dist/recovery/index.d.ts +2 -2
- package/dist/recovery/index.js +2 -2
- package/dist/recovery/recoveryDelegation.js +1 -1
- package/dist/recovery/recoveryDelegation.js.map +1 -1
- package/dist/recovery/recoveryWebvh.d.ts +4 -4
- package/dist/recovery/recoveryWebvh.js +5 -5
- package/dist/request/appKey.d.ts +9 -3
- package/dist/request/appKey.d.ts.map +1 -1
- package/dist/request/appKey.js +13 -8
- package/dist/request/appKey.js.map +1 -1
- package/dist/request/classify.d.ts.map +1 -1
- package/dist/request/classify.js +13 -1
- package/dist/request/classify.js.map +1 -1
- package/dist/request/ephemeralExchange.d.ts +6 -1
- package/dist/request/ephemeralExchange.d.ts.map +1 -1
- package/dist/request/ephemeralExchange.js +6 -1
- package/dist/request/ephemeralExchange.js.map +1 -1
- package/dist/request/exchangeClient.d.ts +0 -23
- package/dist/request/exchangeClient.d.ts.map +1 -1
- package/dist/request/exchangeClient.js +30 -1
- package/dist/request/exchangeClient.js.map +1 -1
- package/dist/request/index.d.ts +4 -1
- package/dist/request/index.d.ts.map +1 -1
- package/dist/request/index.js +4 -1
- package/dist/request/index.js.map +1 -1
- package/dist/request/interactionRequest.d.ts +23 -0
- package/dist/request/interactionRequest.d.ts.map +1 -0
- package/dist/request/interactionRequest.js +46 -0
- package/dist/request/interactionRequest.js.map +1 -0
- package/dist/request/interactionUrl.d.ts +3 -14
- package/dist/request/interactionUrl.d.ts.map +1 -1
- package/dist/request/interactionUrl.js +20 -1
- package/dist/request/interactionUrl.js.map +1 -1
- package/dist/resourceLog/controller.d.ts +48 -49
- package/dist/resourceLog/controller.d.ts.map +1 -1
- package/dist/resourceLog/controller.js +40 -20
- package/dist/resourceLog/controller.js.map +1 -1
- package/dist/resourceLog/errors.d.ts +12 -78
- package/dist/resourceLog/errors.d.ts.map +1 -1
- package/dist/resourceLog/errors.js +12 -79
- package/dist/resourceLog/errors.js.map +1 -1
- package/dist/resourceLog/index.d.ts +17 -22
- package/dist/resourceLog/index.d.ts.map +1 -1
- package/dist/resourceLog/index.js +16 -21
- package/dist/resourceLog/index.js.map +1 -1
- package/dist/resourceLog/license.d.ts +27 -26
- package/dist/resourceLog/license.d.ts.map +1 -1
- package/dist/resourceLog/license.js +31 -30
- package/dist/resourceLog/license.js.map +1 -1
- package/dist/unlock/index.d.ts +6 -6
- package/dist/unlock/index.d.ts.map +1 -1
- package/dist/unlock/index.js +5 -5
- package/dist/unlock/retire.d.ts +29 -28
- package/dist/unlock/retire.d.ts.map +1 -1
- package/dist/unlock/retire.js +25 -16
- package/dist/unlock/retire.js.map +1 -1
- package/dist/unlock/standingClient.d.ts +1 -1
- package/dist/unlock/standingClient.js +3 -3
- package/dist/unlock/standingWebvh.d.ts +28 -10
- package/dist/unlock/standingWebvh.d.ts.map +1 -1
- package/dist/unlock/standingWebvh.js +75 -37
- package/dist/unlock/standingWebvh.js.map +1 -1
- package/dist/unlock/unlockRecord.js +1 -1
- package/dist/webvh/delegatedLogStore.d.ts +2 -2
- package/dist/webvh/delegatedLogStore.js +2 -2
- package/dist/webvh/didWeb.js +1 -1
- package/dist/webvh/didWeb.js.map +1 -1
- package/dist/webvh/didWebvh.d.ts +3 -3
- package/dist/webvh/didWebvh.d.ts.map +1 -1
- package/dist/webvh/didWebvh.js +5 -5
- package/dist/webvh/didWebvh.js.map +1 -1
- package/dist/webvh/listClients.js +1 -1
- package/dist/webvh/listClients.js.map +1 -1
- package/dist/webvh/verifyLog.d.ts +1 -1
- package/dist/webvh/verifyLog.d.ts.map +1 -1
- package/dist/webvh/verifyLog.js +1 -2
- package/dist/webvh/verifyLog.js.map +1 -1
- package/package.json +5 -9
- package/dist/display/alignment.d.ts +0 -55
- package/dist/display/alignment.d.ts.map +0 -1
- package/dist/display/alignment.js +0 -117
- package/dist/display/alignment.js.map +0 -1
- package/dist/display/credentialName.d.ts +0 -42
- package/dist/display/credentialName.d.ts.map +0 -1
- package/dist/display/credentialName.js +0 -106
- package/dist/display/credentialName.js.map +0 -1
- package/dist/display/displayFields.d.ts +0 -59
- package/dist/display/displayFields.d.ts.map +0 -1
- package/dist/display/displayFields.js +0 -136
- package/dist/display/displayFields.js.map +0 -1
- package/dist/display/evidence.d.ts +0 -50
- package/dist/display/evidence.d.ts.map +0 -1
- package/dist/display/evidence.js +0 -67
- package/dist/display/evidence.js.map +0 -1
- package/dist/display/image.d.ts +0 -18
- package/dist/display/image.d.ts.map +0 -1
- package/dist/display/image.js +0 -23
- package/dist/display/image.js.map +0 -1
- package/dist/display/index.d.ts +0 -38
- package/dist/display/index.d.ts.map +0 -1
- package/dist/display/index.js +0 -32
- package/dist/display/index.js.map +0 -1
- package/dist/display/issuer.d.ts +0 -105
- package/dist/display/issuer.d.ts.map +0 -1
- package/dist/display/issuer.js +0 -126
- package/dist/display/issuer.js.map +0 -1
- package/dist/display/obv3.d.ts +0 -82
- package/dist/display/obv3.d.ts.map +0 -1
- package/dist/display/obv3.js +0 -117
- package/dist/display/obv3.js.map +0 -1
- package/dist/display/parse.d.ts +0 -66
- package/dist/display/parse.d.ts.map +0 -1
- package/dist/display/parse.js +0 -104
- package/dist/display/parse.js.map +0 -1
- package/dist/display/subject.d.ts +0 -79
- package/dist/display/subject.d.ts.map +0 -1
- package/dist/display/subject.js +0 -124
- package/dist/display/subject.js.map +0 -1
- package/dist/display/text.d.ts +0 -53
- package/dist/display/text.d.ts.map +0 -1
- package/dist/display/text.js +0 -78
- package/dist/display/text.js.map +0 -1
- package/dist/display/types.d.ts +0 -55
- package/dist/display/types.d.ts.map +0 -1
- package/dist/display/types.js +0 -41
- package/dist/display/types.js.map +0 -1
- package/dist/display/validity.d.ts +0 -51
- package/dist/display/validity.d.ts.map +0 -1
- package/dist/display/validity.js +0 -51
- package/dist/display/validity.js.map +0 -1
- package/dist/display/verificationView.d.ts +0 -115
- package/dist/display/verificationView.d.ts.map +0 -1
- package/dist/display/verificationView.js +0 -199
- package/dist/display/verificationView.js.map +0 -1
- package/dist/resourceLog/append.d.ts +0 -112
- package/dist/resourceLog/append.d.ts.map +0 -1
- package/dist/resourceLog/append.js +0 -197
- package/dist/resourceLog/append.js.map +0 -1
- package/dist/resourceLog/entry.d.ts +0 -68
- package/dist/resourceLog/entry.d.ts.map +0 -1
- package/dist/resourceLog/entry.js +0 -167
- package/dist/resourceLog/entry.js.map +0 -1
- package/dist/resourceLog/pin.d.ts +0 -82
- package/dist/resourceLog/pin.d.ts.map +0 -1
- package/dist/resourceLog/pin.js +0 -57
- package/dist/resourceLog/pin.js.map +0 -1
- package/dist/resourceLog/seal.d.ts +0 -97
- package/dist/resourceLog/seal.d.ts.map +0 -1
- package/dist/resourceLog/seal.js +0 -113
- package/dist/resourceLog/seal.js.map +0 -1
- package/dist/resourceLog/verify.d.ts +0 -96
- package/dist/resourceLog/verify.d.ts.map +0 -1
- package/dist/resourceLog/verify.js +0 -474
- package/dist/resourceLog/verify.js.map +0 -1
- package/dist/resourceLog/vmFragment.d.ts +0 -33
- package/dist/resourceLog/vmFragment.d.ts.map +0 -1
- package/dist/resourceLog/vmFragment.js +0 -39
- package/dist/resourceLog/vmFragment.js.map +0 -1
|
@@ -2,77 +2,24 @@
|
|
|
2
2
|
* Copyright (c) 2026 Interop Alliance. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* The resource-log
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* -
|
|
14
|
-
* conflicts with what this client has already accepted: a rollback behind
|
|
15
|
-
* the chain-head pin, a fork off the pinned history, or an SCID/method
|
|
16
|
-
* switch outside a verified handover. The log may be internally consistent;
|
|
17
|
-
* it is not the continuation of the history this client pinned.
|
|
18
|
-
* - {@link ResourceLogClosedError} -- an append refused because the verified
|
|
19
|
-
* head is a terminal handover entry. Not an attack: the log's own authors
|
|
20
|
-
* closed it, and a verifier of this profile must refuse to extend a closed
|
|
21
|
-
* log even though nothing currently emits terminal entries.
|
|
22
|
-
* - {@link ResourceLogLicenseError} -- a ladder-signed append outside the
|
|
23
|
-
* ceremony-tail license. An admission refusal, not log corruption: the
|
|
24
|
-
* append (attempted, or already served) is not licensed, and the same
|
|
25
|
-
* append can become licensed after a posture-changing controller-document
|
|
26
|
-
* entry -- callers must not treat it with the reject-the-whole-log
|
|
27
|
-
* severity of the integrity class.
|
|
5
|
+
* The one refusal class the resource-log layer still owns after the generic
|
|
6
|
+
* client side moved to `@interop/vh-resource-log`: the ceremony-tail license
|
|
7
|
+
* refusal. The generic taxonomy (`ResourceLogIntegrityError`,
|
|
8
|
+
* `ResourceLogContinuityError`, `ResourceLogClosedError`,
|
|
9
|
+
* `LogNotConfirmedError`, and the store port's `ResourceLogConflictError`)
|
|
10
|
+
* is the library's; wallet-core re-exports none of it -- one owner per name.
|
|
11
|
+
* Like every class in that taxonomy, this one assigns its `name` string
|
|
12
|
+
* explicitly and is matched by `err.name` across package boundaries (the
|
|
13
|
+
* WC-64 rule; minified class names do not survive bundling).
|
|
28
14
|
*/
|
|
29
|
-
/**
|
|
30
|
-
* A served log failed verification: malformed entries, a non-verifying SCID,
|
|
31
|
-
* a broken hash chain, a failing proof, or a signer the controller document
|
|
32
|
-
* does not back at the entry's anchored version. Fabrication-class: refused
|
|
33
|
-
* as something no enrolled client produced.
|
|
34
|
-
*/
|
|
35
|
-
export class ResourceLogIntegrityError extends Error {
|
|
36
|
-
constructor(message, options) {
|
|
37
|
-
super(message, options);
|
|
38
|
-
this.name = 'ResourceLogIntegrityError';
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* A served log conflicts with this client's chain-head pin: `rollback` (the
|
|
43
|
-
* served head is behind the pinned head -- possibly replication lag; the pin
|
|
44
|
-
* is never regressed and the caller may retry), `fork` (the served log
|
|
45
|
-
* diverges from the pinned history -- both logs are transferable evidence of
|
|
46
|
-
* equivocation, so the served entries ride along), `scid-switch` /
|
|
47
|
-
* `method-switch` (a different log identity or format under the pinned
|
|
48
|
-
* location, outside a verified handover).
|
|
49
|
-
*/
|
|
50
|
-
export class ResourceLogContinuityError extends Error {
|
|
51
|
-
reason;
|
|
52
|
-
pinnedHead;
|
|
53
|
-
/**
|
|
54
|
-
* On a `fork`, the full served log retained as evidence: every entry is
|
|
55
|
-
* signed, so a conflicting pair of logs under one SCID is transferable,
|
|
56
|
-
* independently verifiable proof of equivocation.
|
|
57
|
-
*/
|
|
58
|
-
servedEntries;
|
|
59
|
-
constructor({ reason, pinnedHead, servedEntries }) {
|
|
60
|
-
super(`The served resource log is not a continuation of the pinned history ` +
|
|
61
|
-
`(${reason}; pinned head ${pinnedHead}).`);
|
|
62
|
-
this.name = 'ResourceLogContinuityError';
|
|
63
|
-
this.reason = reason;
|
|
64
|
-
this.pinnedHead = pinnedHead;
|
|
65
|
-
this.servedEntries = servedEntries;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
15
|
/**
|
|
69
16
|
* A ladder-signed append outside the ceremony-tail license: it is not the
|
|
70
|
-
* log's first entry, and it does not
|
|
71
|
-
* document version no verified entry already
|
|
17
|
+
* log's first entry, and it does not carry an inventory-changing controller
|
|
18
|
+
* document version no verified entry already carries at or past. Above all
|
|
72
19
|
* this refuses the silent-rekey shape -- a ladder-signed rotation against an
|
|
73
20
|
* unchanged document. Write-time admission class: the log is not corrupt and
|
|
74
21
|
* whoever signed the append genuinely holds the credential; the append is
|
|
75
|
-
* merely unlicensed, and a retry after a
|
|
22
|
+
* merely unlicensed, and a retry after a inventory-changing document entry may
|
|
76
23
|
* succeed.
|
|
77
24
|
*/
|
|
78
25
|
export class ResourceLogLicenseError extends Error {
|
|
@@ -81,18 +28,4 @@ export class ResourceLogLicenseError extends Error {
|
|
|
81
28
|
this.name = 'ResourceLogLicenseError';
|
|
82
29
|
}
|
|
83
30
|
}
|
|
84
|
-
/**
|
|
85
|
-
* An append was refused because the log's verified head is a terminal
|
|
86
|
-
* handover entry: the log is closed and names a successor, and this profile
|
|
87
|
-
* forbids extending a history its authors have closed.
|
|
88
|
-
*/
|
|
89
|
-
export class ResourceLogClosedError extends Error {
|
|
90
|
-
nextLog;
|
|
91
|
-
constructor({ nextLog }) {
|
|
92
|
-
super('The resource log is closed by a terminal handover entry; appends must ' +
|
|
93
|
-
'go to its successor log.');
|
|
94
|
-
this.name = 'ResourceLogClosedError';
|
|
95
|
-
this.nextLog = nextLog;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
31
|
//# sourceMappingURL=errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/resourceLog/errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/resourceLog/errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;GAUG;AAEH;;;;;;;;;GASG;AACH,MAAM,OAAO,uBAAwB,SAAQ,KAAK;IAChD,YAAY,OAAe,EAAE,OAA6B;QACxD,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;QACvB,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAA;IACvC,CAAC;CACF"}
|
|
@@ -2,28 +2,23 @@
|
|
|
2
2
|
* Copyright (c) 2026 Interop Alliance. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* The `@interop/wallet-core/resourceLog` entry: the
|
|
6
|
-
* Resource Log Profile
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* the
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
5
|
+
* The `@interop/wallet-core/resourceLog` entry: the wallet-domain residue of
|
|
6
|
+
* the Resource Log Profile's client side after the generic half moved to
|
|
7
|
+
* `@interop/vh-resource-log` -- the did:webvh controller adapter (the
|
|
8
|
+
* library's controller port extended with the per-version
|
|
9
|
+
* credential-inventory view, supplying the mandatory `admitAppend` admission
|
|
10
|
+
* hook), and the ceremony-tail license the hook carries
|
|
11
|
+
* (`assertLadderAppendLicensed`, refusing with `ResourceLogLicenseError`).
|
|
12
|
+
* Everything generic -- the JSON Lines codec, the store port and
|
|
13
|
+
* `confirmAppend`, chain verification, the chain-head pin
|
|
14
|
+
* (`ResourceLogPinStore` and `resourceLogPinId`; the named slot-key builders
|
|
15
|
+
* stay on their owning subpaths: `accountLogPinId` in `webvh`,
|
|
16
|
+
* `userKeyRosterPinId` in `keys`, `clientAnnexLogPinId` in `clientAnnex`),
|
|
17
|
+
* the append path, and the sealing sweep -- lives in the library, and this
|
|
18
|
+
* subpath re-exports none of it: one owner per name. Kept out of the root
|
|
19
|
+
* export: this subpath pulls the did:webvh and ed25519 dependency graph.
|
|
19
20
|
*/
|
|
20
|
-
export { webvhResourceLogController, type
|
|
21
|
-
export {
|
|
21
|
+
export { webvhResourceLogController, type ControllerInventory, type WebvhResourceLogController } from './controller.js';
|
|
22
|
+
export { ResourceLogLicenseError } from './errors.js';
|
|
22
23
|
export { assertLadderAppendLicensed } from './license.js';
|
|
23
|
-
export { buildResourceLogEntry, buildResourceLogGenesis, type ResourceLogSigner } from './entry.js';
|
|
24
|
-
export { memoryResourceLogPinStore, resourceLogPinId, type ResourceLogHeadPin, type ResourceLogPinStore } from './pin.js';
|
|
25
|
-
export { isTerminalResourceLogEntry, verifyResourceLog, verifyResourceLogHandover, type VerifiedResourceLog } from './verify.js';
|
|
26
|
-
export { appendResourceLog, createResourceLog, readResourceLog } from './append.js';
|
|
27
|
-
export { latestAssertionRemovalIndex, sealResourceLog } from './seal.js';
|
|
28
|
-
export { vmFragmentOf } from './vmFragment.js';
|
|
29
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resourceLog/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resourceLog/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EACL,0BAA0B,EAC1B,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAChC,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -2,28 +2,23 @@
|
|
|
2
2
|
* Copyright (c) 2026 Interop Alliance. All rights reserved.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* The `@interop/wallet-core/resourceLog` entry: the
|
|
6
|
-
* Resource Log Profile
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* the
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
5
|
+
* The `@interop/wallet-core/resourceLog` entry: the wallet-domain residue of
|
|
6
|
+
* the Resource Log Profile's client side after the generic half moved to
|
|
7
|
+
* `@interop/vh-resource-log` -- the did:webvh controller adapter (the
|
|
8
|
+
* library's controller port extended with the per-version
|
|
9
|
+
* credential-inventory view, supplying the mandatory `admitAppend` admission
|
|
10
|
+
* hook), and the ceremony-tail license the hook carries
|
|
11
|
+
* (`assertLadderAppendLicensed`, refusing with `ResourceLogLicenseError`).
|
|
12
|
+
* Everything generic -- the JSON Lines codec, the store port and
|
|
13
|
+
* `confirmAppend`, chain verification, the chain-head pin
|
|
14
|
+
* (`ResourceLogPinStore` and `resourceLogPinId`; the named slot-key builders
|
|
15
|
+
* stay on their owning subpaths: `accountLogPinId` in `webvh`,
|
|
16
|
+
* `userKeyRosterPinId` in `keys`, `clientAnnexLogPinId` in `clientAnnex`),
|
|
17
|
+
* the append path, and the sealing sweep -- lives in the library, and this
|
|
18
|
+
* subpath re-exports none of it: one owner per name. Kept out of the root
|
|
19
|
+
* export: this subpath pulls the did:webvh and ed25519 dependency graph.
|
|
19
20
|
*/
|
|
20
21
|
export { webvhResourceLogController } from './controller.js';
|
|
21
|
-
export {
|
|
22
|
+
export { ResourceLogLicenseError } from './errors.js';
|
|
22
23
|
export { assertLadderAppendLicensed } from './license.js';
|
|
23
|
-
export { buildResourceLogEntry, buildResourceLogGenesis } from './entry.js';
|
|
24
|
-
export { memoryResourceLogPinStore, resourceLogPinId } from './pin.js';
|
|
25
|
-
export { isTerminalResourceLogEntry, verifyResourceLog, verifyResourceLogHandover } from './verify.js';
|
|
26
|
-
export { appendResourceLog, createResourceLog, readResourceLog } from './append.js';
|
|
27
|
-
export { latestAssertionRemovalIndex, sealResourceLog } from './seal.js';
|
|
28
|
-
export { vmFragmentOf } from './vmFragment.js';
|
|
29
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resourceLog/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resourceLog/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EACL,0BAA0B,EAG3B,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -6,39 +6,40 @@
|
|
|
6
6
|
* of the ladder VM's authority clauses). A ladder-signed append is accepted
|
|
7
7
|
* in exactly two shapes: the log's first entry (creation, never extension --
|
|
8
8
|
* callers admit that shape by not calling this check on a genesis entry),
|
|
9
|
-
* or a rotation
|
|
10
|
-
* one-shot -- refused when the verified log head already carries
|
|
11
|
-
*
|
|
9
|
+
* or a rotation that carries an inventory-changing controller document
|
|
10
|
+
* version, one-shot -- refused when the verified log head already carries
|
|
11
|
+
* an entry at that version or later. Everything else, above all a rotation
|
|
12
12
|
* against an unchanged document (the silent-rekey shape), is refused with
|
|
13
|
-
* {@link ResourceLogLicenseError}.
|
|
14
|
-
* controller's verified version history, the structural twin of the
|
|
15
|
-
* sweep's `
|
|
13
|
+
* {@link ResourceLogLicenseError}. Controller versions compare by position
|
|
14
|
+
* in the controller's verified version history, the structural twin of the
|
|
15
|
+
* sealing sweep's `headControllerVersionIndex >= removalIndex` check.
|
|
16
16
|
*/
|
|
17
|
-
import type {
|
|
17
|
+
import type { WebvhResourceLogController } from './controller.js';
|
|
18
18
|
/**
|
|
19
19
|
* Evaluates the ceremony-tail license's second shape for one ladder-signed
|
|
20
|
-
* append: the append must
|
|
21
|
-
* S(V) differs from S(V-1) in either direction, with S(-1) empty for
|
|
22
|
-
* genesis
|
|
23
|
-
*
|
|
24
|
-
* so a torn ceremony's late-arriving tail still passes
|
|
25
|
-
* rotation against the same
|
|
26
|
-
* unversioned controller, where no
|
|
27
|
-
* refused fail-closed.
|
|
20
|
+
* append: the append must carry an inventory-changing document version V --
|
|
21
|
+
* S(V) differs from S(V-1) in either direction, with S(-1) empty for the
|
|
22
|
+
* genesis version -- and no verified entry may already carry V or later
|
|
23
|
+
* (`headControllerVersionIndex >= controllerVersionIndex` refuses; the
|
|
24
|
+
* license is one-shot, so a torn ceremony's late-arriving tail still passes
|
|
25
|
+
* while a second rotation against the same version does not). A `null`
|
|
26
|
+
* controller version index (an unversioned controller, where no version
|
|
27
|
+
* exists to license against) is refused fail-closed.
|
|
28
28
|
*
|
|
29
29
|
* @param options {object}
|
|
30
|
-
* @param options.controller {
|
|
31
|
-
*
|
|
32
|
-
* @param options.
|
|
33
|
-
* index into `controller.versionIds` (`null`:
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
30
|
+
* @param options.controller {object} the verified controller view's
|
|
31
|
+
* version list and inventory accessor
|
|
32
|
+
* @param options.controllerVersionIndex {number | null} the append's
|
|
33
|
+
* controller version as an index into `controller.versionIds` (`null`:
|
|
34
|
+
* no controller version)
|
|
35
|
+
* @param options.headControllerVersionIndex {number | null} the verified
|
|
36
|
+
* log head's effective controller version index before this append
|
|
37
|
+
* (`null`: the log has no versioned entries yet)
|
|
37
38
|
* @returns {Promise<void>}
|
|
38
39
|
*/
|
|
39
|
-
export declare function assertLadderAppendLicensed({ controller,
|
|
40
|
-
controller:
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
export declare function assertLadderAppendLicensed({ controller, controllerVersionIndex, headControllerVersionIndex }: {
|
|
41
|
+
controller: Pick<WebvhResourceLogController, 'versionIds' | 'inventoryAt'>;
|
|
42
|
+
controllerVersionIndex: number | null;
|
|
43
|
+
headControllerVersionIndex: number | null;
|
|
43
44
|
}): Promise<void>;
|
|
44
45
|
//# sourceMappingURL=license.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"license.d.ts","sourceRoot":"","sources":["../../src/resourceLog/license.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"license.d.ts","sourceRoot":"","sources":["../../src/resourceLog/license.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAsBjE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,0BAA0B,CAAC,EAC/C,UAAU,EACV,sBAAsB,EACtB,0BAA0B,EAC3B,EAAE;IACD,UAAU,EAAE,IAAI,CAAC,0BAA0B,EAAE,YAAY,GAAG,aAAa,CAAC,CAAA;IAC1E,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAA;IACrC,0BAA0B,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1C,GAAG,OAAO,CAAC,IAAI,CAAC,CAsChB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResourceLogLicenseError } from './errors.js';
|
|
2
2
|
/**
|
|
3
|
-
* Set equality over
|
|
3
|
+
* Set equality over inventory members.
|
|
4
4
|
*
|
|
5
5
|
* @param left {Set<string>}
|
|
6
6
|
* @param right {Set<string>}
|
|
@@ -19,45 +19,46 @@ function setsEqual(left, right) {
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Evaluates the ceremony-tail license's second shape for one ladder-signed
|
|
22
|
-
* append: the append must
|
|
23
|
-
* S(V) differs from S(V-1) in either direction, with S(-1) empty for
|
|
24
|
-
* genesis
|
|
25
|
-
*
|
|
26
|
-
* so a torn ceremony's late-arriving tail still passes
|
|
27
|
-
* rotation against the same
|
|
28
|
-
* unversioned controller, where no
|
|
29
|
-
* refused fail-closed.
|
|
22
|
+
* append: the append must carry an inventory-changing document version V --
|
|
23
|
+
* S(V) differs from S(V-1) in either direction, with S(-1) empty for the
|
|
24
|
+
* genesis version -- and no verified entry may already carry V or later
|
|
25
|
+
* (`headControllerVersionIndex >= controllerVersionIndex` refuses; the
|
|
26
|
+
* license is one-shot, so a torn ceremony's late-arriving tail still passes
|
|
27
|
+
* while a second rotation against the same version does not). A `null`
|
|
28
|
+
* controller version index (an unversioned controller, where no version
|
|
29
|
+
* exists to license against) is refused fail-closed.
|
|
30
30
|
*
|
|
31
31
|
* @param options {object}
|
|
32
|
-
* @param options.controller {
|
|
33
|
-
*
|
|
34
|
-
* @param options.
|
|
35
|
-
* index into `controller.versionIds` (`null`:
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
32
|
+
* @param options.controller {object} the verified controller view's
|
|
33
|
+
* version list and inventory accessor
|
|
34
|
+
* @param options.controllerVersionIndex {number | null} the append's
|
|
35
|
+
* controller version as an index into `controller.versionIds` (`null`:
|
|
36
|
+
* no controller version)
|
|
37
|
+
* @param options.headControllerVersionIndex {number | null} the verified
|
|
38
|
+
* log head's effective controller version index before this append
|
|
39
|
+
* (`null`: the log has no versioned entries yet)
|
|
39
40
|
* @returns {Promise<void>}
|
|
40
41
|
*/
|
|
41
|
-
export async function assertLadderAppendLicensed({ controller,
|
|
42
|
-
if (
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
export async function assertLadderAppendLicensed({ controller, controllerVersionIndex, headControllerVersionIndex }) {
|
|
43
|
+
if (controllerVersionIndex === null ||
|
|
44
|
+
controllerVersionIndex < 0 ||
|
|
45
|
+
controllerVersionIndex >= controller.versionIds.length) {
|
|
45
46
|
throw new ResourceLogLicenseError('A ladder-signed append past the genesis entry cannot be licensed ' +
|
|
46
|
-
'without
|
|
47
|
+
'without a controller document version to license against.');
|
|
47
48
|
}
|
|
48
|
-
const current = (await controller.
|
|
49
|
-
const previous =
|
|
49
|
+
const current = (await controller.inventoryAt(controller.versionIds[controllerVersionIndex])).inventoryKeys;
|
|
50
|
+
const previous = controllerVersionIndex === 0
|
|
50
51
|
? new Set()
|
|
51
|
-
: (await controller.
|
|
52
|
-
.postureKeys;
|
|
52
|
+
: (await controller.inventoryAt(controller.versionIds[controllerVersionIndex - 1])).inventoryKeys;
|
|
53
53
|
if (setsEqual(current, previous)) {
|
|
54
|
-
throw new ResourceLogLicenseError('The ladder-signed append
|
|
55
|
-
'that did not change the credential
|
|
54
|
+
throw new ResourceLogLicenseError('The ladder-signed append carries a controller document version ' +
|
|
55
|
+
'that did not change the credential inventory (a rotation against an ' +
|
|
56
56
|
'unchanged document is never licensed).');
|
|
57
57
|
}
|
|
58
|
-
if (
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
if (headControllerVersionIndex !== null &&
|
|
59
|
+
headControllerVersionIndex >= controllerVersionIndex) {
|
|
60
|
+
throw new ResourceLogLicenseError('The verified log head already carries an entry at or past this ' +
|
|
61
|
+
'inventory-changing document version (the license is one-shot).');
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
//# sourceMappingURL=license.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"license.js","sourceRoot":"","sources":["../../src/resourceLog/license.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD;;;;;;GAMG;AACH,SAAS,SAAS,CAAC,IAAiB,EAAE,KAAkB;IACtD,IAAI,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,EAAE,CAAC;QAC7B,OAAO,KAAK,CAAA;IACd,CAAC;IACD,KAAK,MAAM,MAAM,IAAI,IAAI,EAAE,CAAC;QAC1B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;YACvB,OAAO,KAAK,CAAA;QACd,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"license.js","sourceRoot":"","sources":["../../src/resourceLog/license.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD;;;;;;GAMG;AACH,SAAS,SAAS,CAAC,IAAiB,EAAE,KAAkB;IACtD,IAAI,IAAI,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,EAAE,CAAC;QAC7B,OAAO,KAAK,CAAA;IACd,CAAC;IACD,KAAK,MAAM,MAAM,IAAI,IAAI,EAAE,CAAC;QAC1B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;YACvB,OAAO,KAAK,CAAA;QACd,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAAC,EAC/C,UAAU,EACV,sBAAsB,EACtB,0BAA0B,EAK3B;IACC,IACE,sBAAsB,KAAK,IAAI;QAC/B,sBAAsB,GAAG,CAAC;QAC1B,sBAAsB,IAAI,UAAU,CAAC,UAAU,CAAC,MAAM,EACtD,CAAC;QACD,MAAM,IAAI,uBAAuB,CAC/B,mEAAmE;YACjE,2DAA2D,CAC9D,CAAA;IACH,CAAC;IACD,MAAM,OAAO,GAAG,CACd,MAAM,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,UAAU,CAAC,sBAAsB,CAAE,CAAC,CAC7E,CAAC,aAAa,CAAA;IACf,MAAM,QAAQ,GACZ,sBAAsB,KAAK,CAAC;QAC1B,CAAC,CAAC,IAAI,GAAG,EAAU;QACnB,CAAC,CAAC,CACE,MAAM,UAAU,CAAC,WAAW,CAC1B,UAAU,CAAC,UAAU,CAAC,sBAAsB,GAAG,CAAC,CAAE,CACnD,CACF,CAAC,aAAa,CAAA;IACrB,IAAI,SAAS,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,CAAC;QACjC,MAAM,IAAI,uBAAuB,CAC/B,iEAAiE;YAC/D,sEAAsE;YACtE,wCAAwC,CAC3C,CAAA;IACH,CAAC;IACD,IACE,0BAA0B,KAAK,IAAI;QACnC,0BAA0B,IAAI,sBAAsB,EACpD,CAAC;QACD,MAAM,IAAI,uBAAuB,CAC/B,iEAAiE;YAC/D,gEAAgE,CACnE,CAAA;IACH,CAAC;AACH,CAAC"}
|
package/dist/unlock/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* The `@interop/wallet-core/unlock` subpath: standing unlock credentials --
|
|
6
6
|
* every unlock method (passphrase, passkey PRF, recovery code) as a standing
|
|
7
|
-
* credential in the recovery-code
|
|
7
|
+
* credential in the recovery-code configuration, with self-enrolling login. The
|
|
8
8
|
* recovery subpath's spend-on-use flows sit on top of the machinery here.
|
|
9
9
|
*
|
|
10
10
|
* - `standingClientFromUnlockSeed` / `unlockClientIdentityFromSeed` -- the
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
* client-annex Space `delegatedClients` delegations re-mintable; the ladder
|
|
17
17
|
* seed sealed and carried verbatim, its `LADDER_SEED_BYTES` size owned by
|
|
18
18
|
* the record format).
|
|
19
|
-
* - `publishUnlockKey` / `removeUnlockKey` -- the merged document
|
|
19
|
+
* - `publishUnlockKey` / `removeUnlockKey` -- the merged document inventory
|
|
20
20
|
* edit, parameterized by credential class: a verbatim `keyAgreement` entry,
|
|
21
21
|
* or a `MultikeyCommitment` entry for a low-entropy-derived key.
|
|
22
22
|
* - `retireUnlockCredential` -- the retirement ceremony behind "change my
|
|
23
|
-
* passphrase" and "remove this passkey": the
|
|
23
|
+
* passphrase" and "remove this passkey": the inventory edit, then the shared
|
|
24
24
|
* roster rotation and collection fan-out off the retired credential's wrap.
|
|
25
25
|
*
|
|
26
26
|
* The ladder itself, and every ceremony that exercises it (the ladder-anchored
|
|
27
27
|
* genesis, self-enrollment, the forget ceremony), live in
|
|
28
|
-
* `@interop/wallet-core/clientAnnex` -- what stays here is the
|
|
29
|
-
* record machinery every wallet needs regardless of
|
|
28
|
+
* `@interop/wallet-core/clientAnnex` -- what stays here is the inventory and
|
|
29
|
+
* record machinery every wallet needs regardless of account configuration.
|
|
30
30
|
*
|
|
31
31
|
* Kept out of the root export: this subpath pulls the webkms-client / ezcap /
|
|
32
32
|
* was-client dependency graph (the same isolation pattern as `./keyring`).
|
|
@@ -38,5 +38,5 @@ export type { SealedRecordMember, SignedUnlockRecord, UnlockRecordContents, Unlo
|
|
|
38
38
|
export { publishUnlockKey, removeUnlockKey, unlockKeyVerificationMethod, unlockKeyVmId } from './standingWebvh.js';
|
|
39
39
|
export type { StandingUnlockKeys, UnlockKeyAgreementPublication, UnlockLogStore } from './standingWebvh.js';
|
|
40
40
|
export { retireUnlockCredential } from './retire.js';
|
|
41
|
-
export type {
|
|
41
|
+
export type { ClientAnnexInventoryRetirement, UnlockCredentialRetirementResult } from './retire.js';
|
|
42
42
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/unlock/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,EACpB,4BAA4B,EAC7B,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EACV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,6BAA6B,EAC7B,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,2BAA2B,EAC3B,aAAa,EACd,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EACV,kBAAkB,EAClB,6BAA6B,EAC7B,cAAc,EACf,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACpD,YAAY,EACV,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/unlock/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,EACL,4BAA4B,EAC5B,oBAAoB,EACpB,4BAA4B,EAC7B,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EACV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,6BAA6B,EAC7B,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,2BAA2B,EAC3B,aAAa,EACd,MAAM,oBAAoB,CAAA;AAC3B,YAAY,EACV,kBAAkB,EAClB,6BAA6B,EAC7B,cAAc,EACf,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AACpD,YAAY,EACV,8BAA8B,EAC9B,gCAAgC,EACjC,MAAM,aAAa,CAAA"}
|
package/dist/unlock/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* The `@interop/wallet-core/unlock` subpath: standing unlock credentials --
|
|
6
6
|
* every unlock method (passphrase, passkey PRF, recovery code) as a standing
|
|
7
|
-
* credential in the recovery-code
|
|
7
|
+
* credential in the recovery-code configuration, with self-enrolling login. The
|
|
8
8
|
* recovery subpath's spend-on-use flows sit on top of the machinery here.
|
|
9
9
|
*
|
|
10
10
|
* - `standingClientFromUnlockSeed` / `unlockClientIdentityFromSeed` -- the
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
* client-annex Space `delegatedClients` delegations re-mintable; the ladder
|
|
17
17
|
* seed sealed and carried verbatim, its `LADDER_SEED_BYTES` size owned by
|
|
18
18
|
* the record format).
|
|
19
|
-
* - `publishUnlockKey` / `removeUnlockKey` -- the merged document
|
|
19
|
+
* - `publishUnlockKey` / `removeUnlockKey` -- the merged document inventory
|
|
20
20
|
* edit, parameterized by credential class: a verbatim `keyAgreement` entry,
|
|
21
21
|
* or a `MultikeyCommitment` entry for a low-entropy-derived key.
|
|
22
22
|
* - `retireUnlockCredential` -- the retirement ceremony behind "change my
|
|
23
|
-
* passphrase" and "remove this passkey": the
|
|
23
|
+
* passphrase" and "remove this passkey": the inventory edit, then the shared
|
|
24
24
|
* roster rotation and collection fan-out off the retired credential's wrap.
|
|
25
25
|
*
|
|
26
26
|
* The ladder itself, and every ceremony that exercises it (the ladder-anchored
|
|
27
27
|
* genesis, self-enrollment, the forget ceremony), live in
|
|
28
|
-
* `@interop/wallet-core/clientAnnex` -- what stays here is the
|
|
29
|
-
* record machinery every wallet needs regardless of
|
|
28
|
+
* `@interop/wallet-core/clientAnnex` -- what stays here is the inventory and
|
|
29
|
+
* record machinery every wallet needs regardless of account configuration.
|
|
30
30
|
*
|
|
31
31
|
* Kept out of the root export: this subpath pulls the webkms-client / ezcap /
|
|
32
32
|
* was-client dependency graph (the same isolation pattern as `./keyring`).
|