{
  "id": "2023/1240",
  "url": "https://opencryptology.org/2023/1240",
  "original_url": "https://eprint.iacr.org/2023/1240",
  "title": "$\\mathsf{FREPack}$: Improved SNARK Frontend for Highly Repetitive Computations",
  "authors": [
    "Sriram Sridhar",
    "Yi-Nuo Zhang"
  ],
  "affiliations": null,
  "abstract": "Modern SNARK designs typically follow a frontend-backend paradigm: The frontend compiles a user's program into some equivalent circuit representation, while the backend calls for a SNARK specifically made for proving circuit satisfiability. While these circuits are often defined over small fields, the backend prover always needs to lift the computation to much larger fields to ensure soundness. This gap introduces concrete overheads for ZK applications like zkRollups, where group-based SNARKs are used to provide constant-size proofs for Merkle tree openings.\n\nFor a class of highly repetitive computations, we propose FREPack, an improved frontend that effectively bridges this gap. The larger the gap between circuit's small field and backend's large field, the more FreePack reduces the circuit size, making it particularly well-suited for group-based backends.\nOur implementation shows that, for proving ~300 iterations of SHA-256, FreePack improves the performance of Groth16 by 3.6x, Nova by 3.8x and Spartan by 5.9x.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“$\\mathsf{FREPack}$: Improved SNARK Frontend for Highly Repetitive Computations” by Sriram Sridhar, Yi-Nuo Zhang, Cryptology ePrint Archive, Paper 2023/1240, https://eprint.iacr.org/2023/1240. 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-08-16T16:24:32Z",
    "updated": "2025-09-02T21:31:17Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2023/1240.pdf",
    "sha256": "60c077a122e77a8fc5089a68db6c15882dc8bb24a6a2bfe5ffb806ab911619a0",
    "size": 282673,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2023/1240/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/1240.pdf",
      "size": 282673,
      "sha256": "60c077a122e77a8fc5089a68db6c15882dc8bb24a6a2bfe5ffb806ab911619a0",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2023/1240/versions/20250116T050047Z.pdf",
      "captured_at": "2025-01-16T05:00:47Z",
      "label": "copy captured 2025-01-16",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20250116050047id_/https://eprint.iacr.org/2023/1240.pdf",
      "size": 292299,
      "sha256": "afc79a466c30b50923663c194a9a01a1562cae6e3370ee7c3ed0bad9f92ddf96",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2023/1240/versions/20241002T223553Z.pdf",
      "captured_at": "2024-10-02T22:35:53Z",
      "label": "copy captured 2024-10-02",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20241002223553id_/https://eprint.iacr.org/2023/1240.pdf",
      "size": 292208,
      "sha256": "e8823d93f71dac46e6da223f0423f6da0a63de4a0098836510d2738c02bb5780",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2023/1240/versions/20240415T000005Z.pdf",
      "captured_at": "2024-04-15T00:00:05Z",
      "label": "copy captured 2024-04-15",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20240415000005id_/https://eprint.iacr.org/2023/1240.pdf",
      "size": 311443,
      "sha256": "081d69a9d55e9ffc861806a2deeb5aeab2fc92b9108b946f5c7e49909352aa0d",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/1240.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 282673
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20250907044429id_/https://eprint.iacr.org/2023/1240.pdf",
      "captured_at": "2025-09-07T04:44:29Z",
      "size": 275783
    }
  ],
  "bibtex": "@misc{cryptoeprint:2023/1240,\n      author = {Sriram Sridhar and Yi-Nuo Zhang},\n      title = {$\\mathsf{FREPack}$: Improved SNARK Frontend for Highly Repetitive Computations},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2023/1240},\n      year = {2023},\n      url = {https://eprint.iacr.org/2023/1240}\n}"
}
