{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://xcim.invalid/ietf/an01/schemas/common.schema.json",
  "title": "AN01-F01 common",
  "$defs": {
    "hash": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{42}[AEIMQUYcgkosw048]$",
      "minLength": 43,
      "maxLength": 43
    },
    "hex32": {
      "type": "string",
      "pattern": "^0x[0-9a-f]{64}$",
      "minLength": 66,
      "maxLength": 66
    },
    "address": {
      "type": "string",
      "pattern": "^0x[0-9a-f]{40}$",
      "minLength": 42,
      "maxLength": 42
    },
    "safe": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "positive": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "id": {
      "type": "string",
      "pattern": "^[!-~]+$",
      "minLength": 1,
      "maxLength": 256
    },
    "code": {
      "type": "string",
      "pattern": "^0x(?:[0-9a-f]{2})+$",
      "minLength": 4,
      "maxLength": 131074
    },
    "quorum": {
      "$ref": "https://xcim.invalid/ietf/as01/schemas/common.schema.json#/$defs/quorum"
    }
  }
}
