forked from vmihalev/addressable-network-proposals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
get-ids-prefs-response.json
33 lines (33 loc) · 1.05 KB
/
get-ids-prefs-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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "get-ids-prefs-response",
"title": "GET /v1/ids-prefs response",
"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' +\npreferences.source.signature + '\\u2063' +\nidentifiers[0].source.signature + '\\u2063' +\nidentifiers[1].source.signature + '\\u2063' +\n...\nidentifiers[n].source.signature\n```"
},
"body": {
"$ref": "ids-and-optional-preferences.json"
}
},
"required": [
"sender",
"receiver",
"timestamp",
"signature",
"body"
]
}