{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://xcim.invalid/ietf/p1/schemas/rba.schema.json",
  "title": "P1 Recipient Binding Attestation payload",
  "type": "object", "additionalProperties": false,
  "required": ["proposal_version", "object_type", "binding_id", "issuer", "app_id", "app_epoch", "receipt_id", "receipt_commitment", "permission_id", "purpose_id", "authorization_kind", "pairwise_id", "address_profile", "recipient_domain", "salt", "address_commitment", "iat", "exp"],
  "properties": {
    "proposal_version": {"const": "p1"}, "object_type": {"const": "recipient_binding"},
    "binding_id": {"$ref": "common.schema.json#/$defs/hash32"},
    "issuer": {"$ref": "common.schema.json#/$defs/issuer"},
    "app_id": {"$ref": "common.schema.json#/$defs/app_id"},
    "app_epoch": {"$ref": "common.schema.json#/$defs/epoch"},
    "receipt_id": {"$ref": "common.schema.json#/$defs/receipt_id"},
    "receipt_commitment": {"$ref": "common.schema.json#/$defs/hash32"},
    "permission_id": {"$ref": "common.schema.json#/$defs/permission_id"},
    "purpose_id": {"$ref": "common.schema.json#/$defs/purpose_id"},
    "authorization_kind": {"const": "explicit_consent"},
    "pairwise_id": {"$ref": "common.schema.json#/$defs/hash32"},
    "address_profile": {"const": "xcim-email-wd02-e1-p1"},
    "recipient_domain": {"$ref": "common.schema.json#/$defs/domain"},
    "salt": {"$ref": "common.schema.json#/$defs/hash32"},
    "address_commitment": {"$ref": "common.schema.json#/$defs/hash32"},
    "iat": {"$ref": "common.schema.json#/$defs/time"},
    "exp": {"$ref": "common.schema.json#/$defs/time"}
  },
  "$comment": "Schema does not authenticate the address, scope, time interval, key role, signature, consent or current state. See CONTRACT.md."
}
