{"id":13736734,"url":"https://github.com/status-im/nim-blscurve","last_synced_at":"2026-06-30T18:30:14.552Z","repository":{"id":34083118,"uuid":"142473731","full_name":"status-im/nim-blscurve","owner":"status-im","description":"Nim implementation of BLS signature scheme (Boneh-Lynn-Shacham) over Barreto-Lynn-Scott (BLS) curve BLS12-381","archived":false,"fork":false,"pushed_at":"2025-02-12T16:09:05.000Z","size":1289,"stargazers_count":26,"open_issues_count":6,"forks_count":11,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-02-22T17:43:32.129Z","etag":null,"topics":["bls","cryptography","elliptic-curve-arithmetic","elliptic-curve-cryptography","elliptic-curves","pairing","pairing-cryptography","signature-scheme"],"latest_commit_sha":null,"homepage":"","language":"Nim","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/status-im.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHEv2","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-07-26T17:37:36.000Z","updated_at":"2025-02-12T16:09:09.000Z","dependencies_parsed_at":"2024-01-06T12:01:59.682Z","dependency_job_id":"2fb74685-45e2-49f4-b108-5473e2de9d35","html_url":"https://github.com/status-im/nim-blscurve","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Fnim-blscurve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Fnim-blscurve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Fnim-blscurve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/status-im%2Fnim-blscurve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/status-im","download_url":"https://codeload.github.com/status-im/nim-blscurve/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240371761,"owners_count":19790888,"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":["bls","cryptography","elliptic-curve-arithmetic","elliptic-curve-cryptography","elliptic-curves","pairing","pairing-cryptography","signature-scheme"],"created_at":"2024-08-03T03:01:27.513Z","updated_at":"2026-06-30T18:30:14.486Z","avatar_url":"https://github.com/status-im.png","language":"Nim","funding_links":[],"categories":["Algorithms"],"sub_categories":["Cryptography"],"readme":"# BLS Signature Scheme over BLS12-381 pairing-friendly curve\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![License: Apache](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n![Github action](https://github.com/status-im/nim-blscurve/workflows/CI/badge.svg)\n\nThis library implements:\n- The BLS signature scheme (Boneh-Lynn-Shacham)\n- over the BLS12-381 (Barreto-Lynn-Scott) pairing-friendly curve\n\nCipher suite ID: `BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_POP_`\n\n## Installation\n\nYou can install the developement version of the library through nimble with the following command\n```\nnimble install https://github.com/status-im/nim-blscurve\n```\n\n## Implementation stability\n\nThis repo follows Ethereum 2.0 requirements.\n\nBesides the standardization work described below, no changes are planned upstream\nfor the foreseeable future.\n\n### Standardization\n\nCurrently (Jun 2019) a cross-blockchain working group is working to standardize BLS signatures\nfor the following blockchains:\n- Algorand\n- Chia Network\n- Dfinity\n- Ethereum 2.0\n- Filecoin\n- Zcash Sapling\n\n#### Signature scheme\n\n- IETF draft submission v2: https://tools.ietf.org/html/draft-boneh-bls-signature-02\n- Repo for collaboration on the draft: https://github.com/cfrg/draft-irtf-cfrg-bls-signature\n\n#### Hashing to curve\n\n- https://tools.ietf.org/html/draft-irtf-cfrg-hash-to-curve-09\n- https://github.com/cfrg/draft-irtf-cfrg-hash-to-curve\n\nNote: the implementation was done following Hash-to-curve v7\nv9 and v7 are protocol compatible but have cosmetic changes (naming variables, precomputing constants, ...)\n\n#### Curve implementation\n\n- https://tools.ietf.org/html/draft-irtf-cfrg-pairing-friendly-curves-00\n\n## Backend\n\nThis library uses:\n- [SupraNational BLST](https://github.com/supranational/blst) on all platforms.\n\nBLST uses SSSE3 by default, if supported on the host. To disable that, when building\nbinaries destined for older CPUs, pass `-d:BLSTuseSSSE3=0` to the Nim compiler.\n\n### Executing the test suite\n\nWe recommend working within the nimbus build environment described here:\nhttps://github.com/status-im/nimbus-eth2\n\nTo execute the test suite, just navigate to the root of this repo and execute:\n\n```\nnimble test\n```\n\n\u003e Please note that within the nimbus build environment, the repository will\n  be located in `nimbus-eth2/vendor/nim-blscurve`.\n\n### Executing the fuzzing tests\n\nBefore you start, please make sure that the regular test suite executes\nsuccessfully (see the instructions above). To start a particular fuzzing\ntest, navigate to the root of this repo and execute:\n\n```\nnim tests/fuzzing/run_fuzzing_test.nims \u003ctest-name\u003e\n```\n\nYou can specify the fuzzing engine being used by passing an additional\n`--fuzzer` parameter. The currently supported engines are `libFuzzer`\n(used by default) and `afl`.\n\nAll fuzzing tests are located in `tests/fuzzing` and use the following\nnaming convention:\n\n```\nfuzz_\u003ctest-name\u003e.nim\n```\n\n## License\n\nLicensed and distributed under either of\n\n* MIT license: [LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT\n* Apache License, Version 2.0, ([LICENSE-APACHEv2](LICENSE-APACHEv2) or http://www.apache.org/licenses/LICENSE-2.0)\n\nat your option. These files may not be copied, modified, or distributed except according to those terms.\n\n### Dependencies\n\n- SupraNational BLST is distributed under the Apache License, Version 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatus-im%2Fnim-blscurve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatus-im%2Fnim-blscurve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatus-im%2Fnim-blscurve/lists"}