~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0
main
49 lines · 2.0 KB Raw History
{
  "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"
          }
        }
      }
    }
  }
}