{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A subscriber's signed registration. Proves custody of the did:key by carrying badge.blue attestations (network.attested.signature) over the nonce returned from com.fedproxy.temp.xrpc.getRegistrationNonce. Presented as the parameter to com.fedproxy.temp.xrpc.subscribe to open a relay channel bound to this key.",
      "key": "tid",
      "record": {
        "properties": {
          "key": {
            "description": "did:key public-key reference that signed the nonce; must match the key passed to getRegistrationNonce.",
            "type": "string"
          },
          "nonce": {
            "description": "The 64-byte nonce issued by com.fedproxy.temp.xrpc.getRegistrationNonce that this registration signs over.",
            "type": "bytes"
          },
          "signatures": {
            "description": "badge.blue attestations (network.attested.signature) over the issued nonce, proving liveness and custody of the did:key.",
            "ref": "network.attested.signature#signatures",
            "type": "ref"
          }
        },
        "required": [
          "key",
          "nonce",
          "signatures"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.fedproxy.temp.xrpc.registration",
  "lexicon": 1
}
