forked from cardano-foundation/CIPs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathversion_1.json
More file actions
106 lines (106 loc) · 4.08 KB
/
Copy pathversion_1.json
File metadata and controls
106 lines (106 loc) · 4.08 KB
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Cardano KERI Accountability Metadata",
"description": "Metadata schema for embedding KERI identifiers and authentication events (AUTH_BEGIN, ATTEST, AUTH_END) within Cardano transactions.",
"type": "object",
"patternProperties": {
"^[0-9]+$": {
"description": "Metadata label key (integer as string).",
"oneOf": [
{
"type": "object",
"properties": {
"t": {
"const": "AUTH_BEGIN"
},
"s": {
"type": "string",
"description": "Self-addressing identifier (SAID) of the leaf credential schema."
},
"i": {
"type": "string",
"description": "Autonomic Identifier (AID) of the signer."
},
"c": {
"type": "string",
"description": "Byte stream representing the credential or context."
},
"m": {
"type": "object",
"description": "Optional metadata block.",
"additionalProperties": true
}
},
"required": [
"t",
"s",
"i",
"c"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"t": {
"const": "ATTEST"
},
"i": {
"type": "string",
"description": "Autonomic Identifier (AID) of the signer."
},
"d": {
"type": "string",
"description": "Digest referencing the authenticated data."
},
"s": {
"type": "string",
"pattern": "^[0-9A-Fa-f]+$",
"description": "Hex-encoded sequence number."
}
},
"required": [
"t",
"i",
"d",
"s"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"t": {
"const": "AUTH_END"
},
"s": {
"type": "string",
"description": "Self-addressing identifier (SAID) of the leaf credential schema."
},
"i": {
"type": "string",
"description": "Autonomic Identifier (AID) of the signer."
},
"c": {
"type": "string",
"description": "Byte stream representing the credential or closing context."
},
"m": {
"type": "object",
"description": "Optional metadata block.",
"additionalProperties": true
}
},
"required": [
"t",
"s",
"i",
"c"
],
"additionalProperties": false
}
]
}
},
"additionalProperties": false
}