{
  "id": "2021/146",
  "url": "https://opencryptology.org/2021/146",
  "original_url": "https://eprint.iacr.org/2021/146",
  "title": "Securely Computing Piecewise Constant Codes",
  "authors": [
    "Benjamin E. Diamond"
  ],
  "affiliations": null,
  "abstract": "Piecewise constant codes form an expressive and well-understood class of codes. In this work, we show that many piecewise constant codes admit exact coverings by polynomial-cardinality collections of hyperplanes. We prove that any boolean function whose \"on-set\" has been covered in just this manner can be evaluated by two parties with malicious security. This represents an interesting connection between covering codes, affine-linear algebra over prime fields, and secure computation. We observe that many natural boolean functions' on-sets admit expressions as piecewise constant codes (and hence can be computed securely). Our protocol supports secure computation on committed inputs; we describe applications in blockchains and credentials. We finally present an efficient implementation of our protocol.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Securely Computing Piecewise Constant Codes” by Benjamin E. Diamond, Cryptology ePrint Archive, Paper 2021/146, https://eprint.iacr.org/2021/146. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2021-02-12T07:34:49Z",
    "updated": "2022-09-07T13:47:33Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/146.pdf",
    "sha256": "f018200c4dcafc394d097098691a3bfb18876190c9340c02584afd316caf19da",
    "size": 671548,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:28Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2021/146/versions/20240114T061328Z.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/146.pdf",
      "size": 671548,
      "sha256": "f018200c4dcafc394d097098691a3bfb18876190c9340c02584afd316caf19da",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2021/146/versions/20210828T002826Z.pdf",
      "captured_at": "2021-08-28T00:28:26Z",
      "label": "copy captured 2021-08-28",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20210828002826id_/https://eprint.iacr.org/2021/146.pdf",
      "size": 572811,
      "sha256": "d24b3d78980823cff93ab1a30bd3e669c36a29466df92d63ee2644ef5bf991f7",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2021/146/versions/20210518T171045Z.pdf",
      "captured_at": "2021-05-18T17:10:45Z",
      "label": "copy captured 2021-05-18",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20210518171045id_/https://eprint.iacr.org/2021/146.pdf",
      "size": 730395,
      "sha256": "f24bae0582f08975fc39b24a6398d90b4fc7878c3c759838e69509c1684186db",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260225114410id_/https://eprint.iacr.org/2021/146.pdf",
      "captured_at": "2026-02-25T11:44:10Z",
      "size": 669867
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/146.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 671548
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/146,\n      author = {Benjamin E. Diamond},\n      title = {Securely Computing Piecewise Constant Codes},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/146},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/146}\n}"
}
