{"id":13532203,"url":"https://github.com/rust-bitcoin/rust-secp256k1","last_synced_at":"2025-05-13T20:12:09.179Z","repository":{"id":19610817,"uuid":"22862033","full_name":"rust-bitcoin/rust-secp256k1","owner":"rust-bitcoin","description":"Rust language bindings for Bitcoin secp256k1 library.","archived":false,"fork":false,"pushed_at":"2025-05-08T02:08:12.000Z","size":13100,"stargazers_count":381,"open_issues_count":85,"forks_count":286,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-05-08T03:21:51.164Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rust-bitcoin.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,"zenodo":null}},"created_at":"2014-08-12T02:27:27.000Z","updated_at":"2025-05-07T14:59:48.000Z","dependencies_parsed_at":"2023-11-15T19:28:07.270Z","dependency_job_id":"5c1df80f-5805-41d1-a38a-5b7c2df7e12c","html_url":"https://github.com/rust-bitcoin/rust-secp256k1","commit_stats":{"total_commits":896,"total_committers":64,"mean_commits":14.0,"dds":0.6897321428571428,"last_synced_commit":"3b2868d81a01431f7beac4f62729b1c1178e73df"},"previous_names":[],"tags_count":96,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bitcoin%2Frust-secp256k1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bitcoin%2Frust-secp256k1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bitcoin%2Frust-secp256k1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bitcoin%2Frust-secp256k1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-bitcoin","download_url":"https://codeload.github.com/rust-bitcoin/rust-secp256k1/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254020615,"owners_count":22000755,"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:09.050Z","updated_at":"2025-05-13T20:12:09.144Z","avatar_url":"https://github.com/rust-bitcoin.png","language":"C","funding_links":[],"categories":["C","Cryptography"],"sub_categories":["Theorem"],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eRust Secp256k1\u003c/h1\u003e\n\n  \u003cp\u003e\n    \u003ca href=\"https://crates.io/crates/secp256k1\"\u003e\u003cimg alt=\"Crate Info\" src=\"https://img.shields.io/crates/v/secp256k1.svg\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/rust-bitcoin/rust-secp256k1/blob/master/LICENSE\"\u003e\u003cimg alt=\"CC0 1.0 Universal Licensed\" src=\"https://img.shields.io/badge/license-CC0--1.0-blue.svg\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/rust-bitcoin/rust-secp256k1/actions?query=workflow%3AContinuous%20integration\"\u003e\u003cimg alt=\"CI Status\" src=\"https://github.com/rust-bitcoin/rust-secp256k1/workflows/Continuous%20integration/badge.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://docs.rs/secp256k1\"\u003e\u003cimg alt=\"API Docs\" src=\"https://img.shields.io/badge/docs.rs-secp256k1-green\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://blog.rust-lang.org/2020/02/27/Rust-1.56.1.html\"\u003e\u003cimg alt=\"Rustc Version 1.56.1+\" src=\"https://img.shields.io/badge/rustc-1.56.1.0%2B-lightgrey.svg\"/\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n`rust-secp256k1` is a wrapper around [libsecp256k1](https://github.com/bitcoin-core/secp256k1), a C\nlibrary implementing various cryptographic functions using the [SECG](https://www.secg.org/) curve\n[secp256k1](https://en.bitcoin.it/wiki/Secp256k1).\n\nThis library:\n\n* exposes type-safe Rust bindings for all `libsecp256k1` functions\n* implements key generation\n* implements deterministic nonce generation via RFC6979\n* implements many unit tests, adding to those already present in `libsecp256k1`\n* makes no allocations (except in unit tests) for efficiency and use in freestanding implementations\n\n### Contributing\n\nContributions to this library are welcome. A few guidelines:\n\n* Any breaking changes must have an accompanied entry in CHANGELOG.md\n* No new dependencies, please.\n* No crypto should be implemented in Rust, with the possible exception of hash functions. Cryptographic contributions should be directed upstream to libsecp256k1.\n* This library should always compile with any combination of features on **Rust 1.56.1**.\n\n### Githooks\n\nTo assist devs in catching errors _before_ running CI we provide some githooks. If you do not\nalready have locally configured githooks you can use the ones in this repository by running, in the\nroot directory of the repository:\n```\ngit config --local core.hooksPath githooks/\n```\n\nAlternatively add symlinks in your `.git/hooks` directory to any of the githooks we provide.\n\n### Benchmarks\n\nWe use a custom Rust compiler configuration conditional to guard the bench mark code. To run the\nbench marks use: `RUSTFLAGS='--cfg=bench' cargo +nightly bench --features=recovery`.\n\n### A note on `non_secure_erase`\n\nThis crate's secret types (`SecretKey`, `Keypair`, `SharedSecret`, `Scalar`, and `DisplaySecret`)\nhave a method called `non_secure_erase` that *attempts* to overwrite the contained secret. This\nmethod is provided to assist other libraries in building secure secret erasure. However, this\nlibrary makes no guarantees about the security of using `non_secure_erase`. In particular,\nthe compiler doesn't have any concept of secrets and in most cases can arbitrarily move or copy\nvalues anywhere it pleases. For more information, consult the [`zeroize`](https://docs.rs/zeroize)\ndocumentation.\n\n## Fuzzing\n\nIf you want to fuzz this library, or any library which depends on it, you will\nprobably want to disable the actual cryptography, since fuzzers are unable to\nforge signatures and therefore won't test many interesting codepaths. To instead\nuse a trivially-broken but fuzzer-accessible signature scheme, compile with\n`--cfg=secp256k1_fuzz` in your `RUSTFLAGS` variable.\n\nNote that `cargo hfuzz` does **not** set this config flag automatically. In 0.27.0\nand earlier versions, we used the `--cfg=fuzzing` which honggfuzz does set, but we\nchanged this because there was no way to override it.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-bitcoin%2Frust-secp256k1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-bitcoin%2Frust-secp256k1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-bitcoin%2Frust-secp256k1/lists"}