dkg 8.0.0a0__py3-none-any.whl → 8.0.0a2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dkg/asset.py +131 -13
- dkg/constants.py +3 -13
- dkg/data/interfaces/ContentAsset.json +15 -119
- dkg/data/interfaces/ContentAssetStorage.json +0 -76
- dkg/data/interfaces/Hub.json +2 -2
- dkg/data/interfaces/IdentityStorage.json +342 -0
- dkg/data/interfaces/Paranet.json +721 -16
- dkg/data/interfaces/ParanetsRegistry.json +771 -33
- dkg/dataclasses.py +11 -1
- dkg/exceptions.py +1 -0
- dkg/node.py +7 -0
- dkg/paranet.py +336 -2
- dkg/providers/blockchain.py +13 -15
- dkg/types/__init__.py +15 -3
- dkg/types/general.py +15 -8
- dkg/utils/blockchain_request.py +121 -1
- dkg/utils/merkle.py +1 -1
- dkg/utils/node_request.py +1 -1
- dkg/utils/rdf.py +1 -3
- dkg/utils/string_transformations.py +1 -0
- {dkg-8.0.0a0.dist-info → dkg-8.0.0a2.dist-info}/METADATA +8 -7
- {dkg-8.0.0a0.dist-info → dkg-8.0.0a2.dist-info}/RECORD +25 -24
- {dkg-8.0.0a0.dist-info → dkg-8.0.0a2.dist-info}/LICENSE +0 -0
- {dkg-8.0.0a0.dist-info → dkg-8.0.0a2.dist-info}/NOTICE +0 -0
- {dkg-8.0.0a0.dist-info → dkg-8.0.0a2.dist-info}/WHEEL +0 -0
@@ -0,0 +1,342 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"inputs": [
|
4
|
+
{
|
5
|
+
"internalType": "address",
|
6
|
+
"name": "hubAddress",
|
7
|
+
"type": "address"
|
8
|
+
}
|
9
|
+
],
|
10
|
+
"stateMutability": "nonpayable",
|
11
|
+
"type": "constructor"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"anonymous": false,
|
15
|
+
"inputs": [
|
16
|
+
{
|
17
|
+
"indexed": true,
|
18
|
+
"internalType": "uint72",
|
19
|
+
"name": "identityId",
|
20
|
+
"type": "uint72"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"indexed": true,
|
24
|
+
"internalType": "bytes32",
|
25
|
+
"name": "key",
|
26
|
+
"type": "bytes32"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"indexed": false,
|
30
|
+
"internalType": "uint256",
|
31
|
+
"name": "purpose",
|
32
|
+
"type": "uint256"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"indexed": false,
|
36
|
+
"internalType": "uint256",
|
37
|
+
"name": "keyType",
|
38
|
+
"type": "uint256"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"name": "KeyAdded",
|
42
|
+
"type": "event"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"anonymous": false,
|
46
|
+
"inputs": [
|
47
|
+
{
|
48
|
+
"indexed": true,
|
49
|
+
"internalType": "uint72",
|
50
|
+
"name": "identityId",
|
51
|
+
"type": "uint72"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"indexed": true,
|
55
|
+
"internalType": "bytes32",
|
56
|
+
"name": "key",
|
57
|
+
"type": "bytes32"
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"indexed": false,
|
61
|
+
"internalType": "uint256",
|
62
|
+
"name": "purpose",
|
63
|
+
"type": "uint256"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"indexed": false,
|
67
|
+
"internalType": "uint256",
|
68
|
+
"name": "keyType",
|
69
|
+
"type": "uint256"
|
70
|
+
}
|
71
|
+
],
|
72
|
+
"name": "KeyRemoved",
|
73
|
+
"type": "event"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"inputs": [
|
77
|
+
{
|
78
|
+
"internalType": "uint72",
|
79
|
+
"name": "identityId",
|
80
|
+
"type": "uint72"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"internalType": "bytes32",
|
84
|
+
"name": "_key",
|
85
|
+
"type": "bytes32"
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"internalType": "uint256",
|
89
|
+
"name": "_purpose",
|
90
|
+
"type": "uint256"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"internalType": "uint256",
|
94
|
+
"name": "_type",
|
95
|
+
"type": "uint256"
|
96
|
+
}
|
97
|
+
],
|
98
|
+
"name": "addKey",
|
99
|
+
"outputs": [],
|
100
|
+
"stateMutability": "nonpayable",
|
101
|
+
"type": "function"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"inputs": [
|
105
|
+
{
|
106
|
+
"internalType": "uint72",
|
107
|
+
"name": "identityId",
|
108
|
+
"type": "uint72"
|
109
|
+
}
|
110
|
+
],
|
111
|
+
"name": "deleteIdentity",
|
112
|
+
"outputs": [],
|
113
|
+
"stateMutability": "nonpayable",
|
114
|
+
"type": "function"
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"inputs": [],
|
118
|
+
"name": "generateIdentityId",
|
119
|
+
"outputs": [
|
120
|
+
{
|
121
|
+
"internalType": "uint72",
|
122
|
+
"name": "",
|
123
|
+
"type": "uint72"
|
124
|
+
}
|
125
|
+
],
|
126
|
+
"stateMutability": "nonpayable",
|
127
|
+
"type": "function"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"inputs": [
|
131
|
+
{
|
132
|
+
"internalType": "address",
|
133
|
+
"name": "operational",
|
134
|
+
"type": "address"
|
135
|
+
}
|
136
|
+
],
|
137
|
+
"name": "getIdentityId",
|
138
|
+
"outputs": [
|
139
|
+
{
|
140
|
+
"internalType": "uint72",
|
141
|
+
"name": "",
|
142
|
+
"type": "uint72"
|
143
|
+
}
|
144
|
+
],
|
145
|
+
"stateMutability": "view",
|
146
|
+
"type": "function"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"inputs": [
|
150
|
+
{
|
151
|
+
"internalType": "uint72",
|
152
|
+
"name": "identityId",
|
153
|
+
"type": "uint72"
|
154
|
+
},
|
155
|
+
{
|
156
|
+
"internalType": "bytes32",
|
157
|
+
"name": "_key",
|
158
|
+
"type": "bytes32"
|
159
|
+
}
|
160
|
+
],
|
161
|
+
"name": "getKey",
|
162
|
+
"outputs": [
|
163
|
+
{
|
164
|
+
"internalType": "uint256",
|
165
|
+
"name": "",
|
166
|
+
"type": "uint256"
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"internalType": "uint256",
|
170
|
+
"name": "",
|
171
|
+
"type": "uint256"
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"internalType": "bytes32",
|
175
|
+
"name": "",
|
176
|
+
"type": "bytes32"
|
177
|
+
}
|
178
|
+
],
|
179
|
+
"stateMutability": "view",
|
180
|
+
"type": "function"
|
181
|
+
},
|
182
|
+
{
|
183
|
+
"inputs": [
|
184
|
+
{
|
185
|
+
"internalType": "uint72",
|
186
|
+
"name": "identityId",
|
187
|
+
"type": "uint72"
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"internalType": "uint256",
|
191
|
+
"name": "_purpose",
|
192
|
+
"type": "uint256"
|
193
|
+
}
|
194
|
+
],
|
195
|
+
"name": "getKeysByPurpose",
|
196
|
+
"outputs": [
|
197
|
+
{
|
198
|
+
"internalType": "bytes32[]",
|
199
|
+
"name": "",
|
200
|
+
"type": "bytes32[]"
|
201
|
+
}
|
202
|
+
],
|
203
|
+
"stateMutability": "view",
|
204
|
+
"type": "function"
|
205
|
+
},
|
206
|
+
{
|
207
|
+
"inputs": [],
|
208
|
+
"name": "hub",
|
209
|
+
"outputs": [
|
210
|
+
{
|
211
|
+
"internalType": "contract Hub",
|
212
|
+
"name": "",
|
213
|
+
"type": "address"
|
214
|
+
}
|
215
|
+
],
|
216
|
+
"stateMutability": "view",
|
217
|
+
"type": "function"
|
218
|
+
},
|
219
|
+
{
|
220
|
+
"inputs": [
|
221
|
+
{
|
222
|
+
"internalType": "bytes32",
|
223
|
+
"name": "",
|
224
|
+
"type": "bytes32"
|
225
|
+
}
|
226
|
+
],
|
227
|
+
"name": "identityIds",
|
228
|
+
"outputs": [
|
229
|
+
{
|
230
|
+
"internalType": "uint72",
|
231
|
+
"name": "",
|
232
|
+
"type": "uint72"
|
233
|
+
}
|
234
|
+
],
|
235
|
+
"stateMutability": "view",
|
236
|
+
"type": "function"
|
237
|
+
},
|
238
|
+
{
|
239
|
+
"inputs": [
|
240
|
+
{
|
241
|
+
"internalType": "uint72",
|
242
|
+
"name": "identityId",
|
243
|
+
"type": "uint72"
|
244
|
+
},
|
245
|
+
{
|
246
|
+
"internalType": "bytes32",
|
247
|
+
"name": "_key",
|
248
|
+
"type": "bytes32"
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"internalType": "uint256",
|
252
|
+
"name": "_purpose",
|
253
|
+
"type": "uint256"
|
254
|
+
}
|
255
|
+
],
|
256
|
+
"name": "keyHasPurpose",
|
257
|
+
"outputs": [
|
258
|
+
{
|
259
|
+
"internalType": "bool",
|
260
|
+
"name": "",
|
261
|
+
"type": "bool"
|
262
|
+
}
|
263
|
+
],
|
264
|
+
"stateMutability": "view",
|
265
|
+
"type": "function"
|
266
|
+
},
|
267
|
+
{
|
268
|
+
"inputs": [],
|
269
|
+
"name": "name",
|
270
|
+
"outputs": [
|
271
|
+
{
|
272
|
+
"internalType": "string",
|
273
|
+
"name": "",
|
274
|
+
"type": "string"
|
275
|
+
}
|
276
|
+
],
|
277
|
+
"stateMutability": "pure",
|
278
|
+
"type": "function"
|
279
|
+
},
|
280
|
+
{
|
281
|
+
"inputs": [
|
282
|
+
{
|
283
|
+
"internalType": "uint72",
|
284
|
+
"name": "identityId",
|
285
|
+
"type": "uint72"
|
286
|
+
},
|
287
|
+
{
|
288
|
+
"internalType": "bytes32",
|
289
|
+
"name": "_key",
|
290
|
+
"type": "bytes32"
|
291
|
+
}
|
292
|
+
],
|
293
|
+
"name": "removeKey",
|
294
|
+
"outputs": [],
|
295
|
+
"stateMutability": "nonpayable",
|
296
|
+
"type": "function"
|
297
|
+
},
|
298
|
+
{
|
299
|
+
"inputs": [
|
300
|
+
{
|
301
|
+
"internalType": "bytes32",
|
302
|
+
"name": "operationalKey",
|
303
|
+
"type": "bytes32"
|
304
|
+
}
|
305
|
+
],
|
306
|
+
"name": "removeOperationalKeyIdentityId",
|
307
|
+
"outputs": [],
|
308
|
+
"stateMutability": "nonpayable",
|
309
|
+
"type": "function"
|
310
|
+
},
|
311
|
+
{
|
312
|
+
"inputs": [
|
313
|
+
{
|
314
|
+
"internalType": "bytes32",
|
315
|
+
"name": "operationalKey",
|
316
|
+
"type": "bytes32"
|
317
|
+
},
|
318
|
+
{
|
319
|
+
"internalType": "uint72",
|
320
|
+
"name": "identityId",
|
321
|
+
"type": "uint72"
|
322
|
+
}
|
323
|
+
],
|
324
|
+
"name": "setOperationalKeyIdentityId",
|
325
|
+
"outputs": [],
|
326
|
+
"stateMutability": "nonpayable",
|
327
|
+
"type": "function"
|
328
|
+
},
|
329
|
+
{
|
330
|
+
"inputs": [],
|
331
|
+
"name": "version",
|
332
|
+
"outputs": [
|
333
|
+
{
|
334
|
+
"internalType": "string",
|
335
|
+
"name": "",
|
336
|
+
"type": "string"
|
337
|
+
}
|
338
|
+
],
|
339
|
+
"stateMutability": "pure",
|
340
|
+
"type": "function"
|
341
|
+
}
|
342
|
+
]
|