-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathidentity.json
49 lines (49 loc) · 1.62 KB
/
identity.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
{
"$schema": "http://json-schema.org/draft-07/schema",
"properties": {
"protocolVersion": {
"type": "integer",
"minimum": 0,
"maximum": 0,
"$comment": "Maximum equals the latest Identity protocol version. Minimum equals the latest supported version"
},
"id": {
"type": "string",
"contentEncoding": "base58",
"minLength": 42,
"maxLength": 44,
"pattern": "^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]+$",
"description": "Unique identity ID",
"$comment": "Hash of the Asset Lock transaction outpoint"
},
"publicKeys": {
"type": "array",
"minItems": 5,
"maxItems": 255,
"uniqueItems": true,
"items": IdentityPublicKey,
},
"balance": {
"type": "integer",
"minimum": 0,
"description": "Identity balance in Platform Credits"
},
"revision": {
"type": "integer",
"minimum": 0,
"description": "Identity update revision",
"$comment": "Incremented by one with each new update so that the update will fail if the underlying data is modified between reading and writing"
},
"isEnabled": {
"type": "boolean",
"$comment": "A disabled identity can't be updated, used for State Transition signing or any other operations"
},
},
"required": [
"id",
"publicKeys",
"balance",
"revision",
"isEnabled"
]
}