@interop/wallet-core 0.66.0 → 0.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -8
- package/dist/clientAnnex/credentialAnchoredGenesis.d.ts +6 -10
- package/dist/clientAnnex/credentialAnchoredGenesis.d.ts.map +1 -1
- package/dist/clientAnnex/credentialAnchoredGenesis.js +34 -56
- package/dist/clientAnnex/credentialAnchoredGenesis.js.map +1 -1
- package/dist/clientAnnex/establish.d.ts +46 -29
- package/dist/clientAnnex/establish.d.ts.map +1 -1
- package/dist/clientAnnex/establish.js +111 -86
- package/dist/clientAnnex/establish.js.map +1 -1
- package/dist/clientAnnex/forget.d.ts +7 -16
- package/dist/clientAnnex/forget.d.ts.map +1 -1
- package/dist/clientAnnex/forget.js +13 -24
- package/dist/clientAnnex/forget.js.map +1 -1
- package/dist/clientAnnex/forgetLast.d.ts +33 -129
- package/dist/clientAnnex/forgetLast.d.ts.map +1 -1
- package/dist/clientAnnex/forgetLast.js +43 -182
- package/dist/clientAnnex/forgetLast.js.map +1 -1
- package/dist/clientAnnex/gc.d.ts +26 -12
- package/dist/clientAnnex/gc.d.ts.map +1 -1
- package/dist/clientAnnex/gc.js +60 -57
- package/dist/clientAnnex/gc.js.map +1 -1
- package/dist/clientAnnex/heal.d.ts +75 -18
- package/dist/clientAnnex/heal.d.ts.map +1 -1
- package/dist/clientAnnex/heal.js +79 -147
- package/dist/clientAnnex/heal.js.map +1 -1
- package/dist/clientAnnex/index.d.ts +8 -8
- package/dist/clientAnnex/index.d.ts.map +1 -1
- package/dist/clientAnnex/index.js +5 -5
- package/dist/clientAnnex/index.js.map +1 -1
- package/dist/clientAnnex/ladder.d.ts +51 -4
- package/dist/clientAnnex/ladder.d.ts.map +1 -1
- package/dist/clientAnnex/ladder.js +283 -47
- package/dist/clientAnnex/ladder.js.map +1 -1
- package/dist/clientAnnex/ladderAnchored.d.ts +62 -73
- package/dist/clientAnnex/ladderAnchored.d.ts.map +1 -1
- package/dist/clientAnnex/ladderAnchored.js +103 -117
- package/dist/clientAnnex/ladderAnchored.js.map +1 -1
- package/dist/clientAnnex/log.d.ts +123 -125
- package/dist/clientAnnex/log.d.ts.map +1 -1
- package/dist/clientAnnex/log.js +174 -233
- package/dist/clientAnnex/log.js.map +1 -1
- package/dist/clientAnnex/mend.d.ts +0 -4
- package/dist/clientAnnex/mend.d.ts.map +1 -1
- package/dist/clientAnnex/mend.js +50 -51
- package/dist/clientAnnex/mend.js.map +1 -1
- package/dist/clientAnnex/recoveryLadderAnchored.d.ts +25 -13
- package/dist/clientAnnex/recoveryLadderAnchored.d.ts.map +1 -1
- package/dist/clientAnnex/recoveryLadderAnchored.js +80 -303
- package/dist/clientAnnex/recoveryLadderAnchored.js.map +1 -1
- package/dist/clientAnnex/rosterDeliveredEpochs.d.ts +13 -5
- package/dist/clientAnnex/rosterDeliveredEpochs.d.ts.map +1 -1
- package/dist/clientAnnex/rosterDeliveredEpochs.js +18 -9
- package/dist/clientAnnex/rosterDeliveredEpochs.js.map +1 -1
- package/dist/clientAnnex/selfEnroll.d.ts +6 -10
- package/dist/clientAnnex/selfEnroll.d.ts.map +1 -1
- package/dist/clientAnnex/selfEnroll.js +13 -18
- package/dist/clientAnnex/selfEnroll.js.map +1 -1
- package/dist/clientAnnex/zcap.d.ts +19 -0
- package/dist/clientAnnex/zcap.d.ts.map +1 -1
- package/dist/clientAnnex/zcap.js +80 -12
- package/dist/clientAnnex/zcap.js.map +1 -1
- package/dist/clients/index.d.ts +3 -2
- package/dist/clients/index.d.ts.map +1 -1
- package/dist/clients/index.js +3 -2
- package/dist/clients/index.js.map +1 -1
- package/dist/clients/listing.d.ts.map +1 -1
- package/dist/clients/listing.js +33 -15
- package/dist/clients/listing.js.map +1 -1
- package/dist/clients/policy.d.ts +18 -0
- package/dist/clients/policy.d.ts.map +1 -1
- package/dist/clients/policy.js +22 -8
- package/dist/clients/policy.js.map +1 -1
- package/dist/clients/revocation.d.ts +18 -30
- package/dist/clients/revocation.d.ts.map +1 -1
- package/dist/clients/revocation.js +12 -27
- package/dist/clients/revocation.js.map +1 -1
- package/dist/clients/rosterPolicy.d.ts +6 -1
- package/dist/clients/rosterPolicy.d.ts.map +1 -1
- package/dist/clients/rosterPolicy.js +27 -30
- package/dist/clients/rosterPolicy.js.map +1 -1
- package/dist/descriptors/errors.d.ts +6 -5
- package/dist/descriptors/errors.d.ts.map +1 -1
- package/dist/descriptors/errors.js +6 -5
- package/dist/descriptors/errors.js.map +1 -1
- package/dist/descriptors/index.d.ts +7 -3
- package/dist/descriptors/index.d.ts.map +1 -1
- package/dist/descriptors/index.js +7 -3
- package/dist/descriptors/index.js.map +1 -1
- package/dist/descriptors/logSource.d.ts +28 -6
- package/dist/descriptors/logSource.d.ts.map +1 -1
- package/dist/descriptors/logSource.js +33 -7
- package/dist/descriptors/logSource.js.map +1 -1
- package/dist/enrollment/enrollment.d.ts.map +1 -1
- package/dist/enrollment/enrollment.js +3 -7
- package/dist/enrollment/enrollment.js.map +1 -1
- package/dist/genesis/accountGenesis.d.ts +11 -16
- package/dist/genesis/accountGenesis.d.ts.map +1 -1
- package/dist/genesis/accountGenesis.js +43 -47
- package/dist/genesis/accountGenesis.js.map +1 -1
- package/dist/genesis/kmsAuthentication.d.ts +50 -0
- package/dist/genesis/kmsAuthentication.d.ts.map +1 -0
- package/dist/genesis/kmsAuthentication.js +49 -0
- package/dist/genesis/kmsAuthentication.js.map +1 -0
- package/dist/keyring/kdf.d.ts +16 -20
- package/dist/keyring/kdf.d.ts.map +1 -1
- package/dist/keyring/kdf.js +2 -2
- package/dist/keyring/kdf.js.map +1 -1
- package/dist/keyring/unlockSpace.d.ts +8 -30
- package/dist/keyring/unlockSpace.d.ts.map +1 -1
- package/dist/keyring/unlockSpace.js +8 -31
- package/dist/keyring/unlockSpace.js.map +1 -1
- package/dist/keys/clientKeyRecord.d.ts +2 -1
- package/dist/keys/clientKeyRecord.d.ts.map +1 -1
- package/dist/keys/clientKeyRecord.js +28 -11
- package/dist/keys/clientKeyRecord.js.map +1 -1
- package/dist/keys/index.d.ts +6 -2
- package/dist/keys/index.d.ts.map +1 -1
- package/dist/keys/index.js +5 -1
- package/dist/keys/index.js.map +1 -1
- package/dist/keys/rosterLogStore.d.ts.map +1 -1
- package/dist/keys/rosterLogStore.js +14 -5
- package/dist/keys/rosterLogStore.js.map +1 -1
- package/dist/keys/spaceEpochs.d.ts +92 -3
- package/dist/keys/spaceEpochs.d.ts.map +1 -1
- package/dist/keys/spaceEpochs.js +110 -4
- package/dist/keys/spaceEpochs.js.map +1 -1
- package/dist/keys/userKeyRoster.d.ts +30 -3
- package/dist/keys/userKeyRoster.d.ts.map +1 -1
- package/dist/keys/userKeyRoster.js +90 -15
- package/dist/keys/userKeyRoster.js.map +1 -1
- package/dist/keys/userKeyRosterCascade.d.ts.map +1 -1
- package/dist/keys/userKeyRosterCascade.js +5 -1
- package/dist/keys/userKeyRosterCascade.js.map +1 -1
- package/dist/recovery/continuation.d.ts +250 -0
- package/dist/recovery/continuation.d.ts.map +1 -0
- package/dist/recovery/continuation.js +467 -0
- package/dist/recovery/continuation.js.map +1 -0
- package/dist/recovery/index.d.ts +12 -8
- package/dist/recovery/index.d.ts.map +1 -1
- package/dist/recovery/index.js +11 -7
- package/dist/recovery/index.js.map +1 -1
- package/dist/recovery/recoveryDelegation.d.ts +23 -126
- package/dist/recovery/recoveryDelegation.d.ts.map +1 -1
- package/dist/recovery/recoveryDelegation.js +1 -266
- package/dist/recovery/recoveryDelegation.js.map +1 -1
- package/dist/recovery/recoveryWebvh.d.ts +52 -107
- package/dist/recovery/recoveryWebvh.d.ts.map +1 -1
- package/dist/recovery/recoveryWebvh.js +54 -403
- package/dist/recovery/recoveryWebvh.js.map +1 -1
- package/dist/request/classify.d.ts +3 -14
- package/dist/request/classify.d.ts.map +1 -1
- package/dist/request/classify.js +19 -40
- package/dist/request/classify.js.map +1 -1
- package/dist/request/index.d.ts +1 -0
- package/dist/request/index.d.ts.map +1 -1
- package/dist/request/index.js +1 -0
- package/dist/request/index.js.map +1 -1
- package/dist/request/onboarding.d.ts.map +1 -1
- package/dist/request/onboarding.js +19 -27
- package/dist/request/onboarding.js.map +1 -1
- package/dist/request/parse.d.ts +5 -3
- package/dist/request/parse.d.ts.map +1 -1
- package/dist/request/parse.js +7 -6
- package/dist/request/parse.js.map +1 -1
- package/dist/request/processRequest.d.ts.map +1 -1
- package/dist/request/processRequest.js +2 -1
- package/dist/request/processRequest.js.map +1 -1
- package/dist/request/queryPredicates.d.ts +98 -0
- package/dist/request/queryPredicates.d.ts.map +1 -0
- package/dist/request/queryPredicates.js +107 -0
- package/dist/request/queryPredicates.js.map +1 -0
- package/dist/resourceLog/document.d.ts +39 -0
- package/dist/resourceLog/document.d.ts.map +1 -1
- package/dist/resourceLog/document.js +41 -0
- package/dist/resourceLog/document.js.map +1 -1
- package/dist/resourceLog/index.d.ts +2 -2
- package/dist/resourceLog/index.js +2 -2
- package/dist/resourceLog/ladderRungs.d.ts.map +1 -1
- package/dist/resourceLog/ladderRungs.js +3 -2
- package/dist/resourceLog/ladderRungs.js.map +1 -1
- package/dist/sync/contactsConflict.d.ts.map +1 -1
- package/dist/sync/contactsConflict.js +8 -2
- package/dist/sync/contactsConflict.js.map +1 -1
- package/dist/sync/engine.d.ts +38 -23
- package/dist/sync/engine.d.ts.map +1 -1
- package/dist/sync/engine.js +36 -5
- package/dist/sync/engine.js.map +1 -1
- package/dist/sync/index.d.ts +9 -12
- package/dist/sync/index.d.ts.map +1 -1
- package/dist/sync/index.js +8 -11
- package/dist/sync/index.js.map +1 -1
- package/dist/sync/push.d.ts.map +1 -1
- package/dist/sync/push.js +1 -2
- package/dist/sync/push.js.map +1 -1
- package/dist/sync/remint.d.ts +0 -31
- package/dist/sync/remint.d.ts.map +1 -1
- package/dist/sync/remint.js +32 -1
- package/dist/sync/remint.js.map +1 -1
- package/dist/sync/types.d.ts +4 -41
- package/dist/sync/types.d.ts.map +1 -1
- package/dist/sync/types.js +4 -47
- package/dist/sync/types.js.map +1 -1
- package/dist/unlock/index.d.ts +1 -1
- package/dist/unlock/index.d.ts.map +1 -1
- package/dist/unlock/index.js +1 -1
- package/dist/unlock/index.js.map +1 -1
- package/dist/unlock/retire.d.ts +16 -64
- package/dist/unlock/retire.d.ts.map +1 -1
- package/dist/unlock/retire.js +7 -86
- package/dist/unlock/retire.js.map +1 -1
- package/dist/unlock/standingWebvh.d.ts +27 -61
- package/dist/unlock/standingWebvh.d.ts.map +1 -1
- package/dist/unlock/standingWebvh.js +40 -92
- package/dist/unlock/standingWebvh.js.map +1 -1
- package/dist/unlock/unlockRecord.d.ts.map +1 -1
- package/dist/unlock/unlockRecord.js +69 -44
- package/dist/unlock/unlockRecord.js.map +1 -1
- package/dist/webvh/accountEntry.d.ts +68 -19
- package/dist/webvh/accountEntry.d.ts.map +1 -1
- package/dist/webvh/accountEntry.js +117 -37
- package/dist/webvh/accountEntry.js.map +1 -1
- package/dist/webvh/delegatedLogStore.d.ts +24 -13
- package/dist/webvh/delegatedLogStore.d.ts.map +1 -1
- package/dist/webvh/delegatedLogStore.js +40 -11
- package/dist/webvh/delegatedLogStore.js.map +1 -1
- package/dist/webvh/didWebvh.d.ts +91 -86
- package/dist/webvh/didWebvh.d.ts.map +1 -1
- package/dist/webvh/didWebvh.js +117 -142
- package/dist/webvh/didWebvh.js.map +1 -1
- package/dist/webvh/enrollClient.d.ts +2 -8
- package/dist/webvh/enrollClient.d.ts.map +1 -1
- package/dist/webvh/enrollClient.js +22 -31
- package/dist/webvh/enrollClient.js.map +1 -1
- package/dist/webvh/index.d.ts +12 -8
- package/dist/webvh/index.d.ts.map +1 -1
- package/dist/webvh/index.js +10 -7
- package/dist/webvh/index.js.map +1 -1
- package/dist/webvh/listClients.d.ts.map +1 -1
- package/dist/webvh/listClients.js +102 -65
- package/dist/webvh/listClients.js.map +1 -1
- package/dist/webvh/mergeMethods.d.ts +84 -0
- package/dist/webvh/mergeMethods.d.ts.map +1 -0
- package/dist/webvh/mergeMethods.js +46 -0
- package/dist/webvh/mergeMethods.js.map +1 -0
- package/dist/webvh/revokeClient.d.ts +15 -11
- package/dist/webvh/revokeClient.d.ts.map +1 -1
- package/dist/webvh/revokeClient.js +130 -57
- package/dist/webvh/revokeClient.js.map +1 -1
- package/dist/webvh/verifyLog.d.ts +45 -4
- package/dist/webvh/verifyLog.d.ts.map +1 -1
- package/dist/webvh/verifyLog.js +62 -21
- package/dist/webvh/verifyLog.js.map +1 -1
- package/dist/webvh/wasIdStore.d.ts +16 -3
- package/dist/webvh/wasIdStore.d.ts.map +1 -1
- package/dist/webvh/wasIdStore.js +18 -3
- package/dist/webvh/wasIdStore.js.map +1 -1
- package/package.json +11 -11
|
@@ -1,91 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import type { UnlockInventoryPart } from '../unlock/standingWebvh.js';
|
|
5
|
-
import type { AccountLogSigner } from '../webvh/accountEntry.js';
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2026 Interop Alliance. All rights reserved.
|
|
3
|
+
*/
|
|
6
4
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
5
|
+
* The did:webvh half of recovery-code lifecycle: the split configuration a
|
|
6
|
+
* code holds as a standing unlock credential that retires on spend. At
|
|
7
|
+
* issuance the document gains the code's `keyAgreement` verification method
|
|
8
|
+
* (an ordinary Multikey entry -- deliberately unmarked; a recovery key is
|
|
9
|
+
* distinguishable structurally, since it appears under `keyAgreement` and
|
|
10
|
+
* `assertionMethod`/`capabilityDelegation` while every enrolled client also
|
|
11
|
+
* publishes an invocation relationship, so client listings key on
|
|
12
|
+
* `capabilityInvocation` and never see it), the code's ladder VM, and its
|
|
13
|
+
* rung-0 hash in `nextKeyHashes` -- decryption and delegation standing,
|
|
14
|
+
* update authority latent: rung 0 joins `updateKeys` nowhere, and every key
|
|
15
|
+
* of the set exists nowhere until the code is typed.
|
|
13
16
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* ladder's rung 0 on the transient continuation, the new client's update key
|
|
17
|
-
* on the remembered one), which only that entry writes. What it retired is
|
|
18
|
-
* then the credential-class `keyAgreement` ids its predecessor published and
|
|
19
|
-
* it does not, less the spent code's own id -- the same exclusion the live
|
|
20
|
-
* branch makes, since the caller retires that one by name.
|
|
17
|
+
* At recovery time the pre-committed rung 0 reveals itself to sign the
|
|
18
|
+
* self-enrolling continuation, two entries:
|
|
21
19
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
did: string;
|
|
35
|
-
successorKeyMultibase: string;
|
|
36
|
-
spentVmId: string;
|
|
37
|
-
}): string[];
|
|
38
|
-
/**
|
|
39
|
-
* The verification-method id a code's key-agreement key publishes under --
|
|
40
|
-
* the ordinary `<did>#<multibase>` form, indistinguishable by id from any
|
|
41
|
-
* other keyAgreement entry. Consumers that must exclude recovery entries do
|
|
42
|
-
* it structurally (an enrolled client is a `capabilityInvocation` entry; a
|
|
43
|
-
* recovery key never has one) or by the registry's recorded multibase.
|
|
20
|
+
* 1. **Reveal + commit**: rung 0 joins `updateKeys` (its hash stands
|
|
21
|
+
* committed since issuance, which is what makes the entry verify -- the
|
|
22
|
+
* ordinary ladder reveal) and `nextKeyHashes` extends with the NEW
|
|
23
|
+
* ordinary client's update- and staged-key hashes plus the replacement
|
|
24
|
+
* code's rung-0 hash.
|
|
25
|
+
* 2. **Add + retire**: signed by the new client's update key (revealed from
|
|
26
|
+
* the commit), this entry publishes the new client's verification methods
|
|
27
|
+
* and update key, removes the spent code's `keyAgreement` VM and its
|
|
28
|
+
* ladder VM (with every other standing credential's, by the relation
|
|
29
|
+
* asymmetry), publishes the replacement code's inventory, and drops the
|
|
30
|
+
* spent code's revealed rung and its hash -- so no recovery authority
|
|
31
|
+
* stands afterwards.
|
|
44
32
|
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
did: string;
|
|
52
|
-
keyAgreementKeyMultibase: string;
|
|
53
|
-
}): string;
|
|
54
|
-
/**
|
|
55
|
-
* The public halves of a recovery code as the document and log carry them:
|
|
56
|
-
* the X25519 key-agreement key published as the recovery VM, and the update
|
|
57
|
-
* key whose hash stands in `nextKeyHashes`.
|
|
58
|
-
*/
|
|
59
|
-
export interface RecoveryPublicKeys {
|
|
60
|
-
keyAgreementKeyMultibase: string;
|
|
61
|
-
updateKeyMultibase: string;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* The public halves a SPEND needs of the replacement code it publishes: the
|
|
65
|
-
* two above plus the code's ladder VM key, which the add-and-retire entry
|
|
66
|
-
* installs under `assertionMethod` and `capabilityDelegation`. A code is a
|
|
67
|
-
* standing unlock credential with a ladder (`decisions/0020`) and its bridge
|
|
68
|
-
* delegation is signed by that ladder's VM (`decisions/0019`), so a
|
|
69
|
-
* replacement published without the VM could neither sign its own bridge nor
|
|
70
|
-
* spend. `recoveryClientFromCode` produces all three.
|
|
71
|
-
*/
|
|
72
|
-
export interface ReplacementRecoveryPublicKeys extends RecoveryPublicKeys {
|
|
73
|
-
ladderVmKeyMultibase: string;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Thrown by the recovery continuation when the log carries neither the code's
|
|
77
|
-
* update key nor its committed hash -- the code was revoked (or never
|
|
78
|
-
* issued), so no continuation can verify.
|
|
33
|
+
* Both entries are written through the caller's store seam; the recovery
|
|
34
|
+
* continuation publishes ONLY `did.jsonl` (the delegation the record carries
|
|
35
|
+
* covers nothing else -- narrow scope preserves loudness), and hands back the
|
|
36
|
+
* final `webDoc` so the recovered session can republish `did.json` once it is
|
|
37
|
+
* the authorized controller. Every step is idempotent/resumable: re-running
|
|
38
|
+
* with the same key material converges without forking the log.
|
|
79
39
|
*/
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
*/
|
|
88
|
-
export type RecoveryLogStore = Pick<WebvhIdStore, 'getIdResourceRaw' | 'putIdResource'>;
|
|
40
|
+
import type { DIDDoc, DIDLog } from '@interop/did-method-webvh';
|
|
41
|
+
import type { ClientWebvhUpdateKeys, WebvhEnrollmentKeys, WebvhIdStore } from '../webvh/didWebvh.js';
|
|
42
|
+
import type { UnlockInventoryPart } from '../unlock/standingWebvh.js';
|
|
43
|
+
import type { AccountLogSigner } from '../webvh/accountEntry.js';
|
|
44
|
+
import type { RecoveryLogStore, RecoveryPublicKeys, ReplacementRecoveryPublicKeys } from './continuation.js';
|
|
45
|
+
export { RecoveryCredentialStandingError, RecoveryKeyNotCommittedError, recoveryVmId, retiredCredentialVmIdsFromLog } from './continuation.js';
|
|
46
|
+
export type { RecoveryLogStore, RecoveryPublicKeys, ReplacementRecoveryPublicKeys } from './continuation.js';
|
|
89
47
|
/**
|
|
90
48
|
* ISSUANCE: publishes a recovery code's split configuration into the
|
|
91
49
|
* document -- the code's `keyAgreement` verification method (an ordinary,
|
|
@@ -115,25 +73,20 @@ export type RecoveryLogStore = Pick<WebvhIdStore, 'getIdResourceRaw' | 'putIdRes
|
|
|
115
73
|
* @param [options.part] {string} `'all'` (the default), `'key'`, or
|
|
116
74
|
* `'authority'` -- see above
|
|
117
75
|
* @param [options.expectedDid] {string} the account DID the log must
|
|
118
|
-
* resolve to, from the caller's stored account pointer
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
* @param [options.logId] {string} the account log's pin slot
|
|
123
|
-
* (`accountLogPinId({ spaceId })`); required whenever a `pinStore` is
|
|
124
|
-
* supplied
|
|
76
|
+
* resolve to, from the caller's stored account pointer. The read runs under
|
|
77
|
+
* the store's own chain-head pin: a served log that is a rollback, a fork,
|
|
78
|
+
* or an identity switch against the pinned head is refused
|
|
79
|
+
* (`ResourceLogContinuityError`)
|
|
125
80
|
* @returns {Promise<{ did: string, doc: DIDDoc, log: DIDLog }>} the account
|
|
126
81
|
* DID and the document and log as this call leaves them
|
|
127
82
|
*/
|
|
128
|
-
export declare function publishRecoveryKey({ idStore, signer, recovery, ladderSeed, part, expectedDid
|
|
83
|
+
export declare function publishRecoveryKey({ idStore, signer, recovery, ladderSeed, part, expectedDid }: {
|
|
129
84
|
idStore: WebvhIdStore;
|
|
130
85
|
signer: AccountLogSigner;
|
|
131
86
|
recovery: RecoveryPublicKeys;
|
|
132
87
|
ladderSeed: Uint8Array;
|
|
133
88
|
part?: UnlockInventoryPart;
|
|
134
89
|
expectedDid?: string;
|
|
135
|
-
pinStore?: ResourceLogPinStore;
|
|
136
|
-
logId?: string;
|
|
137
90
|
}): Promise<{
|
|
138
91
|
did: string;
|
|
139
92
|
doc: DIDDoc;
|
|
@@ -169,15 +122,13 @@ export declare function publishRecoveryKey({ idStore, signer, recovery, ladderSe
|
|
|
169
122
|
* @returns {Promise<{ did: string, doc: DIDDoc, log: DIDLog }>} see
|
|
170
123
|
* {@link publishRecoveryKey}
|
|
171
124
|
*/
|
|
172
|
-
export declare function removeRecoveryKey({ idStore, signer, recovery, ladderSeed, projectionStore, expectedDid
|
|
125
|
+
export declare function removeRecoveryKey({ idStore, signer, recovery, ladderSeed, projectionStore, expectedDid }: {
|
|
173
126
|
idStore: WebvhIdStore;
|
|
174
127
|
signer: AccountLogSigner;
|
|
175
128
|
recovery: RecoveryPublicKeys;
|
|
176
129
|
ladderSeed?: Uint8Array;
|
|
177
130
|
projectionStore?: Pick<WebvhIdStore, 'getIdResourceRaw' | 'putIdResource'>;
|
|
178
131
|
expectedDid?: string;
|
|
179
|
-
pinStore?: ResourceLogPinStore;
|
|
180
|
-
logId?: string;
|
|
181
132
|
}): Promise<{
|
|
182
133
|
did: string;
|
|
183
134
|
doc: DIDDoc;
|
|
@@ -241,15 +192,11 @@ export declare function removeRecoveryKey({ idStore, signer, recovery, ladderSee
|
|
|
241
192
|
* `nextKeyHashes` exactly as on the self-enrollment seam (keys of a lost
|
|
242
193
|
* random seed; nothing can reveal them)
|
|
243
194
|
* @param [options.expectedDid] {string} the account DID the log must resolve
|
|
244
|
-
* to, where the recovering flow already knows it
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
* entry as it publishes
|
|
250
|
-
* @param [options.logId] {string} the account log's pin slot
|
|
251
|
-
* (`accountLogPinId({ spaceId })`); required whenever a `pinStore` is
|
|
252
|
-
* supplied
|
|
195
|
+
* to, where the recovering flow already knows it. Every read both entries
|
|
196
|
+
* are built on is checked against the store's own chain-head pin (a served
|
|
197
|
+
* prefix is refused before the reveal entry lands, not only by a verify
|
|
198
|
+
* that follows both entries), and the pin advances to each entry as it
|
|
199
|
+
* publishes
|
|
253
200
|
* @returns {Promise<object>}
|
|
254
201
|
* the account DID, the final `did.json` projection when the add-and-retire
|
|
255
202
|
* entry ran here, and `committed` -- whether THIS call published the pivot
|
|
@@ -280,8 +227,6 @@ export declare function recoverWebvhClient(options: {
|
|
|
280
227
|
};
|
|
281
228
|
}) => Promise<void>;
|
|
282
229
|
expectedDid?: string;
|
|
283
|
-
pinStore?: ResourceLogPinStore;
|
|
284
|
-
logId?: string;
|
|
285
230
|
}): Promise<{
|
|
286
231
|
did: string;
|
|
287
232
|
webDoc?: object;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recoveryWebvh.d.ts","sourceRoot":"","sources":["../../src/recovery/recoveryWebvh.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"recoveryWebvh.d.ts","sourceRoot":"","sources":["../../src/recovery/recoveryWebvh.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;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