-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotocol.js
38 lines (38 loc) · 833 Bytes
/
protocol.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
export const protocolDefinition = {
protocol: "https://vc-to-dwn.tbddev.org/vc-protocol",
published: true,
types: {
credential: {
schema: "https://vc-to-dwn.tbddev.org/vc-protocol/schema/credential",
dataFormats: ["application/vc+jwt"],
},
issuer: {
schema: "https://vc-to-dwn.tbddev.org/vc-protocol/schema/issuer",
dataFormats: ["text/plain"],
},
judge: {
schema: "https://vc-to-dwn.tbddev.org/vc-protocol/schema/judge",
dataFormats: ["text/plain"],
},
},
structure: {
issuer: {
$role: true,
},
judge: {
$role: true,
},
credential: {
$actions: [
{
role: "issuer",
can: ["create"],
},
{
role: "judge",
can: ["query", "read"],
},
],
},
},
};