@openvtc/trust-tasks 0.12.5 → 0.12.7
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/vtc/join-requests/list/0.1/payload.d.ts +123 -0
- package/dist/vtc/join-requests/list/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/join-requests/list/0.1/payload.js +74 -0
- package/dist/vtc/join-requests/list/0.1/payload.js.map +1 -1
- package/dist/vtc/join-requests/show/0.1/payload.d.ts +123 -0
- package/dist/vtc/join-requests/show/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/join-requests/show/0.1/payload.js +74 -0
- package/dist/vtc/join-requests/show/0.1/payload.js.map +1 -1
- package/dist/vtc/join-requests/status/0.1/payload.d.ts +68 -6
- package/dist/vtc/join-requests/status/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/join-requests/status/0.1/payload.js +33 -4
- package/dist/vtc/join-requests/status/0.1/payload.js.map +1 -1
- package/dist/vtc/relationships/publish/0.1/payload.d.ts +106 -0
- package/dist/vtc/relationships/publish/0.1/payload.d.ts.map +1 -1
- package/dist/vtc/relationships/publish/0.1/payload.js +49 -0
- package/dist/vtc/relationships/publish/0.1/payload.js.map +1 -1
- package/dist/vtc/relationships/publish/0.2/payload.d.ts +76 -2
- package/dist/vtc/relationships/publish/0.2/payload.d.ts.map +1 -1
- package/dist/vtc/relationships/publish/0.2/payload.js +29 -0
- package/dist/vtc/relationships/publish/0.2/payload.js.map +1 -1
- package/package.json +1 -1
- package/src/vtc/join-requests/list/0.1/payload.ts +97 -0
- package/src/vtc/join-requests/show/0.1/payload.ts +97 -0
- package/src/vtc/join-requests/status/0.1/payload.ts +47 -6
- package/src/vtc/relationships/publish/0.1/payload.ts +76 -0
- package/src/vtc/relationships/publish/0.2/payload.ts +57 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/join-requests/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/join-requests/show/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0EH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,wDAAiE,CAAC;AAK1F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,iEAA0E,CAAC;AAK5G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,wDAAwD;IAC/D,OAAO,EAAE,kCAAkC;IAC3C,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,IAAI;KACL;IACD,YAAY,EAAE;QACZ,IAAI,EAAE;YACJ,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;YACd,aAAa,EAAE,4BAA4B;SAC5C;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,2CAA2C;YACpD,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,SAAS;aACV;YACD,YAAY,EAAE;gBACZ,SAAS,EAAE;oBACT,MAAM,EAAE,qBAAqB;iBAC9B;gBACD,KAAK,EAAE;oBACL,MAAM,EAAE,aAAa;iBACtB;aACF;SACF;QACD,KAAK,EAAE;YACL,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,uKAAuK;YACtL,MAAM,EAAE,QAAQ;YAChB,eAAe,EAAE,CAAC;YAClB,sBAAsB,EAAE,IAAI;YAC5B,eAAe,EAAE;gBACf,SAAS,EAAE,mCAAmC;aAC/C;SACF;QACD,aAAa,EAAE;YACb,SAAS,EAAE,aAAa;YACxB,OAAO,EAAE,aAAa;YACtB,aAAa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AAa,EAAE,yCAAyC;iBACzD;aACF;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export interface VTCJoinRequestsStatusPayload {
|
|
6
6
|
/**
|
|
7
|
-
* The applicant's
|
|
7
|
+
* The request to poll. Optional: an applicant whose first reply was lost never received an id, and the id-less poll — resolved from the authenticated applicant's own DID — is the only form available to them. Supply it when you have it; a consumer that has it MUST prefer it over inferring the request from the caller.
|
|
8
8
|
*/
|
|
9
|
-
requestId
|
|
9
|
+
requestId?: string;
|
|
10
10
|
ext?: Ext;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
@@ -18,6 +18,18 @@ export interface Ext {
|
|
|
18
18
|
export interface VTCJoinRequestsStatusResponsePayload {
|
|
19
19
|
requestId: string;
|
|
20
20
|
status: "pending" | "deferred" | "approved" | "rejected" | "withdrawn";
|
|
21
|
+
/**
|
|
22
|
+
* Stable refusal code, safe to branch on. Present only when `status` is `rejected`.
|
|
23
|
+
*/
|
|
24
|
+
code?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Elaboration in prose, when the decider gave one. Present only when `status` is `rejected`.
|
|
27
|
+
*/
|
|
28
|
+
reason?: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* When the refusal was decided — not when this poll was produced. Present only when `status` is `rejected`.
|
|
31
|
+
*/
|
|
32
|
+
decidedAt?: string;
|
|
21
33
|
/**
|
|
22
34
|
* When deferred, what the applicant must supply next.
|
|
23
35
|
*/
|
|
@@ -51,12 +63,11 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
51
63
|
readonly title: "VTC Join-Requests Status — payload";
|
|
52
64
|
readonly type: "object";
|
|
53
65
|
readonly additionalProperties: false;
|
|
54
|
-
readonly required: readonly ["requestId"];
|
|
55
66
|
readonly properties: {
|
|
56
67
|
readonly requestId: {
|
|
57
68
|
readonly type: "string";
|
|
58
69
|
readonly minLength: 1;
|
|
59
|
-
readonly description: "The applicant's
|
|
70
|
+
readonly description: "The request to poll. Optional: an applicant whose first reply was lost never received an id, and the id-less poll — resolved from the authenticated applicant's own DID — is the only form available to them. Supply it when you have it; a consumer that has it MUST prefer it over inferring the request from the caller.";
|
|
60
71
|
};
|
|
61
72
|
readonly ext: {
|
|
62
73
|
readonly $ref: "#/$defs/Ext";
|
|
@@ -78,6 +89,19 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
78
89
|
readonly type: "string";
|
|
79
90
|
readonly enum: readonly ["pending", "deferred", "approved", "rejected", "withdrawn"];
|
|
80
91
|
};
|
|
92
|
+
readonly code: {
|
|
93
|
+
readonly type: "string";
|
|
94
|
+
readonly description: "Stable refusal code, safe to branch on. Present only when `status` is `rejected`.";
|
|
95
|
+
};
|
|
96
|
+
readonly reason: {
|
|
97
|
+
readonly type: readonly ["string", "null"];
|
|
98
|
+
readonly description: "Elaboration in prose, when the decider gave one. Present only when `status` is `rejected`.";
|
|
99
|
+
};
|
|
100
|
+
readonly decidedAt: {
|
|
101
|
+
readonly type: "string";
|
|
102
|
+
readonly format: "date-time";
|
|
103
|
+
readonly description: "When the refusal was decided — not when this poll was produced. Present only when `status` is `rejected`.";
|
|
104
|
+
};
|
|
81
105
|
readonly needs: {
|
|
82
106
|
readonly type: "array";
|
|
83
107
|
readonly items: {
|
|
@@ -126,6 +150,19 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
126
150
|
readonly type: "string";
|
|
127
151
|
readonly enum: readonly ["pending", "deferred", "approved", "rejected", "withdrawn"];
|
|
128
152
|
};
|
|
153
|
+
readonly code: {
|
|
154
|
+
readonly type: "string";
|
|
155
|
+
readonly description: "Stable refusal code, safe to branch on. Present only when `status` is `rejected`.";
|
|
156
|
+
};
|
|
157
|
+
readonly reason: {
|
|
158
|
+
readonly type: readonly ["string", "null"];
|
|
159
|
+
readonly description: "Elaboration in prose, when the decider gave one. Present only when `status` is `rejected`.";
|
|
160
|
+
};
|
|
161
|
+
readonly decidedAt: {
|
|
162
|
+
readonly type: "string";
|
|
163
|
+
readonly format: "date-time";
|
|
164
|
+
readonly description: "When the refusal was decided — not when this poll was produced. Present only when `status` is `rejected`.";
|
|
165
|
+
};
|
|
129
166
|
readonly needs: {
|
|
130
167
|
readonly type: "array";
|
|
131
168
|
readonly items: {
|
|
@@ -171,12 +208,11 @@ export declare const SPEC: {
|
|
|
171
208
|
readonly title: "VTC Join-Requests Status — payload";
|
|
172
209
|
readonly type: "object";
|
|
173
210
|
readonly additionalProperties: false;
|
|
174
|
-
readonly required: readonly ["requestId"];
|
|
175
211
|
readonly properties: {
|
|
176
212
|
readonly requestId: {
|
|
177
213
|
readonly type: "string";
|
|
178
214
|
readonly minLength: 1;
|
|
179
|
-
readonly description: "The applicant's
|
|
215
|
+
readonly description: "The request to poll. Optional: an applicant whose first reply was lost never received an id, and the id-less poll — resolved from the authenticated applicant's own DID — is the only form available to them. Supply it when you have it; a consumer that has it MUST prefer it over inferring the request from the caller.";
|
|
180
216
|
};
|
|
181
217
|
readonly ext: {
|
|
182
218
|
readonly $ref: "#/$defs/Ext";
|
|
@@ -198,6 +234,19 @@ export declare const SPEC: {
|
|
|
198
234
|
readonly type: "string";
|
|
199
235
|
readonly enum: readonly ["pending", "deferred", "approved", "rejected", "withdrawn"];
|
|
200
236
|
};
|
|
237
|
+
readonly code: {
|
|
238
|
+
readonly type: "string";
|
|
239
|
+
readonly description: "Stable refusal code, safe to branch on. Present only when `status` is `rejected`.";
|
|
240
|
+
};
|
|
241
|
+
readonly reason: {
|
|
242
|
+
readonly type: readonly ["string", "null"];
|
|
243
|
+
readonly description: "Elaboration in prose, when the decider gave one. Present only when `status` is `rejected`.";
|
|
244
|
+
};
|
|
245
|
+
readonly decidedAt: {
|
|
246
|
+
readonly type: "string";
|
|
247
|
+
readonly format: "date-time";
|
|
248
|
+
readonly description: "When the refusal was decided — not when this poll was produced. Present only when `status` is `rejected`.";
|
|
249
|
+
};
|
|
201
250
|
readonly needs: {
|
|
202
251
|
readonly type: "array";
|
|
203
252
|
readonly items: {
|
|
@@ -256,6 +305,19 @@ export declare const RESPONSE_SPEC: {
|
|
|
256
305
|
readonly type: "string";
|
|
257
306
|
readonly enum: readonly ["pending", "deferred", "approved", "rejected", "withdrawn"];
|
|
258
307
|
};
|
|
308
|
+
readonly code: {
|
|
309
|
+
readonly type: "string";
|
|
310
|
+
readonly description: "Stable refusal code, safe to branch on. Present only when `status` is `rejected`.";
|
|
311
|
+
};
|
|
312
|
+
readonly reason: {
|
|
313
|
+
readonly type: readonly ["string", "null"];
|
|
314
|
+
readonly description: "Elaboration in prose, when the decider gave one. Present only when `status` is `rejected`.";
|
|
315
|
+
};
|
|
316
|
+
readonly decidedAt: {
|
|
317
|
+
readonly type: "string";
|
|
318
|
+
readonly format: "date-time";
|
|
319
|
+
readonly description: "When the refusal was decided — not when this poll was produced. Present only when `status` is `rejected`.";
|
|
320
|
+
};
|
|
259
321
|
readonly needs: {
|
|
260
322
|
readonly type: "array";
|
|
261
323
|
readonly items: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/join-requests/status/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sour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uE1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
|
|
@@ -21,14 +21,11 @@ export const PAYLOAD_SCHEMA = {
|
|
|
21
21
|
"title": "VTC Join-Requests Status — payload",
|
|
22
22
|
"type": "object",
|
|
23
23
|
"additionalProperties": false,
|
|
24
|
-
"required": [
|
|
25
|
-
"requestId"
|
|
26
|
-
],
|
|
27
24
|
"properties": {
|
|
28
25
|
"requestId": {
|
|
29
26
|
"type": "string",
|
|
30
27
|
"minLength": 1,
|
|
31
|
-
"description": "The applicant's
|
|
28
|
+
"description": "The request to poll. Optional: an applicant whose first reply was lost never received an id, and the id-less poll — resolved from the authenticated applicant's own DID — is the only form available to them. Supply it when you have it; a consumer that has it MUST prefer it over inferring the request from the caller."
|
|
32
29
|
},
|
|
33
30
|
"ext": {
|
|
34
31
|
"$ref": "#/$defs/Ext"
|
|
@@ -59,6 +56,22 @@ export const PAYLOAD_SCHEMA = {
|
|
|
59
56
|
"withdrawn"
|
|
60
57
|
]
|
|
61
58
|
},
|
|
59
|
+
"code": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "Stable refusal code, safe to branch on. Present only when `status` is `rejected`."
|
|
62
|
+
},
|
|
63
|
+
"reason": {
|
|
64
|
+
"type": [
|
|
65
|
+
"string",
|
|
66
|
+
"null"
|
|
67
|
+
],
|
|
68
|
+
"description": "Elaboration in prose, when the decider gave one. Present only when `status` is `rejected`."
|
|
69
|
+
},
|
|
70
|
+
"decidedAt": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"format": "date-time",
|
|
73
|
+
"description": "When the refusal was decided — not when this poll was produced. Present only when `status` is `rejected`."
|
|
74
|
+
},
|
|
62
75
|
"needs": {
|
|
63
76
|
"type": "array",
|
|
64
77
|
"items": {
|
|
@@ -116,6 +129,22 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
116
129
|
"withdrawn"
|
|
117
130
|
]
|
|
118
131
|
},
|
|
132
|
+
"code": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"description": "Stable refusal code, safe to branch on. Present only when `status` is `rejected`."
|
|
135
|
+
},
|
|
136
|
+
"reason": {
|
|
137
|
+
"type": [
|
|
138
|
+
"string",
|
|
139
|
+
"null"
|
|
140
|
+
],
|
|
141
|
+
"description": "Elaboration in prose, when the decider gave one. Present only when `status` is `rejected`."
|
|
142
|
+
},
|
|
143
|
+
"decidedAt": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"format": "date-time",
|
|
146
|
+
"description": "When the refusal was decided — not when this poll was produced. Present only when `status` is `rejected`."
|
|
147
|
+
},
|
|
119
148
|
"needs": {
|
|
120
149
|
"type": "array",
|
|
121
150
|
"items": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/join-requests/status/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/join-requests/status/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAyCH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,0DAAmE,CAAC;AAK5F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,mEAA4E,CAAC;AAK9G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,0DAA0D;IACjE,OAAO,EAAE,oCAAoC;IAC7C,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IA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;YACd,aAAa,EAAE,uKAAuK;YACtL,MAAM,EAAE,QAAQ;YAChB,eAAe,EAAE,CAAC;YAClB,sBAAsB,EAAE,IAAI;YAC5B,eAAe,EAAE;gBACf,SAAS,EAAE,mCAAmC;aAC/C;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,IAAI;IACrB,mBAAmB,EAAE,IAAI;IACzB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
|
@@ -2,11 +2,37 @@
|
|
|
2
2
|
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
3
|
* Source: specs/vtc/relationships/publish/0.1/payload.schema.json
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* Digest over the RFC 8785 canonicalization of the VRC this authorizes. Binds the authorization to one credential, so it cannot be moved to another.
|
|
7
|
+
*/
|
|
8
|
+
export type DigestMultibase = string;
|
|
5
9
|
export interface VTCRelationshipsPublishPayload {
|
|
6
10
|
/**
|
|
7
11
|
* A signed W3C Verifiable Relationship Credential (opaque here). Its issuer MUST equal the document proof signer; credentialSubject.id names the subject member; it carries its own DataIntegrityProof.
|
|
8
12
|
*/
|
|
9
13
|
vrc: {};
|
|
14
|
+
/**
|
|
15
|
+
* Proof that the caller controls the key behind the VRC's `issuer`, when that is not the party issuing this document.
|
|
16
|
+
*
|
|
17
|
+
* A member publishes an edge under a relationship DID — an identifier scoped to one counterparty, which names nobody. The community still has to know a member published it, and the document's own `proof` says only that the member sent it, not that they control the credential's issuing key. Without this, any member handed a VRC could publish another party's edge.
|
|
18
|
+
*
|
|
19
|
+
* Omit it when the VRC's `issuer` is this document's issuer: the document's own proof already establishes control.
|
|
20
|
+
*/
|
|
21
|
+
pop?: {
|
|
22
|
+
/**
|
|
23
|
+
* Guards against a signature the issuer made over some other object being replayed here as authorization to publish.
|
|
24
|
+
*/
|
|
25
|
+
type: "VrcPublishAuthorization";
|
|
26
|
+
/**
|
|
27
|
+
* The `id` of the Trust Task document carrying this authorization. Binds the authorization to one document, so a captured one cannot be replayed in another — including by a different member. Every document carries a unique `id` (SPEC §4.3), which is why the binding needs no transport-specific notion of a session.
|
|
28
|
+
*/
|
|
29
|
+
documentId: string;
|
|
30
|
+
vrcDigestMultibase: DigestMultibase;
|
|
31
|
+
/**
|
|
32
|
+
* Data-integrity proof over this object, by a verification method the VRC's `issuer` controls. This is the proof of possession; the members above only bound what it authorizes.
|
|
33
|
+
*/
|
|
34
|
+
proof: {};
|
|
35
|
+
};
|
|
10
36
|
ext?: Ext;
|
|
11
37
|
}
|
|
12
38
|
/**
|
|
@@ -57,6 +83,30 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
57
83
|
readonly type: "object";
|
|
58
84
|
readonly description: "A signed W3C Verifiable Relationship Credential (opaque here). Its issuer MUST equal the document proof signer; credentialSubject.id names the subject member; it carries its own DataIntegrityProof.";
|
|
59
85
|
};
|
|
86
|
+
readonly pop: {
|
|
87
|
+
readonly type: "object";
|
|
88
|
+
readonly description: "Proof that the caller controls the key behind the VRC's `issuer`, when that is not the party issuing this document.\n\nA member publishes an edge under a relationship DID — an identifier scoped to one counterparty, which names nobody. The community still has to know a member published it, and the document's own `proof` says only that the member sent it, not that they control the credential's issuing key. Without this, any member handed a VRC could publish another party's edge.\n\nOmit it when the VRC's `issuer` is this document's issuer: the document's own proof already establishes control.";
|
|
89
|
+
readonly properties: {
|
|
90
|
+
readonly type: {
|
|
91
|
+
readonly const: "VrcPublishAuthorization";
|
|
92
|
+
readonly description: "Guards against a signature the issuer made over some other object being replayed here as authorization to publish.";
|
|
93
|
+
};
|
|
94
|
+
readonly documentId: {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
readonly description: "The `id` of the Trust Task document carrying this authorization. Binds the authorization to one document, so a captured one cannot be replayed in another — including by a different member. Every document carries a unique `id` (SPEC §4.3), which is why the binding needs no transport-specific notion of a session.";
|
|
97
|
+
};
|
|
98
|
+
readonly vrcDigestMultibase: {
|
|
99
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
100
|
+
readonly description: "Digest over the RFC 8785 canonicalization of the VRC this authorizes. Binds the authorization to one credential, so it cannot be moved to another.";
|
|
101
|
+
};
|
|
102
|
+
readonly proof: {
|
|
103
|
+
readonly type: "object";
|
|
104
|
+
readonly description: "Data-integrity proof over this object, by a verification method the VRC's `issuer` controls. This is the proof of possession; the members above only bound what it authorizes.";
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
readonly required: readonly ["type", "documentId", "vrcDigestMultibase", "proof"];
|
|
108
|
+
readonly additionalProperties: false;
|
|
109
|
+
};
|
|
60
110
|
readonly ext: {
|
|
61
111
|
readonly $ref: "#/$defs/Ext";
|
|
62
112
|
};
|
|
@@ -102,6 +152,14 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
102
152
|
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
103
153
|
};
|
|
104
154
|
};
|
|
155
|
+
readonly DigestMultibase: {
|
|
156
|
+
readonly title: "DigestMultibase";
|
|
157
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
158
|
+
readonly type: "string";
|
|
159
|
+
readonly minLength: 16;
|
|
160
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
161
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
162
|
+
};
|
|
105
163
|
};
|
|
106
164
|
};
|
|
107
165
|
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
@@ -149,6 +207,14 @@ export declare const RESPONSE_PAYLOAD_SCHEMA: {
|
|
|
149
207
|
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
150
208
|
};
|
|
151
209
|
};
|
|
210
|
+
readonly DigestMultibase: {
|
|
211
|
+
readonly title: "DigestMultibase";
|
|
212
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
213
|
+
readonly type: "string";
|
|
214
|
+
readonly minLength: 16;
|
|
215
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
216
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
217
|
+
};
|
|
152
218
|
};
|
|
153
219
|
};
|
|
154
220
|
/**
|
|
@@ -174,6 +240,30 @@ export declare const SPEC: {
|
|
|
174
240
|
readonly type: "object";
|
|
175
241
|
readonly description: "A signed W3C Verifiable Relationship Credential (opaque here). Its issuer MUST equal the document proof signer; credentialSubject.id names the subject member; it carries its own DataIntegrityProof.";
|
|
176
242
|
};
|
|
243
|
+
readonly pop: {
|
|
244
|
+
readonly type: "object";
|
|
245
|
+
readonly description: "Proof that the caller controls the key behind the VRC's `issuer`, when that is not the party issuing this document.\n\nA member publishes an edge under a relationship DID — an identifier scoped to one counterparty, which names nobody. The community still has to know a member published it, and the document's own `proof` says only that the member sent it, not that they control the credential's issuing key. Without this, any member handed a VRC could publish another party's edge.\n\nOmit it when the VRC's `issuer` is this document's issuer: the document's own proof already establishes control.";
|
|
246
|
+
readonly properties: {
|
|
247
|
+
readonly type: {
|
|
248
|
+
readonly const: "VrcPublishAuthorization";
|
|
249
|
+
readonly description: "Guards against a signature the issuer made over some other object being replayed here as authorization to publish.";
|
|
250
|
+
};
|
|
251
|
+
readonly documentId: {
|
|
252
|
+
readonly type: "string";
|
|
253
|
+
readonly description: "The `id` of the Trust Task document carrying this authorization. Binds the authorization to one document, so a captured one cannot be replayed in another — including by a different member. Every document carries a unique `id` (SPEC §4.3), which is why the binding needs no transport-specific notion of a session.";
|
|
254
|
+
};
|
|
255
|
+
readonly vrcDigestMultibase: {
|
|
256
|
+
readonly $ref: "#/$defs/DigestMultibase";
|
|
257
|
+
readonly description: "Digest over the RFC 8785 canonicalization of the VRC this authorizes. Binds the authorization to one credential, so it cannot be moved to another.";
|
|
258
|
+
};
|
|
259
|
+
readonly proof: {
|
|
260
|
+
readonly type: "object";
|
|
261
|
+
readonly description: "Data-integrity proof over this object, by a verification method the VRC's `issuer` controls. This is the proof of possession; the members above only bound what it authorizes.";
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
readonly required: readonly ["type", "documentId", "vrcDigestMultibase", "proof"];
|
|
265
|
+
readonly additionalProperties: false;
|
|
266
|
+
};
|
|
177
267
|
readonly ext: {
|
|
178
268
|
readonly $ref: "#/$defs/Ext";
|
|
179
269
|
};
|
|
@@ -219,6 +309,14 @@ export declare const SPEC: {
|
|
|
219
309
|
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
220
310
|
};
|
|
221
311
|
};
|
|
312
|
+
readonly DigestMultibase: {
|
|
313
|
+
readonly title: "DigestMultibase";
|
|
314
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
315
|
+
readonly type: "string";
|
|
316
|
+
readonly minLength: 16;
|
|
317
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
318
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
319
|
+
};
|
|
222
320
|
};
|
|
223
321
|
};
|
|
224
322
|
};
|
|
@@ -276,6 +374,14 @@ export declare const RESPONSE_SPEC: {
|
|
|
276
374
|
readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
|
|
277
375
|
};
|
|
278
376
|
};
|
|
377
|
+
readonly DigestMultibase: {
|
|
378
|
+
readonly title: "DigestMultibase";
|
|
379
|
+
readonly description: "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.";
|
|
380
|
+
readonly type: "string";
|
|
381
|
+
readonly minLength: 16;
|
|
382
|
+
readonly pattern: "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$";
|
|
383
|
+
readonly examples: readonly ["zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"];
|
|
384
|
+
};
|
|
279
385
|
};
|
|
280
386
|
};
|
|
281
387
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/relationships/publish/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,GAAG,EAAE,EAAE,CAAC;IACR,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,2DAAoE,CAAC;AAE7F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,8BAA8B,CAAC;AAErD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,oEAA6E,CAAC;AAE/G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,sCAAsC,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vtc/relationships/publish/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AAErC,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,GAAG,EAAE,EAAE,CAAC;IACR;;;;;;OAMG;IACH,GAAG,CAAC,EAAE;QACJ;;WAEG;QACH,IAAI,EAAE,yBAAyB,CAAC;QAChC;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QACnB,kBAAkB,EAAE,eAAe,CAAC;QACpC;;WAEG;QACH,KAAK,EAAE,EAAE,CAAC;KACX,CAAC;IACF,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD,MAAM,WAAW,sCAAsC;IACrD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,2DAAoE,CAAC;AAE7F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,8BAA8B,CAAC;AAErD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,oEAA6E,CAAC;AAE/G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,sCAAsC,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwGjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4D1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
|
|
@@ -29,6 +29,35 @@ export const PAYLOAD_SCHEMA = {
|
|
|
29
29
|
"type": "object",
|
|
30
30
|
"description": "A signed W3C Verifiable Relationship Credential (opaque here). Its issuer MUST equal the document proof signer; credentialSubject.id names the subject member; it carries its own DataIntegrityProof."
|
|
31
31
|
},
|
|
32
|
+
"pop": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"description": "Proof that the caller controls the key behind the VRC's `issuer`, when that is not the party issuing this document.\n\nA member publishes an edge under a relationship DID — an identifier scoped to one counterparty, which names nobody. The community still has to know a member published it, and the document's own `proof` says only that the member sent it, not that they control the credential's issuing key. Without this, any member handed a VRC could publish another party's edge.\n\nOmit it when the VRC's `issuer` is this document's issuer: the document's own proof already establishes control.",
|
|
35
|
+
"properties": {
|
|
36
|
+
"type": {
|
|
37
|
+
"const": "VrcPublishAuthorization",
|
|
38
|
+
"description": "Guards against a signature the issuer made over some other object being replayed here as authorization to publish."
|
|
39
|
+
},
|
|
40
|
+
"documentId": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "The `id` of the Trust Task document carrying this authorization. Binds the authorization to one document, so a captured one cannot be replayed in another — including by a different member. Every document carries a unique `id` (SPEC §4.3), which is why the binding needs no transport-specific notion of a session."
|
|
43
|
+
},
|
|
44
|
+
"vrcDigestMultibase": {
|
|
45
|
+
"$ref": "#/$defs/DigestMultibase",
|
|
46
|
+
"description": "Digest over the RFC 8785 canonicalization of the VRC this authorizes. Binds the authorization to one credential, so it cannot be moved to another."
|
|
47
|
+
},
|
|
48
|
+
"proof": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"description": "Data-integrity proof over this object, by a verification method the VRC's `issuer` controls. This is the proof of possession; the members above only bound what it authorizes."
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": [
|
|
54
|
+
"type",
|
|
55
|
+
"documentId",
|
|
56
|
+
"vrcDigestMultibase",
|
|
57
|
+
"proof"
|
|
58
|
+
],
|
|
59
|
+
"additionalProperties": false
|
|
60
|
+
},
|
|
32
61
|
"ext": {
|
|
33
62
|
"$ref": "#/$defs/Ext"
|
|
34
63
|
}
|
|
@@ -78,6 +107,16 @@ export const PAYLOAD_SCHEMA = {
|
|
|
78
107
|
"propertyNames": {
|
|
79
108
|
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
80
109
|
}
|
|
110
|
+
},
|
|
111
|
+
"DigestMultibase": {
|
|
112
|
+
"title": "DigestMultibase",
|
|
113
|
+
"description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
|
|
114
|
+
"type": "string",
|
|
115
|
+
"minLength": 16,
|
|
116
|
+
"pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
|
|
117
|
+
"examples": [
|
|
118
|
+
"zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
|
|
119
|
+
]
|
|
81
120
|
}
|
|
82
121
|
}
|
|
83
122
|
};
|
|
@@ -130,6 +169,16 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
|
130
169
|
"propertyNames": {
|
|
131
170
|
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
132
171
|
}
|
|
172
|
+
},
|
|
173
|
+
"DigestMultibase": {
|
|
174
|
+
"title": "DigestMultibase",
|
|
175
|
+
"description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
|
|
176
|
+
"type": "string",
|
|
177
|
+
"minLength": 16,
|
|
178
|
+
"pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
|
|
179
|
+
"examples": [
|
|
180
|
+
"zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
|
|
181
|
+
]
|
|
133
182
|
}
|
|
134
183
|
}
|
|
135
184
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/relationships/publish/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vtc/relationships/publish/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAwDH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,2DAAoE,CAAC;AAK7F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,oEAA6E,CAAC;AAK/G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,2DAA2D;IAClE,OAAO,EAAE,qCAAqC;IAC9C,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,KAAK;KACN;IACD,YAAY,EAAE;QACZ,KAAK,EAAE;YACL,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,uMAAuM;SACvN;QACD,KAAK,EAAE;YACL,MA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