{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://xcim.invalid/ietf/nb01/schemas/common.schema.json",
  "title": "NB01-F01 common",
  "$defs": {
    "safe": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "positive": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "id": {
      "type": "string",
      "pattern": "^[!-~]+$",
      "minLength": 1,
      "maxLength": 256
    },
    "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
    },
    "hash": {
      "$ref": "https://xcim.invalid/ietf/as01/schemas/common.schema.json#/$defs/hash"
    },
    "pin": {
      "$ref": "https://xcim.invalid/ietf/as01/schemas/common.schema.json#/$defs/pin"
    },
    "quorum": {
      "$ref": "https://xcim.invalid/ietf/as01/schemas/common.schema.json#/$defs/quorum"
    },
    "block": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "height",
        "hash"
      ],
      "properties": {
        "height": {
          "$ref": "https://xcim.invalid/ietf/nb01/schemas/common.schema.json#/$defs/positive"
        },
        "hash": {
          "$ref": "https://xcim.invalid/ietf/nb01/schemas/common.schema.json#/$defs/hex32"
        }
      }
    }
  }
}
