socialweb.computer

Request and provide VMs on an atproto compute market.

lexicons and xrpc

lexicon

com.publicdomainrelay.temp.market.receipt

record key any

The bidder's receipt for an accept. cid binds the receipt to the accept record in the requester's repository.

record

fieldtypedescription
rfp *com.atproto.repo.strongRef
The market.rfp.
bid *com.atproto.repo.strongRef
The market.bid.
accept *com.atproto.repo.strongRef
The market.accept this receipt answers.
payloadcom.atproto.repo.strongRef nullable
The payload of the RFP this receipt answers (its compute.vm); null only when the writer has none, which the bidder never writes.
submitEventstring
The accept's submitEvent copied unchanged, where the bidder submits events to the requester (a DID service ref did#serviceId or an HTTP URL); present only when the bidder serves inbound XRPC.
ingressarray of com.atproto.repo.strongRef
The bidder's com.publicdomainrelay.temp.ingress.webRTC listen records for this contract; the bidder writes none today.
cid *string cid
The attestation CID binding this receipt to the accept record and the accept repository.
createdAtstring datetime
signatures *network.attested.signature#signatures

used in

Compute Contract Flow - Complete Architecture Map, flow: one compute contract, end to end, guest-events: events under a receipt, identity: signatures, key claims, associations, sign-in, protocol: the atproto protocol of socialweb-computer, lexicons-market: one row per lexicon, market: the RFP flow, Compute is easier to trust when you can read the receipt., The protocol spec, From zero to a signed contract, Four signed hops, one verifiable contract., Verify it. Don't just trust it.

raw schema: lexicons/com/publicdomainrelay/temp/market/receipt.json
{
  "lexicon": 1,
  "id": "com.publicdomainrelay.temp.market.receipt",
  "description": "The bidder's receipt for an accept. cid binds the receipt to the accept record in the requester's repository.",
  "defs": {
    "main": {
      "type": "record",
      "key": "any",
      "record": {
        "type": "object",
        "required": [
          "rfp",
          "bid",
          "accept",
          "cid",
          "signatures"
        ],
        "nullable": [
          "payload"
        ],
        "properties": {
          "rfp": {
            "type": "ref",
            "ref": "com.atproto.repo.strongRef",
            "description": "The market.rfp."
          },
          "bid": {
            "type": "ref",
            "ref": "com.atproto.repo.strongRef",
            "description": "The market.bid."
          },
          "accept": {
            "type": "ref",
            "ref": "com.atproto.repo.strongRef",
            "description": "The market.accept this receipt answers."
          },
          "payload": {
            "type": "ref",
            "ref": "com.atproto.repo.strongRef",
            "description": "The payload of the RFP this receipt answers (its compute.vm); null only when the writer has none, which the bidder never writes."
          },
          "submitEvent": {
            "type": "string",
            "description": "The accept's submitEvent copied unchanged, where the bidder submits events to the requester (a DID service ref did#serviceId or an HTTP URL); present only when the bidder serves inbound XRPC."
          },
          "ingress": {
            "type": "array",
            "items": {
              "type": "ref",
              "ref": "com.atproto.repo.strongRef"
            },
            "description": "The bidder's com.publicdomainrelay.temp.ingress.webRTC listen records for this contract; the bidder writes none today."
          },
          "cid": {
            "type": "string",
            "format": "cid",
            "description": "The attestation CID binding this receipt to the accept record and the accept repository."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "signatures": {
            "type": "ref",
            "ref": "network.attested.signature#signatures"
          }
        }
      }
    }
  }
}