{"id":13632716,"url":"https://github.com/ZenGo-X/curv","last_synced_at":"2025-04-18T05:32:58.556Z","repository":{"id":45162020,"uuid":"140744859","full_name":"ZenGo-X/curv","owner":"ZenGo-X","description":"Rust language general purpose elliptic curve cryptography.","archived":false,"fork":false,"pushed_at":"2023-10-03T01:26:02.000Z","size":1139,"stargazers_count":265,"open_issues_count":50,"forks_count":109,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-04-25T21:43:55.544Z","etag":null,"topics":["bignumber","cryptography","elliptic-curves","rust","zero-knowledge-proofs"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/ZenGo-X.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":"audit/kzen-curv-audit final 03.01.2019.pdf","citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-07-12T17:29:11.000Z","updated_at":"2024-04-20T20:36:41.000Z","dependencies_parsed_at":"2024-01-14T07:13:07.988Z","dependency_job_id":"247e840c-6a16-47ad-b573-e2cbbadc3fb6","html_url":"https://github.com/ZenGo-X/curv","commit_stats":{"total_commits":260,"total_committers":26,"mean_commits":10.0,"dds":0.4,"last_synced_commit":"30e9380158fce871c1ef54d71bdabe66fc99e5bb"},"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenGo-X%2Fcurv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenGo-X%2Fcurv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenGo-X%2Fcurv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZenGo-X%2Fcurv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZenGo-X","download_url":"https://codeload.github.com/ZenGo-X/curv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223775244,"owners_count":17200480,"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":["bignumber","cryptography","elliptic-curves","rust","zero-knowledge-proofs"],"created_at":"2024-08-01T22:03:11.926Z","updated_at":"2024-11-09T01:30:41.461Z","avatar_url":"https://github.com/ZenGo-X.png","language":"Rust","readme":"[![Build Status](https://app.travis-ci.com/ZenGo-X/curv.svg?branch=master)](https://app.travis-ci.com/ZenGo-X/curv)\n[![Latest version](https://img.shields.io/crates/v/curv-kzen.svg)](https://crates.io/crates/curv-kzen)\n[![Docs](https://docs.rs/curv-kzen/badge.svg)](https://docs.rs/curv-kzen)\n[![License](https://img.shields.io/crates/l/curv-kzen)](LICENSE)\n[![dependency status](https://deps.rs/repo/github/ZenGo-X/curv/status.svg)](https://deps.rs/repo/github/ZenGo-X/curv)\n\nCurv\n=====================================\nCurv contains an extremely simple interface to onboard new elliptic curves. \nUse this library for general purpose elliptic curve cryptography. \n\nThe library has a built in support for some useful operations/primitives such as verifiable secret sharing, commitment \nschemes, zero knowledge proofs, and simple two party protocols such as ECDH and coin flip. The library comes with \nserialize/deserialize support to be used in higher level code to implement networking. \n\n### Usage\n\nTo use `curv` crate, add the following to your Cargo.toml:\n```toml\n[dependencies]\ncurv-kzen = \"0.9\"\n```\n\nThe crate will be available under `curv` name, e.g.:\n```rust\nuse curv::elliptic::curves::*;\n```\n\n### Currently Supported Elliptic Curves  \n\n|        Curve         |   low level library    |    curve description       |     \n|-------------------------------|------------------------|------------------------|\n|    **Secp256k1**    |        [rust-secp256k1](https://github.com/rust-bitcoin/rust-secp256k1)            |      [bitcoin wiki](https://en.bitcoin.it/wiki/Secp256k1)           |     \n|    **P-256**    |        [RustCrypto](https://crates.io/crates/p256)            |      [NIST.FIPS.186.4](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-4.pdf)           |     \n|    **Ed25519**    |        [cryptoxide](https://github.com/typed-io/cryptoxide/blob/master/src/curve25519.rs)            |      [BDLSY11](https://ed25519.cr.yp.to/ed25519-20110926.pdf)           |      \n|    **Ristretto**    |        [curve25519-dalek](https://github.com/dalek-cryptography/curve25519-dalek)            |     [ristretto group](https://ristretto.group/)           |      \n|    **BLS12-381**    |        [bls12-381](https://crates.io/crates/bls12_381)            |     [BLS12-381 For The Rest Of Us](https://hackmd.io/@benjaminion/bls12-381)           |     \n\n### Security  \nThe library was audited by [Kudelski security](https://www.kudelskisecurity.com/) on Feb19. The report can be found \n[here](https://github.com/KZen-networks/curv/tree/master/audit). No critical issue were found and all issues found \nwere fixed.\n\nThe code was reviewed independently by few other cryptographers. Special thanks goes to [Claudio Orlandi](http://cs.au.dk/~orlandi/) \nfrom Aarhus University. \n\nIn general security of the library is strongly dependent on the security of the low level libraries used. We chose only \nlibraries that are used as part of other big projects and went through heavy audit/review. \n\nThe library is not immune to side channel attacks but considerable effort was given to try and catch as many such \nattacks as possible (see audit report). \n\n### Build\nUse `cargo build` to build everything including curve implementations, cryptoprimitives, BigInt, etc.\n\n### Big integer implementation\nThe library supports a couple of bigint implementations and can easily switch between them.\nYou can choose any one which you prefer by specifying a feature:\n* **rust-gmp-kzen**, uses GMP bindings, requires GMP to be installed on a machine. Used by default.\n* **num-bigint**, Rust's pure implementation of big integer. In order to use it, put in Cargo.toml:\n  ```toml\n  [dependencies.curv-kzen]\n  version = \"0.8\"\n  default-features = false\n  features = [\"num-bigint\"]\n  ```\n  \n  **_Warning:_** `num-bigint` support is experimental and should not be used in production. For this\n  bigint implementation, we use prime numbers generator which is not considered secure.\n\n### Examples\nThe library includes some basic examples to get you going. To run them: \n`cargo run --example EXAMPLE_NAME -- CURVE_NAME`\nfor example: `cargo run --example proof_of_knowledge_of_dlog -- secp256k1`\n\n### Docs \nTo build docs, use:\n```bash\ncargo doc\nRUSTDOCFLAGS=\"--html-in-header katex-header.html\" cargo doc --no-deps --open\n```\n\n### License\nCurv is released under the terms of the MIT license. See [LICENSE](LICENSE) for more information.\n\n\n### Development Process \u0026 Contact\nThis library is maintained by ZenGo-X. Contributions are highly welcomed! Besides GitHub issues and PRs, feel free to [reach out](mailto:github@kzencorp.com) by mail or join ZenGo X [Telegram](https://t.me/joinchat/ET1mddGXRoyCxZ-7) for discussions on code and research. \n\n","funding_links":[],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZenGo-X%2Fcurv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FZenGo-X%2Fcurv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZenGo-X%2Fcurv/lists"}