forked from vmihalev/addressable-network-proposals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
message-base.json
31 lines (31 loc) · 837 Bytes
/
message-base.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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "message-base",
"title": "Core message",
"description": "The base properties of a request or response to/from an operator",
"type": "object",
"additionalProperties": false,
"properties": {
"sender": {
"$ref": "domain.json",
"description": "The domain name of the sender of this message"
},
"receiver": {
"$ref": "domain.json",
"description": "The domain name of the receiver of this message"
},
"timestamp": {
"$ref": "timestamp.json"
},
"signature": {
"$ref": "signature.json",
"description": "Signature based on input:\n```\nsender + '\\u2063' +\nreceiver + '\\u2063' +\ntimestamp\n```"
}
},
"required": [
"sender",
"receiver",
"timestamp",
"signature"
]
}