forked from cardano-foundation/CIPs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
registry.schema.json
87 lines (87 loc) · 3.09 KB
/
registry.schema.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
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://github.com/cardano-foundation/CIPs/blob/master/CIP-0114/registry.schema.json",
"type": "array",
"title": "CBOR Tag Registry",
"description": "JSON schema for CBOR Tag registry",
"default": [],
"examples": [
[
{
"cbor_tag": 32773,
"iana_registered": false,
"description": "ED25519-BIP32 public-key",
"cip": "CIP-0115"
},
{
"cbor_tag": 32774,
"iana_registered": false,
"description": "ED25519-BIP32 Signature",
"cip": "CIP-0115"
}
]
],
"additionalItems": false,
"items": {
"$id": "#/items",
"anyOf": [
{
"$id": "#/items/anyOf/0",
"type": "object",
"title": "The first anyOf schema",
"description": "An entry in the CBOR Tag registry",
"default": {},
"examples": [
{
"cbor_tag": 32771,
"iana_registered": false,
"description": "ED25519-BIP32 Private Key",
"cip": "CIP-xxxx"
}
],
"required": [
"cbor_tag",
"iana_registered",
"description"
],
"properties": {
"cbor_tag": {
"$id": "#/items/anyOf/0/properties/cbor_tag",
"type": "integer",
"title": "The CBOR Tag number",
"examples": [
32771
]
},
"iana_registered": {
"$id": "#/items/anyOf/0/properties/iana_registered",
"type": "boolean",
"title": "Is the tag registered with IANA. Unregistered tags must not be used as they are subject to change.",
"default": false,
"examples": [
true
]
},
"description": {
"$id": "#/items/anyOf/0/properties/description",
"type": "string",
"title": "The CBOR tag description",
"default": "",
"examples": [
"ED25519-BIP32 Private Key"
]
},
"cip": {
"$id": "#/items/anyOf/0/properties/cip",
"type": "string",
"title": "The CIP which defines the Tag and its canonical encoding",
"examples": [
"CIP-0115"
]
}
},
"additionalProperties": true
}
]
}
}