{
  "id": "2023/1045",
  "url": "https://opencryptology.org/2023/1045",
  "original_url": "https://eprint.iacr.org/2023/1045",
  "title": "The XHash Family for ZK-Friendly Hash Functions",
  "authors": [
    "Tomer Ashur",
    "Amit Singh Bhati",
    "Al Kindi",
    "Mohammad Mahzoun",
    "Léo Perrin",
    "Sundas Tariq"
  ],
  "affiliations": null,
  "abstract": "Zero-knowledge proofs are widely used in real-world applications, such as authentication, access control, blockchains, and cryptocurrencies. The underlying hash\nfunction is a core element in these zero-knowledge proof systems, and it plays a vital role in its efficiency. While traditional hash functions, such as SHA3 or BLAKE, are efficient on CPU architectures, they perform poorly within proof systems. This is primarily because these systems require functions that operate efficiently over finite fields, without mixing operations from different algebras. To address this challenge, a new paradigm called  Arithmetization-Orientation has emerged. These designs are tailored for efficiency within proof systems while providing reliable security guarantees. Several such hash functions have been proposed, many have been successfully targeted by algebraic attacks or fail to provide optimal performances.\n\nIn this work, we provide a new framework to design such hash functions that prevent these attacks and allow a highly efficient implementation in various proof systems. To this end, we combine the Marvellous design strategy with a new type of S-boxes and propose a new security argument against algebraic attacks that relies on a single well-defined and reasonable conjecture of a novel type.\n\nUsing these techniques in the framework, we construct four new hash functions, XHash12-Goldilocks, XHash8-Goldilocks, XHash24-M31, and XHash16-M31. These high-performance hash functions are designed for ZK-STARKs and Circle-STARKs.",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“The XHash Family for ZK-Friendly Hash Functions” by Tomer Ashur, Amit Singh Bhati, Al Kindi, Mohammad Mahzoun, Léo Perrin, Sundas Tariq, Cryptology ePrint Archive, Paper 2023/1045, https://eprint.iacr.org/2023/1045. 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-07-04T14:23:33Z",
    "updated": "2026-05-11T14:08:47Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2023/1045.pdf",
    "sha256": "a6ae5fac189f8ed1da29f118ac75632a15959ae26d1075232be8e58b974ba3e5",
    "size": 820928,
    "source": "upload",
    "source_date": "2026-11-14T03:59:45.038Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2023/1045/versions/20261114T035945Z.pdf",
      "captured_at": "2026-11-14T03:59:45.038Z",
      "label": "copy captured 2026-11-14",
      "source": "upload",
      "source_url": null,
      "size": 820928,
      "sha256": "a6ae5fac189f8ed1da29f118ac75632a15959ae26d1075232be8e58b974ba3e5",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2023/1045/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/1045.pdf",
      "size": 728806,
      "sha256": "bdf95685639a47e3575e40b1efe1d1306e4a1da9681f82745ccea6c957b1bbc3",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2023/1045/versions/20240303T105039Z.pdf",
      "captured_at": "2024-03-03T10:50:39Z",
      "label": "copy captured 2024-03-03",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20240303105039id_/https://eprint.iacr.org/2023/1045.pdf",
      "size": 482932,
      "sha256": "8da9c6601b84db6490ed803dca8d78aee4069856444d827ef167acd6f99599f2",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/1045.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 728806
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260113164224id_/https://eprint.iacr.org/2023/1045.pdf",
      "captured_at": "2026-01-13T16:42:24Z",
      "size": 722349
    }
  ],
  "bibtex": "@misc{cryptoeprint:2023/1045,\n      author = {Tomer Ashur and Amit Singh Bhati and Al Kindi and Mohammad Mahzoun and Léo Perrin and Sundas Tariq},\n      title = {The XHash Family for ZK-Friendly Hash Functions},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2023/1045},\n      year = {2023},\n      url = {https://eprint.iacr.org/2023/1045}\n}"
}
