{
  "id": "2022/1145",
  "url": "https://opencryptology.org/2022/1145",
  "original_url": "https://eprint.iacr.org/2022/1145",
  "title": "Yafa-108/146: Implementing ed25519-embedding Cocks-Pinch curves in arkworks-rs",
  "authors": [
    "Rami Akeela",
    "Weikeng Chen"
  ],
  "affiliations": null,
  "abstract": "This note describes two pairing-friendly curves that embed ed25519, of different bit security levels. Our search is not novel; it follows the standard recipe of the Cocks-Pinch method. We implemented these two curves on arkworks-rs. This note is intended to document how the parameters are being generated and how to implement these curves in arkworks-rs 0.4.0, for further reference.\n    \nWe name the two curves as Yafa-108 and Yafa-146:\n\n- Yafa-108 is estimated to offer 108-bit security, which we parameterized to match the 103-bit security of BN254 \n\n- Yafa-146 is estimated to offer 146-bit security, which we parameterized to match the 132-bit security of BLS12-446 or 123-bit security of BLS12-381\n\nWe use these curves as an example to demonstrate two things:\n\n- The \"elastic\" zero-knowledge proof, Gemini (EUROCRYPT '22), is more than being elastic, but it is more curve-agnostic and hardware-friendly.\n        \n- The cost of nonnative field arithmetics can be drastic, and the needs of application-specific curves may be inherent. This result serves as evidence of the necessity of EIP-1962, and the insufficiency of EIP-2537.",
  "category": "Applications",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Yafa-108/146: Implementing ed25519-embedding Cocks-Pinch curves in arkworks-rs” by Rami Akeela, Weikeng Chen, Cryptology ePrint Archive, Paper 2022/1145, https://eprint.iacr.org/2022/1145. 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-09-03T01:55:19Z",
    "updated": "2023-05-03T05:32:02Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2022/1145.pdf",
    "sha256": "10290f6e1e26140163c28ebb05a78649c2cec93ba1a15f8dbbc250cf98ccc2c4",
    "size": 466832,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:34Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2022/1145/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/1145.pdf",
      "size": 466832,
      "sha256": "10290f6e1e26140163c28ebb05a78649c2cec93ba1a15f8dbbc250cf98ccc2c4",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2022/1145/versions/20230331T060236Z.pdf",
      "captured_at": "2023-03-31T06:02:36Z",
      "label": "copy captured 2023-03-31",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20230331060236id_/https://eprint.iacr.org/2022/1145.pdf",
      "size": 466831,
      "sha256": "292ab963f00ec82b64373f233dcf783423406cf326635fd5f109a36aa537c081",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2022/1145/versions/20230324T193822Z.pdf",
      "captured_at": "2023-03-24T19:38:22Z",
      "label": "copy captured 2023-03-24",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20230324193822id_/https://eprint.iacr.org/2022/1145.pdf",
      "size": 466848,
      "sha256": "1d3d8ee790fc46c8c7a97990458023bff8c7733be4309f7bda8a9f642fbe0cff",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2022/1145/versions/20221222T103742Z.pdf",
      "captured_at": "2022-12-22T10:37:42Z",
      "label": "copy captured 2022-12-22",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20221222103742id_/https://eprint.iacr.org/2022/1145.pdf",
      "size": 442714,
      "sha256": "8c67f14d018c5152300a5f6e63e04ce99ae8fb7c3127bad3435bd427e687e38a",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2022/1145/versions/20221019T161258Z.pdf",
      "captured_at": "2022-10-19T16:12:58Z",
      "label": "copy captured 2022-10-19",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20221019161258id_/https://eprint.iacr.org/2022/1145.pdf",
      "size": 439986,
      "sha256": "6fd8c7669663f792fea196ce136f51bba124a85a69d73b9fc7c77854063e090c",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260211213706id_/https://eprint.iacr.org/2022/1145.pdf",
      "captured_at": "2026-02-11T21:37:06Z",
      "size": 447668
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/1145.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "size": 466832
    }
  ],
  "bibtex": "@misc{cryptoeprint:2022/1145,\n      author = {Rami Akeela and Weikeng Chen},\n      title = {Yafa-108/146: Implementing ed25519-embedding Cocks-Pinch curves in arkworks-rs},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2022/1145},\n      year = {2022},\n      url = {https://eprint.iacr.org/2022/1145}\n}"
}
