{
  "id": "2023/1560",
  "url": "https://opencryptology.org/2023/1560",
  "original_url": "https://eprint.iacr.org/2023/1560",
  "title": "Check Alternating Patterns: A Physical Zero-Knowledge Proof for Moon-or-Sun",
  "authors": [
    "Samuel Hand",
    "Alexander Koch",
    "Pascal Lafourcade",
    "Daiki Miyahara",
    "Léo Robert"
  ],
  "affiliations": null,
  "abstract": "A zero-knowledge proof (ZKP) allows a party to prove to another party that it knows some secret, such as the solution to a difficult puzzle, without revealing any information about it. We propose a physical zero-knowledge proof using only a deck of playing cards for solutions to a pencil puzzle called \\emph{Moon-or-Sun}. In this puzzle, one is given a grid of cells on which rooms, marked by thick black lines surrounding a connected set of cells, may contain a number of cells with a moon or a sun symbol. The goal is to find a loop passing through all rooms exactly once, and in each room either passes through all cells with a moon, or all cells with a sun symbol.\nFinally, whenever the loop passes from one room to another, it must go through all cells with a moon if in the previous room it passed through all cells with a sun, and visa-versa. This last rule constitutes the main challenge for finding a physical zero-knowledge proof for this puzzle, as this must be verified without giving away through which borders the loop enters or leaves a given room. We design a card-based zero-knowledge proof of knowledge protocol for Moon-or-Sun solutions, together with an analysis of their properties. Our technique of verifying the alternation of a pattern along a non-disclosed path might be of independent interest for similar puzzles.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Check Alternating Patterns: A Physical Zero-Knowledge Proof for Moon-or-Sun” by Samuel Hand, Alexander Koch, Pascal Lafourcade, Daiki Miyahara, Léo Robert, Cryptology ePrint Archive, Paper 2023/1560, https://eprint.iacr.org/2023/1560. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2023-10-10T14:33:56Z",
    "updated": "2023-10-10T14:33:56Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2023/1560.pdf",
    "sha256": "2f78377814d5fa70c61c15c1220e0bcd8778fae39436c9b8620e05da1aba2c80",
    "size": 336598,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:41Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2023/1560/versions/20240114T061341Z.pdf",
      "captured_at": "2024-01-14T06:13:41Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/1560.pdf",
      "size": 336598,
      "sha256": "2f78377814d5fa70c61c15c1220e0bcd8778fae39436c9b8620e05da1aba2c80",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260103051330id_/https://eprint.iacr.org/2023/1560.pdf",
      "captured_at": "2026-01-03T05:13:30Z",
      "size": 329496
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/1560.pdf",
      "captured_at": "2024-01-14T06:13:41Z",
      "size": 336598
    }
  ],
  "bibtex": "@misc{cryptoeprint:2023/1560,\n      author = {Samuel Hand and Alexander Koch and Pascal Lafourcade and Daiki Miyahara and Léo Robert},\n      title = {Check Alternating Patterns: A Physical Zero-Knowledge Proof for Moon-or-Sun},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2023/1560},\n      year = {2023},\n      url = {https://eprint.iacr.org/2023/1560}\n}"
}
