{
  "id": "2022/1470",
  "url": "https://opencryptology.org/2022/1470",
  "original_url": "https://eprint.iacr.org/2022/1470",
  "title": "Casting out Primes: Bignum Arithmetic for Zero-Knowledge Proofs",
  "authors": [
    "Daniel Lubarov",
    "Jordi Baylina Melé"
  ],
  "affiliations": null,
  "abstract": "We describe a nondeterministic method for bignum arithmetic. It is inspired by the \"casting out nines\" technique, where some identity is checked modulo 9, providing a probabilistic result.\n\nMore generally, we might check that some identity holds under a set of moduli, i.e. $f(\\vec{x}) = 0 \\mod m_i$ for each $m_i \\in M$. Then $\\DeclareMathOperator{\\lcm}{lcm} f(\\vec{x}) = 0 \\mod \\lcm(M)$, and if we know $|f(\\vec{x})| < \\lcm(M)$, it follows that $f(\\vec{x}) = 0$.\n\nWe show how to perform such small-modulus checks efficiently, for certain $f(\\vec{x})$ such as bignum multiplication. We focus on the cost model of zero-knowledge proof systems, which support field arithmetic and range checks as native operations.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Casting out Primes: Bignum Arithmetic for Zero-Knowledge Proofs” by Daniel Lubarov, Jordi Baylina Melé, Cryptology ePrint Archive, Paper 2022/1470, https://eprint.iacr.org/2022/1470. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2022-10-27T01:06:07Z",
    "updated": "2022-10-27T01:06:07Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2022/1470.pdf",
    "sha256": "30cc2d4d960332027e1b6ec0e72a31bfd3ebd9e982c391b7e92f2c29dca77252",
    "size": 193757,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:34Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2022/1470/versions/20240114T061334Z.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/1470.pdf",
      "size": 193757,
      "sha256": "30cc2d4d960332027e1b6ec0e72a31bfd3ebd9e982c391b7e92f2c29dca77252",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260108235152id_/https://eprint.iacr.org/2022/1470.pdf",
      "captured_at": "2026-01-08T23:51:52Z",
      "size": 194656
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/1470.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "size": 193757
    }
  ],
  "bibtex": "@misc{cryptoeprint:2022/1470,\n      author = {Daniel Lubarov and Jordi Baylina Melé},\n      title = {Casting out Primes: Bignum Arithmetic for Zero-Knowledge Proofs},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2022/1470},\n      year = {2022},\n      url = {https://eprint.iacr.org/2022/1470}\n}"
}
