{"id":13532157,"url":"https://github.com/zkcrypto/jubjub","last_synced_at":"2025-12-12T16:37:39.578Z","repository":{"id":32927495,"uuid":"146638355","full_name":"zkcrypto/jubjub","owner":"zkcrypto","description":"Implementation of the Jubjub elliptic curve group","archived":false,"fork":false,"pushed_at":"2024-08-16T11:02:58.000Z","size":281,"stargazers_count":121,"open_issues_count":10,"forks_count":49,"subscribers_count":13,"default_branch":"main","last_synced_at":"2024-11-17T10:56:10.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zkcrypto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2018-08-29T17:57:17.000Z","updated_at":"2024-11-05T00:32:50.000Z","dependencies_parsed_at":"2024-01-13T23:18:20.256Z","dependency_job_id":"2a949d0b-d141-4787-8e86-0fe4ef994495","html_url":"https://github.com/zkcrypto/jubjub","commit_stats":{"total_commits":184,"total_committers":12,"mean_commits":"15.333333333333334","dds":0.5869565217391304,"last_synced_commit":"47dfe5181ccf39166c0c479c35c0644d708f4294"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkcrypto%2Fjubjub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkcrypto%2Fjubjub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkcrypto%2Fjubjub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkcrypto%2Fjubjub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zkcrypto","download_url":"https://codeload.github.com/zkcrypto/jubjub/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709923,"owners_count":20821297,"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":[],"created_at":"2024-08-01T07:01:08.619Z","updated_at":"2025-12-12T16:37:34.510Z","avatar_url":"https://github.com/zkcrypto.png","language":"Rust","funding_links":[],"categories":["Cryptography"],"sub_categories":["Theorem"],"readme":"# jubjub [![Crates.io](https://img.shields.io/crates/v/jubjub.svg)](https://crates.io/crates/jubjub) #\n\n\u003cimg\n width=\"15%\"\n align=\"right\"\n src=\"https://raw.githubusercontent.com/zcash/zips/master/protocol/jubjub.png\"/\u003e\n\nThis is a pure Rust implementation of the Jubjub elliptic curve group and its associated fields.\n\n* **This implementation has not been reviewed or audited. Use at your own risk.**\n* This implementation targets Rust `1.56` or later.\n* All operations are constant time unless explicitly noted.\n* This implementation does not require the Rust standard library.\n\n## RFC process\n\nThis crate follows the [zkcrypto RFC process](https://zkcrypto.github.io/rfcs/).\nIf you want to propose \"substantial\" changes to this crate, please\n[create an RFC](https://github.com/zkcrypto/rfcs) for wider discussion.\n\n## [Documentation](https://docs.rs/jubjub)\n\n## Curve Description\n\nJubjub is the [twisted Edwards curve](https://en.wikipedia.org/wiki/Twisted_Edwards_curve) `-u^2 + v^2 = 1 + d.u^2.v^2` of rational points over `GF(q)` with a subgroup of prime order `r` and cofactor `8`.\n\n```\nq = 0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001\nr = 0x0e7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb7\nd = -(10240/10241)\n```\n\nThe choice of `GF(q)` is made to be the scalar field of the BLS12-381 elliptic curve construction.\n\nJubjub is birationally equivalent to a [Montgomery curve](https://en.wikipedia.org/wiki/Montgomery_curve) `y^2 = x^3 + Ax^2 + x` over the same field with `A = 40962`. This value of `A` is the smallest integer such that `(A - 2) / 4` is a small integer, `A^2 - 4` is nonsquare in `GF(q)`, and the Montgomery curve and its quadratic twist have small cofactors `8` and `4`, respectively. This is identical to the relationship between Curve25519 and ed25519.\n\nPlease see [./doc/evidence/](./doc/evidence/) for supporting evidence that Jubjub meets the [SafeCurves](https://safecurves.cr.yp.to/index.html) criteria. The tool in [./doc/derive/](./doc/derive/) will derive the curve parameters via the above criteria to demonstrate rigidity.\n\n## Acknowledgements\n\nJubjub was designed by Sean Bowe. Daira Hopwood is responsible for its name and specification. The security evidence in [./doc/evidence/](./doc/evidence/) is the product of Daira Hopwood and based on SafeCurves by Daniel J. Bernstein and Tanja Lange. Peter Newell and Daira Hopwood are responsible for the Jubjub bird image.\n\nPlease see `Cargo.toml` for a list of primary authors of this codebase.\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\nlicense, shall be dual licensed as above, without any additional terms or\nconditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkcrypto%2Fjubjub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzkcrypto%2Fjubjub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkcrypto%2Fjubjub/lists"}