forked from w3c/vc-test-suite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vc-data-model-1.0.json
122 lines (122 loc) · 3.69 KB
/
vc-data-model-1.0.json
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"name": "Verifiable Credentials 1.0 Data Model Test Suite",
"description": "Test Suite for Verifiable Credentials 1.0 Data Model",
"base": {
"default": {
"issuerUrl": "https://example.com/issuer/keys/1",
"publicKey": "keys/key-1-public.pem",
"owner": "https://example.com/owner",
"privateKey": "keys/key-1-private.pem",
"issueValid": true,
"verifyValid": true,
"skip": false
}
},
"resources": {
"https://example.com/issuer/keys/1": "resources/issuer-keys-1.jsonld",
"https://example.com/owner": "resources/owner.jsonld",
"https://w3id.org/identity/v1": "contexts/identity-v1.jsonld",
"https://w3id.org/security/v1": "contexts/security-v1.jsonld",
"https://w3id.org/vc/v1": "contexts/vc-v1.jsonld",
"https://w3id.org/credentials/v1": "contexts/credentials-v1.jsonld"
},
"test": [
{
"name": "Supports machine readable extensions",
"spectext": "VC MUST be expressed in standard machine-readable data formats for expressing VCs which can be extended with minimal coordination",
"extend": "default",
"file": "tests-1.0/extended-valid.jsonld",
"issueValid": true
}, {
"name": "Basic json values work",
"extend": "default",
"file": "tests-1.0/basic-json-values.jsonld",
"issueValid": true
}, {
"name": "Minimal example",
"extend": "default",
"file": "tests-1.0/minimal-valid.jsonld",
"issueValid": true
}, {
"name": "evidence (cardinality)",
"extend": "default",
"file": "tests-1.0/evidence-cardinality-valid.jsonld",
"issueValid": true
}, {
"name": "evidence (objects)",
"extend": "default",
"file": "tests-1.0/evidence-objects-valid.jsonld",
"issueValid": true
}, {
"name": "evidence (url invalid)",
"extend": "default",
"file": "tests-1.0/evidence-url-invalid.jsonld",
"issueValid": false
}, {
"name": "evidence",
"extend": "default",
"file": "tests-1.0/evidence-valid.jsonld",
"issueValid": true
}, {
"name": "expires (date invalid)",
"spectext": "Expires MUST be an RFC3339 date",
"extend": "default",
"file": "tests-1.0/expires-date-invalid.jsonld",
"issueValid": false
}, {
"name": "issued (cardinality invalid)",
"extend": "default",
"file": "tests-1.0/issued-cardinality-invalid.jsonld",
"issueValid": false
}, {
"name": "issued (invalid)",
"extend": "default",
"file": "tests-1.0/issued-invalid.jsonld",
"issueValid": false
}, {
"name": "issued (date invalid)",
"extend": "default",
"file": "tests-1.0/issued-date-invalid.jsonld",
"issueValid": false
}, {
"name": "issued",
"extend": "default",
"file": "tests-1.0/issued-valid.jsonld",
"issueValid": true
}, {
"name": "issuer (cardinality invalid)",
"extend": "default",
"file": "tests-1.0/issuer-cardinality-invalid.jsonld",
"issueValid": false
}, {
"name": "issuer (uri invalid)",
"extend": "default",
"file": "tests-1.0/issuer-uri-invalid.jsonld",
"issueValid": false
}, {
"name": "issuer (object id)",
"extend": "default",
"file": "tests-1.0/issuer-valid-object.jsonld",
"issueValid": true
}, {
"name": "issuer",
"extend": "default",
"file": "tests-1.0/issuer-valid.jsonld",
"issueValid": true
}, {
"name": "revocation (type invalid)",
"extend": "default",
"file": "tests-1.0/revocation-type-invalid.jsonld",
"issueValid": false
}, {
"name": "revocation (url invalid)",
"extend": "default",
"file": "tests-1.0/revocation-url-invalid.jsonld",
"issueValid": false
}, {
"name": "revocation",
"extend": "default",
"file": "tests-1.0/revocation-valid.jsonld",
"issueValid": true
}]
}