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
{
"lexicon": 1,
"id": "com.publicdomainrelay.temp.compute.events.guest.signalWebRTC",
"description": "A sealed WebRTC session description for one tunnel; sent as the payload of a market.event. Non-trickle ICE: the requester offers once with all candidates, the guest answers once. Direction comes from the author: a requester-authored one is forwarded by the bidder to the guest's subscription; a bidder-authored one carries what the guest said. The bidder never opens the ciphertext.",
"defs": {
"main": {
"type": "record",
"key": "any",
"record": {
"type": "object",
"required": [
"kind",
"tag",
"ciphertext",
"createdAt"
],
"properties": {
"kind": {
"type": "string",
"knownValues": [
"offer",
"answer"
],
"maxLength": 16,
"description": "The SDP type of the sealed session description."
},
"tag": {
"type": "string",
"maxLength": 32,
"description": "Names the webrtc tunnel of the contract (spec.tunnels)."
},
"ciphertext": {
"type": "string",
"maxLength": 16384,
"description": "The session description, age armored ciphertext. The plaintext is the JSON object {\"sdp\": <session description>, \"replyTo\": <age recipient, offers only>}: an offer is sealed to the guest's latest compute.events.guest.publicKey for the tag and names in replyTo the age recipient the answer must be sealed to; an answer is sealed to that replyTo. No record names the key, so a reader opens every signal for the tag with its identity and keeps the ones that open."
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"signatures": {
"type": "ref",
"ref": "network.attested.signature#signatures"
}
}
}
}
}
}