{"id":19512279,"url":"https://github.com/nccgroup/pasta-curves","last_synced_at":"2025-04-26T04:31:30.792Z","repository":{"id":37672106,"uuid":"494174821","full_name":"nccgroup/pasta-curves","owner":"nccgroup","description":"Provides the Pasta curves: Pallas, Vesta and their field elements Fp and Fq.","archived":false,"fork":false,"pushed_at":"2023-12-29T20:42:42.000Z","size":65,"stargazers_count":3,"open_issues_count":1,"forks_count":4,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-04-14T07:57:56.687Z","etag":null,"topics":["cryptography","elliptic-curve-cryptography","elliptic-curves"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nccgroup.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-19T17:50:07.000Z","updated_at":"2023-03-25T04:01:10.000Z","dependencies_parsed_at":"2024-11-10T23:25:59.915Z","dependency_job_id":"ce5b6d45-3c9d-41ac-9649-55bff3322ff2","html_url":"https://github.com/nccgroup/pasta-curves","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":0.07692307692307687,"last_synced_commit":"743f9625610397320b7ca4f278f249ed67dec23e"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nccgroup%2Fpasta-curves","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nccgroup%2Fpasta-curves/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nccgroup%2Fpasta-curves/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nccgroup%2Fpasta-curves/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nccgroup","download_url":"https://codeload.github.com/nccgroup/pasta-curves/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250931020,"owners_count":21509801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cryptography","elliptic-curve-cryptography","elliptic-curves"],"created_at":"2024-11-10T23:25:07.615Z","updated_at":"2025-04-26T04:31:30.485Z","avatar_url":"https://github.com/nccgroup.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pasta-curves\n\n[![Stack CI](https://github.com/nccgroup/pasta-curves/actions/workflows/stack.yml/badge.svg)](https://github.com/nccgroup/pasta-curves/actions/workflows/stack.yml)\n[![Cabal CI](https://github.com/nccgroup/pasta-curves/actions/workflows/cabal.yml/badge.svg)](https://github.com/nccgroup/pasta-curves/actions/workflows/cabal.yml)\n[![Hackage](https://img.shields.io/hackage/v/pasta-curves.svg?logo=haskell)](https://hackage.haskell.org/package/pasta-curves)\n[![Stackage Lts](http://stackage.org/package/pasta-curves/badge/lts)](http://stackage.org/lts/package/pasta-curves)\n[![Stackage Nightly](http://stackage.org/package/pasta-curves/badge/nightly)](http://stackage.org/nightly/package/pasta-curves)\n[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\n\nThis Haskell library provides the Pasta Curves consisting of: the `Pallas`\ncurve and its `Fp`  field element, the `Vesta` curve  and its `Fq` field \nelement, and a variety of  supporting functionality such as point/element \narithmetic, serialization, and hash-to-curve. The algorithms are NOT constant\ntime.\n\nPallas is y\u003csup\u003e2\u003c/sup\u003e = x\u003csup\u003e3\u003c/sup\u003e + 5 over F\u003csub\u003ep\u003c/sub\u003e(0x40000000000000000000000000000000224698fc094cf91b992d30ed00000001).\nThe order of the Pallas curve is 0x40000000000000000000000000000000224698fc0994a8dd8c46eb2100000001.\n\n\nVesta is y\u003csup\u003e2\u003c/sup\u003e = x\u003csup\u003e3\u003c/sup\u003e + 5 over F\u003csub\u003eq\u003c/sub\u003e(0x40000000000000000000000000000000224698fc0994a8dd8c46eb2100000001).\nThe order of the Vesta curve is 0x40000000000000000000000000000000224698fc094cf91b992d30ed00000001.\n\nThe curves are designed such that the order of one matches the field \ncharacteristic of the other. For a brief introduction, see the Zcash blog \ntitled [\"The Pasta Curves for Halo 2 and Beyond\"](https://electriccoin.co/blog/the-pasta-curves-for-halo-2-and-beyond/).\nThe reference Rust implementation (which inspired this implementation) \ncan be found at: \u003chttps://github.com/zcash/pasta_curves\u003e.\n\nExample usage of this library implementation:\n\n~~~\n$ cabal repl\n\nghci\u003e a = 9 :: Fp\n\nghci\u003e a*a\n0x0000000000000000000000000000000000000000000000000000000000000051\n\nghci\u003e pointMul a base :: Vesta\nProjective {_px = 0x3CDC6A090F2BB3B52714C083929B620FE24ADBCBBD420752108CD7C29E543E5E, \n            _py = 0x08795CD330B3CE5AA63BD2B18DE155AE3C96E8AF9DA2CC742C6BA1464E490161, \n            _pz = 0x1FA26F58F3A641ADFE81775D3D53378D6178B6CCBF14F9BD4AB5F10DEE28D878}\n~~~\n\n---\n\nCopyright 2022 Eric Schorn; Licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnccgroup%2Fpasta-curves","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnccgroup%2Fpasta-curves","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnccgroup%2Fpasta-curves/lists"}