-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcensus.schema.json
More file actions
199 lines (199 loc) · 5.3 KB
/
census.schema.json
File metadata and controls
199 lines (199 loc) · 5.3 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CensusReport",
"description": "A census report containing statistics from a network crawl.",
"type": "object",
"required": [
"census_version",
"duration_seconds",
"stats",
"timestamp"
],
"properties": {
"census_version": {
"description": "Version of the census tool.",
"type": "string"
},
"duration_seconds": {
"description": "Duration of the census in seconds.",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"stats": {
"description": "Feature statistics.",
"allOf": [
{
"$ref": "#/definitions/FeatureStats"
}
]
},
"timestamp": {
"description": "When the census was taken (Unix timestamp in seconds).",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"total_contacted": {
"description": "Total number of nodes contacted (listening + non-listening).",
"default": 0,
"type": "integer",
"format": "uint",
"minimum": 0.0
}
},
"definitions": {
"ConnectionTypeFeatures": {
"description": "Feature statistics for a specific connection type.",
"type": "object",
"required": [
"compact_filters",
"total_nodes",
"v2_and_filters",
"v2_transport"
],
"properties": {
"compact_filters": {
"description": "Nodes supporting compact block filters (BIP-157/158).",
"type": "integer",
"format": "uint",
"minimum": 0.0
},
"total_nodes": {
"description": "Total number of nodes for this connection type.",
"type": "integer",
"format": "uint",
"minimum": 0.0
},
"v2_and_filters": {
"description": "Nodes supporting both v2 transport AND compact filters.",
"type": "integer",
"format": "uint",
"minimum": 0.0
},
"v2_transport": {
"description": "Nodes supporting v2 transport (BIP-324).",
"type": "integer",
"format": "uint",
"minimum": 0.0
}
}
},
"ConnectionTypeStats": {
"description": "Statistics broken down by connection type.",
"type": "object",
"required": [
"cjdns",
"i2p",
"ipv4",
"ipv6",
"tor_v2",
"tor_v3",
"unknown"
],
"properties": {
"cjdns": {
"description": "CJDNS mesh network addresses.",
"allOf": [
{
"$ref": "#/definitions/ConnectionTypeFeatures"
}
]
},
"i2p": {
"description": "I2P addresses.",
"allOf": [
{
"$ref": "#/definitions/ConnectionTypeFeatures"
}
]
},
"ipv4": {
"description": "IPv4 clearnet connections.",
"allOf": [
{
"$ref": "#/definitions/ConnectionTypeFeatures"
}
]
},
"ipv6": {
"description": "IPv6 clearnet connections.",
"allOf": [
{
"$ref": "#/definitions/ConnectionTypeFeatures"
}
]
},
"tor_v2": {
"description": "Tor v2 onion addresses (deprecated).",
"allOf": [
{
"$ref": "#/definitions/ConnectionTypeFeatures"
}
]
},
"tor_v3": {
"description": "Tor v3 onion addresses.",
"allOf": [
{
"$ref": "#/definitions/ConnectionTypeFeatures"
}
]
},
"unknown": {
"description": "Unknown/future address types.",
"allOf": [
{
"$ref": "#/definitions/ConnectionTypeFeatures"
}
]
}
}
},
"FeatureStats": {
"description": "Statistics about node features and capabilities.",
"type": "object",
"required": [
"compact_filters",
"connection_types",
"total_nodes",
"v2_and_filters",
"v2_transport"
],
"properties": {
"compact_filters": {
"description": "Nodes supporting compact block filters (BIP-157/158) (sum across all connection types).",
"type": "integer",
"format": "uint",
"minimum": 0.0
},
"connection_types": {
"description": "Detailed breakdown by connection type.",
"allOf": [
{
"$ref": "#/definitions/ConnectionTypeStats"
}
]
},
"total_nodes": {
"description": "Total number of nodes analyzed (sum across all connection types).",
"type": "integer",
"format": "uint",
"minimum": 0.0
},
"v2_and_filters": {
"description": "Nodes supporting both v2 transport AND compact filters (sum across all connection types).",
"type": "integer",
"format": "uint",
"minimum": 0.0
},
"v2_transport": {
"description": "Nodes supporting v2 transport (BIP-324) (sum across all connection types).",
"type": "integer",
"format": "uint",
"minimum": 0.0
}
}
}
}
}