{"id":31923852,"url":"https://github.com/chainsafe/blst-ts","last_synced_at":"2025-10-13T23:58:14.725Z","repository":{"id":37089370,"uuid":"302155424","full_name":"ChainSafe/blst-ts","owner":"ChainSafe","description":"Typescript wrapper for https://github.com/supranational/blst native bindings, a highly performant BLS12-381 signature library","archived":false,"fork":false,"pushed_at":"2025-07-23T13:35:43.000Z","size":17696,"stargazers_count":19,"open_issues_count":4,"forks_count":13,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-10-13T00:17:03.548Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ChainSafe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-07T20:42:38.000Z","updated_at":"2025-08-18T20:11:15.000Z","dependencies_parsed_at":"2023-12-22T05:27:55.918Z","dependency_job_id":"2f714d4f-8635-485a-b511-bae1fbd42862","html_url":"https://github.com/ChainSafe/blst-ts","commit_stats":{"total_commits":220,"total_committers":8,"mean_commits":27.5,"dds":0.3954545454545455,"last_synced_commit":"6ff826db02a1c5363d30e67785742b85c9172dea"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/ChainSafe/blst-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChainSafe%2Fblst-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChainSafe%2Fblst-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChainSafe%2Fblst-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChainSafe%2Fblst-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChainSafe","download_url":"https://codeload.github.com/ChainSafe/blst-ts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChainSafe%2Fblst-ts/sbom","scorecard":{"id":28304,"data":{"date":"2025-08-11","repo":{"name":"github.com/ChainSafe/blst-ts","commit":"86c49590d37d4e1dd44b3b5ba604132f3b51d99d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Code-Review","score":8,"reason":"Found 22/25 approved changesets -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: topLevel 'contents' permission set to 'write': .github/workflows/CI.yml:7","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:80: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:95: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:102: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:113: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:136: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:138: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:146: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:172: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:174: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:181: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:212: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:220: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:226: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:258: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:260: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:269: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:277: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:300: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:302: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:315: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:320: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:343: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:345: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:358: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:363: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:386: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:388: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/CI.yml:394: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:402: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:408: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/blst-ts/CI.yml/master?enable=pin","Info:   0 out of  24 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  10 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v2.2.0 not signed: https://api.github.com/repos/ChainSafe/blst-ts/releases/182381047","Warn: release artifact v2.1.0 not signed: https://api.github.com/repos/ChainSafe/blst-ts/releases/181245680","Warn: release artifact v2.0.3 not signed: https://api.github.com/repos/ChainSafe/blst-ts/releases/167390171","Warn: release artifact v2.0.2 not signed: https://api.github.com/repos/ChainSafe/blst-ts/releases/167294558","Warn: release artifact v2.0.1 not signed: https://api.github.com/repos/ChainSafe/blst-ts/releases/166536059","Warn: release artifact v2.2.0 does not have provenance: https://api.github.com/repos/ChainSafe/blst-ts/releases/182381047","Warn: release artifact v2.1.0 does not have provenance: https://api.github.com/repos/ChainSafe/blst-ts/releases/181245680","Warn: release artifact v2.0.3 does not have provenance: https://api.github.com/repos/ChainSafe/blst-ts/releases/167390171","Warn: release artifact v2.0.2 does not have provenance: https://api.github.com/repos/ChainSafe/blst-ts/releases/167294558","Warn: release artifact v2.0.1 does not have provenance: https://api.github.com/repos/ChainSafe/blst-ts/releases/166536059"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-mpg4-rc92-vx8v","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-c76h-2ccp-4975","Warn: Project is vulnerable to: GHSA-cxrh-j4jr-qwg3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-14T18:26:39.583Z","repository_id":37089370,"created_at":"2025-08-14T18:26:39.584Z","updated_at":"2025-08-14T18:26:39.584Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017168,"owners_count":26086019,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-10-13T23:58:13.304Z","updated_at":"2025-10-13T23:58:14.720Z","avatar_url":"https://github.com/ChainSafe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blst-ts\n\n![ETH2.0_Spec_Version 1.4.0](https://img.shields.io/badge/ETH2.0_Spec_Version-1.4.0-2e86c1.svg)\n![ES Version](https://img.shields.io/badge/ES-2017-yellow)\n![Node Version](https://img.shields.io/badge/node-16.x-green)\n\nTypescript wrapper for [supranational/blst](https://github.com/supranational/blst) native bindings, a highly performant BLS12-381 signature library.\n\n## Supported Environments\n\n| OS / Arch     | binary name | Node                               |\n| ------------- | ----------- | ---------------------------------- |\n| Linux / x64   | linux-x64   | 16, 18, 20, 21 |\n| Linux / arm64 | linux-arm64 | 16, 18, 20, 21 |\n| Windows / x64 | win32-x64   | 16, 18, 20, 21 |\n| macOS / x64     | darwin-x64  | 16, 18, 20, 21 |\n| macOS / arm64      | darwin-arm64  | 16, 18, 20, 21 |\n\n## Usage\n\n```bash\nyarn add @chainsafe/blst\n```\n\nThis library comes with pre-compiled bindings for most platforms. You can check current support in [releases](https://github.com/ChainSafe/blst-ts/releases). If your platform is not supported, bindings will be compiled from source as a best effort with node-gyp.\n\n```ts\nimport crypto from \"crypto\";\nimport {SecretKey, verify, BLST_CONSTANTS} from \"@chainsafe/blst\";\n\nconst msg = Buffer.from(\"sample-msg\");\nconst sk = SecretKey.fromKeygen(crypto.randomBytes(BLST_CONSTANTS.SECRET_KEY_LENGTH));\nconst pk = sk.toPublicKey();\nconst sig = sk.sign(msg);\n\nconsole.log(verify(msg, pk, sig)); // true\n```\n\nThis library exposes a classes for secret keys, public keys and signatures: `SecretKey`, `PublicKey` \u0026 `Signature`\n\nThe `PublicKey` and `Signature` contain an affine point (x,y) encoding of P1 in G1 and P2 in G2 respectively.\n\n## Spec versioning\n\nThis library has a hardcoded configuration compatible with Eth2.0 spec:\n\n| Setting        | value                                         |\n| -------------- | --------------------------------------------- |\n| PK_IN          | `G1`                                          |\n| HASH_OR_ENCODE | `true`                                        |\n| DST            | `BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_POP_` |\n| RAND_BITS      | `64`                                          |\n\n\u003e [spec](https://github.com/ethereum/eth2.0-specs/blob/v0.11.1/specs/phase0/beacon-chain.md#bls-signatures)\n\n\u003e [test vectors](https://github.com/ethereum/consensus-spec-tests/tree/master/tests/general)\n\n## Contributing\n\nPlease check out [CONTRIBUTING.md](./CONTRIBUTING.md) for more info on how to use the repo and for architectural details\n\n## Release/Publishing\n\n## Release\n\nThe release process is automatically [triggered](.github/workflows/CI.yml#216) when the master branch has the version in package.json updated.\n\nTo create a new release: \n\n1. Increment the project version in [package.json](package.json#3)\n    - A pre-release can be published by ensuring that the project version is appended with non-numeric characters, eg: `-beta`\n2. run `yarn run version`\n3. merge a commit with these changes\n4. CI will run and result in a new release being published\n\n## License\n\nApache-2.0","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainsafe%2Fblst-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchainsafe%2Fblst-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainsafe%2Fblst-ts/lists"}