forked from vmihalev/addressable-network-proposals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
get-new-id-response.json
48 lines (48 loc) · 1.23 KB
/
get-new-id-response.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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "get-new-id-response",
"title": "GET /v1/new-id response",
"type": "object",
"additionalProperties": false,
"properties": {
"sender": {
"$ref": "domain.json",
"description": "The domain name of the sender of this response (the operator domain name)"
},
"receiver": {
"$ref": "domain.json",
"description": "The domain name of the receiver of this request (the website)"
},
"timestamp": {
"$ref": "timestamp.json"
},
"signature": {
"$ref": "signature.json",
"description": "Signature based on input:\n```\nsender + '\\u2063' +\nreceiver + '\\u2063' +\ntimestamp + '\\u2063' +\nidentifiers[0].source.signature\n```\n (there must be only one identifier)"
},
"body": {
"type": "object",
"additionalProperties": false,
"properties": {
"identifiers": {
"type": "array",
"minCount": 1,
"maxCount": 1,
"items": {
"$ref": "identifier.json"
}
}
},
"required": [
"identifiers"
]
}
},
"required": [
"sender",
"receiver",
"timestamp",
"signature",
"body"
]
}