@metalabel/dfos-protocol 0.43.0 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chain/index.d.ts +14 -4
- package/dist/chain/index.js +8 -1
- package/dist/chunk-JVSC67DC.js +981 -0
- package/dist/{chunk-4YBXPYEU.js → chunk-ZRA7FRBE.js} +248 -28
- package/dist/credentials/index.d.ts +1 -1
- package/dist/{dfos-credential-X6uvPIth.d.ts → dfos-credential-BtiYPqBT.d.ts} +118 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +24 -2
- package/dist/key-proof/index.d.ts +202 -18
- package/dist/key-proof/index.js +17 -1
- package/examples/identity-restore.json +3 -3
- package/examples/identity-rotation.json +1 -1
- package/package.json +3 -2
- package/dist/chunk-WCYN7BV7.js +0 -195
package/dist/chain/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IdentityOperation,
|
|
2
|
-
export { A as ARTIFACT_CID_ANCHOR_RE, C as CONTENT_ID_ANCHOR_RE, f as CreditClaimPayload, g as Iso8601, M as MAX_ARTIFACT_PAYLOAD_SIZE,
|
|
1
|
+
import { I as IdentityOperation, u as Signer, w as VerifiedIdentity, S as ServiceEntry, c as ContentOperation, R as RevocationChecker, d as CountersignPayload, a as ArtifactPayload } from '../dfos-credential-BtiYPqBT.js';
|
|
2
|
+
export { A as ARTIFACT_CID_ANCHOR_RE, C as CONTENT_ID_ANCHOR_RE, f as CreditClaimPayload, g as DeclaredKeyState, h as Iso8601, M as MAX_ARTIFACT_PAYLOAD_SIZE, j as MAX_CREDIT_CLAIM_SIZE, k as MAX_KEY_PROOFS, l as MAX_OPERATION_SIZE, m as MAX_SERVICES_ENTRIES, n as MAX_SERVICES_PAYLOAD_SIZE, o as MAX_SIGN_REQUEST_PAYLOAD_SIZE, p as MAX_SIGN_REQUEST_SIZE, q as MultikeyPublicKey, r as RevocationPayload, s as ServicesArray, t as SignRequestPayload, x as VoidKeyMembership, F as parseProtocolTimestampUnix } from '../dfos-credential-BtiYPqBT.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
/** Ed25519 public key multicodec value */
|
|
@@ -53,8 +53,10 @@ declare const signIdentityOperation: (input: {
|
|
|
53
53
|
/**
|
|
54
54
|
* Verify a log of JWS identity operations and derive the identity
|
|
55
55
|
*
|
|
56
|
-
* Walks the chain from genesis, verifying signatures and chain integrity
|
|
57
|
-
* Returns the final verified identity
|
|
56
|
+
* Walks the chain from genesis, verifying signatures and chain integrity, and
|
|
57
|
+
* folds the possession proofs alongside. Returns the final verified identity
|
|
58
|
+
* state: EFFECTIVE key arrays, with the declared arrays and the void memberships
|
|
59
|
+
* beside them.
|
|
58
60
|
*/
|
|
59
61
|
declare const verifyIdentityChain: (input: {
|
|
60
62
|
didPrefix: string;
|
|
@@ -72,6 +74,14 @@ declare const verifyIdentityChain: (input: {
|
|
|
72
74
|
* That invariant is established during genesis verification and maintained by
|
|
73
75
|
* the protocol's key consistency rules. Periodic full re-verification can
|
|
74
76
|
* audit this property.
|
|
77
|
+
*
|
|
78
|
+
* THE POSSESSION FOLD RUNS HERE TOO, and it needs both halves of the trusted
|
|
79
|
+
* state: the EFFECTIVE arrays (to know what an introduction is a transition out
|
|
80
|
+
* of) and the DECLARED arrays (to admit the signer). `currentState.declared`
|
|
81
|
+
* carries the second. When it is absent — a hand-built state, or one produced
|
|
82
|
+
* before this member existed — the effective arrays stand in for it, which is
|
|
83
|
+
* exactly correct for any chain with no void memberships and is the only reading
|
|
84
|
+
* available for a state that never recorded the difference.
|
|
75
85
|
*/
|
|
76
86
|
declare const verifyIdentityExtensionFromTrustedState: (input: {
|
|
77
87
|
/** Previously verified identity state */
|
package/dist/chain/index.js
CHANGED
|
@@ -6,10 +6,12 @@ import {
|
|
|
6
6
|
CountersignPayload,
|
|
7
7
|
CreditClaimPayload,
|
|
8
8
|
CreditClaimVerifyError,
|
|
9
|
+
DeclaredKeyState,
|
|
9
10
|
IdentityOperation,
|
|
10
11
|
Iso8601,
|
|
11
12
|
MAX_ARTIFACT_PAYLOAD_SIZE,
|
|
12
13
|
MAX_CREDIT_CLAIM_SIZE,
|
|
14
|
+
MAX_KEY_PROOFS,
|
|
13
15
|
MAX_OPERATION_SIZE,
|
|
14
16
|
MAX_SERVICES_ENTRIES,
|
|
15
17
|
MAX_SERVICES_PAYLOAD_SIZE,
|
|
@@ -23,6 +25,7 @@ import {
|
|
|
23
25
|
SignRequestPayload,
|
|
24
26
|
SignRequestVerifyError,
|
|
25
27
|
VerifiedIdentity,
|
|
28
|
+
VoidKeyMembership,
|
|
26
29
|
anchorsByLabel,
|
|
27
30
|
assertCanonicalSignRequestPayload,
|
|
28
31
|
assertServicesWithinCap,
|
|
@@ -49,8 +52,9 @@ import {
|
|
|
49
52
|
verifyIdentityExtensionFromTrustedState,
|
|
50
53
|
verifyRevocation,
|
|
51
54
|
verifySignRequest
|
|
52
|
-
} from "../chunk-
|
|
55
|
+
} from "../chunk-ZRA7FRBE.js";
|
|
53
56
|
import "../chunk-D4IZXFPM.js";
|
|
57
|
+
import "../chunk-JVSC67DC.js";
|
|
54
58
|
import {
|
|
55
59
|
ED25519_PRIV_MULTICODEC,
|
|
56
60
|
ED25519_PUB_MULTICODEC,
|
|
@@ -66,12 +70,14 @@ export {
|
|
|
66
70
|
CountersignPayload,
|
|
67
71
|
CreditClaimPayload,
|
|
68
72
|
CreditClaimVerifyError,
|
|
73
|
+
DeclaredKeyState,
|
|
69
74
|
ED25519_PRIV_MULTICODEC,
|
|
70
75
|
ED25519_PUB_MULTICODEC,
|
|
71
76
|
IdentityOperation,
|
|
72
77
|
Iso8601,
|
|
73
78
|
MAX_ARTIFACT_PAYLOAD_SIZE,
|
|
74
79
|
MAX_CREDIT_CLAIM_SIZE,
|
|
80
|
+
MAX_KEY_PROOFS,
|
|
75
81
|
MAX_OPERATION_SIZE,
|
|
76
82
|
MAX_SERVICES_ENTRIES,
|
|
77
83
|
MAX_SERVICES_PAYLOAD_SIZE,
|
|
@@ -85,6 +91,7 @@ export {
|
|
|
85
91
|
SignRequestPayload,
|
|
86
92
|
SignRequestVerifyError,
|
|
87
93
|
VerifiedIdentity,
|
|
94
|
+
VoidKeyMembership,
|
|
88
95
|
anchorsByLabel,
|
|
89
96
|
assertCanonicalSignRequestPayload,
|
|
90
97
|
assertServicesWithinCap,
|