{"id":31923985,"url":"https://github.com/chainsafe/bls-keystore","last_synced_at":"2025-10-13T23:59:32.311Z","repository":{"id":40306920,"uuid":"220179552","full_name":"ChainSafe/bls-keystore","owner":"ChainSafe","description":"Implementation of bls keystore - EIP 2335","archived":false,"fork":false,"pushed_at":"2024-07-15T21:23:27.000Z","size":607,"stargazers_count":29,"open_issues_count":8,"forks_count":7,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-10-02T02:53:25.667Z","etag":null,"topics":["bls","eip2335","eth2","ethereum"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ChainSafe.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-07T07:45:22.000Z","updated_at":"2025-08-21T14:14:55.000Z","dependencies_parsed_at":"2024-06-18T17:02:45.279Z","dependency_job_id":"5627bf5a-8e5b-46ce-8fe1-31966851c215","html_url":"https://github.com/ChainSafe/bls-keystore","commit_stats":{"total_commits":75,"total_committers":11,"mean_commits":6.818181818181818,"dds":0.7466666666666666,"last_synced_commit":"20f0b33a001131ecb87b759e0634a7f220c8256e"},"previous_names":["nodefactoryio/bls-keystore"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/ChainSafe/bls-keystore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChainSafe%2Fbls-keystore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChainSafe%2Fbls-keystore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChainSafe%2Fbls-keystore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChainSafe%2Fbls-keystore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChainSafe","download_url":"https://codeload.github.com/ChainSafe/bls-keystore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChainSafe%2Fbls-keystore/sbom","scorecard":{"id":28303,"data":{"date":"2025-08-11","repo":{"name":"github.com/ChainSafe/bls-keystore","commit":"d6347efc528e999929a2858b02048fd026439182"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","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":"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":"Maintained","score":0,"reason":"0 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":"Code-Review","score":2,"reason":"Found 2/8 approved changesets -- score normalized to 2","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":"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":"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/test.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/bls-keystore/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/ChainSafe/bls-keystore/test.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned 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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 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-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"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:38.694Z","repository_id":40306920,"created_at":"2025-08-14T18:26:38.694Z","updated_at":"2025-08-14T18:26:38.694Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017175,"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":["bls","eip2335","eth2","ethereum"],"created_at":"2025-10-13T23:59:03.912Z","updated_at":"2025-10-13T23:59:32.297Z","avatar_url":"https://github.com/ChainSafe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @ChainSafe/bls-keystore\n\n![npm](https://img.shields.io/npm/v/@chainsafe/bls-keystore)\n![Discord](https://img.shields.io/discord/593655374469660673?color=blue\u0026label=Discord\u0026logo=discord)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n![es-version](https://img.shields.io/badge/ES-2015-yellow)\n![node-version](https://img.shields.io/badge/node-10.x-green)\n\n\u003e Typescript implementation of [EIP 2335](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2335.md) for node and browser.\n\n### How to use?\n\nFunctional interface\n```typescript\nimport {\n  IKeystore,\n  create,\n  decrypt,\n  verifyPassword,\n  isValidKeystore,\n  validateKeystore,\n} from \"@chainsafe/bls-keystore\";\n\n// encrypt private key\nconst password: string | Uint8Array = \"SomePassword123\"; \nconst privateKey: Uint8Array = ...;\nconst publicKey: Uint8Array = ...;\nconst path: string = \"m/12381/60/0/0\";\n\n// keystore is an `object` that follows the EIP-2335 schema\nconst keystore: IKeystore = await create(password, privateKey, publicKey, path);\n\n// verify password\nawait verifyPassword(keystore, password); //true | false\n\n// decrypt\nconst decryptedPrivateKey: Uint8Array = await decrypt(keystore, password);\n\n// convert to string\nJSON.stringify(keystore); //string\n\n// determine if unsanitized data fits the EIP-2335 schema\nconst data: unknown = ...;\nisValidKeystore(data); // true | false\n\nvalidateKeystore(data); // throws if invalid\n```\n\nClass-based interface\n```typescript\nimport {\n  Keystore,\n} from \"@chainsafe/bls-keystore\";\n\n// encrypt private key\nconst password: string | Uint8Array = \"SomePassword123\"; \nconst privateKey: Uint8Array = ...;\nconst publicKey: Uint8Array = ...;\nconst path: string = \"m/12381/60/0/0\";\n\n// keystore is a `Keystore` instance that follows the EIP-2335 schema with additional convenience methods\nconst keystore: Keystore = await Keystore.create(password, privateKey, publicKey, path);\n\n// verify password\nawait keystore.verifyPassword(password); //true | false\n\n// decrypt\nconst decryptedPrivateKey: Uint8Array = await keystore.decrypt(password);\n\n// convert to string\nkeystore.stringify(); //string\n\n// determine if unsanitized data fits the EIP-2335 schema\nconst data: unknown = ...;\nKeystore.fromObject(data); // returns a Keystore or throws if data is invalid\n```\n\nFor key derivation checkout [@chainsafe/bls-keygen](https://github.com/ChainSafe/bls-keygen)\n\n### Contribute\n\n- get yarn\n- yarn install\n- yarn test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainsafe%2Fbls-keystore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchainsafe%2Fbls-keystore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainsafe%2Fbls-keystore/lists"}