{"id":15168535,"url":"https://github.com/tetcoinjs/common","last_synced_at":"2026-05-12T22:36:05.118Z","repository":{"id":57155343,"uuid":"341000086","full_name":"tetcoinjs/common","owner":"tetcoinjs","description":"Various useful utility functions that are used across all projects in the @tetcoin namespace.","archived":false,"fork":false,"pushed_at":"2021-05-22T16:37:31.000Z","size":27107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-13T02:21:27.094Z","etag":null,"topics":["crypto","tutorials","yarn"],"latest_commit_sha":null,"homepage":"https://js.tetcoin.org","language":"TypeScript","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/tetcoinjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-21T20:45:14.000Z","updated_at":"2021-05-22T13:59:21.000Z","dependencies_parsed_at":"2022-08-26T08:30:59.037Z","dependency_job_id":null,"html_url":"https://github.com/tetcoinjs/common","commit_stats":null,"previous_names":["tetcoin-js/common"],"tags_count":52,"template":false,"template_full_name":null,"purl":"pkg:github/tetcoinjs/common","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetcoinjs%2Fcommon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetcoinjs%2Fcommon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetcoinjs%2Fcommon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetcoinjs%2Fcommon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tetcoinjs","download_url":"https://codeload.github.com/tetcoinjs/common/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tetcoinjs%2Fcommon/sbom","scorecard":{"id":875288,"data":{"date":"2025-08-11","repo":{"name":"github.com/tetcoinjs/common","commit":"29b31fa5fd7592c8d644c89ff03109662ffa16ca"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pr-any.yml:1","Warn: no topLevel permission defined: .github/workflows/push-master.yml:1","Warn: no topLevel permission defined: .github/workflows/ss58-check.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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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":"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/pr-any.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/tetcoinjs/common/pr-any.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push-master.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/tetcoinjs/common/push-master.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ss58-check.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/tetcoinjs/common/ss58-check.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ss58-check.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/tetcoinjs/common/ss58-check.yml/master?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 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":"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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"}}]},"last_synced_at":"2025-08-24T05:44:27.337Z","repository_id":57155343,"created_at":"2025-08-24T05:44:27.337Z","updated_at":"2025-08-24T05:44:27.337Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29576633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T08:38:15.585Z","status":"ssl_error","status_checked_at":"2026-02-18T08:38:14.917Z","response_time":162,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["crypto","tutorials","yarn"],"created_at":"2024-09-27T06:21:21.409Z","updated_at":"2026-02-18T10:34:30.307Z","avatar_url":"https://github.com/tetcoinjs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![tetcoinjs](https://img.shields.io/badge/tetcoinjs-orange?logo=\u0026style=flat-square)](https://js.tetcoin.org)\n![license](https://img.shields.io/badge/License-Apache%202.0-blue?logo=apache\u0026style=flat-square)\n[![npm](https://img.shields.io/npm/v/@tetcoin/util?logo=npm\u0026style=flat-square)](https://www.npmjs.com/package/@tetcoin/util)\n[![beta](https://img.shields.io/npm/v/@tetcoin/util/beta?label=beta\u0026logo=npm\u0026style=flat-square)](https://www.npmjs.com/package/@tetcoin/util)\n[![maintainability](https://img.shields.io/codeclimate/maintainability-percentage/tetcoinjs/common?logo=code-climate\u0026style=flat-square)](https://codeclimate.com/github/tetcoinjs/common)\n[![coverage](https://img.shields.io/codeclimate/coverage/tetcoinjs/common?logo=code-climate\u0026style=flat-square)](https://codeclimate.com/github/tetcoinjs/common)\n\n# @tetcoin/common\n\nVarious useful utility functions that are used across all projects in the [@tetcoin](https://js.tetcoin.org) namespace. It provides utility functions with additional safety checks, allowing not only for consistent coding, but also reducing the general boilerplate.\n\n## overview\n\nThis repository is split up into a number of internal packages, namely utilities -\n\n- [keyring](packages/keyring/) Keyring management\n- [util](packages/util/) General utilities\n- [util-crypto](packages/util-crypto/) Crypto and hashing utilities\n\n## development\n\nContributions are welcome!\n\nTo start off, this repo (along with others in the [@tetcoin](https://github.com/tetcoinjs/) family) uses yarn workspaces to organise the code. As such, after cloning, its dependencies _should_ be installed via `yarn`, not via npm; the latter will result in broken dependencies.\n\nTo get started -\n\n1. Clone the repo locally, via `git clone https://github.com/tetcoinjs/common \u003coptional local path\u003e`\n2. Ensure that you have a recent version of Node.js, for development purposes [Node 10](https://nodejs.org/en/) is recommended.\n3. Ensure that you have a recent version of Yarn, for development purposes [Yarn \u003e=1.10.1](https://yarnpkg.com/docs/install) is required.\n4. Install the dependencies by running `yarn`\n5. Build the everything via `yarn run build`\n6. You can also launch the API Docs, via `yarn vuepress dev docs`\n7. Access the docs via [http://localhost:8080](http://localhost:8080)\n\n## tutorials\n\nLooking for tutorials to get started? Look at [examples](https://js.tetcoin.org/api/examples/keyring/) for guides on how to use the base utilities.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftetcoinjs%2Fcommon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftetcoinjs%2Fcommon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftetcoinjs%2Fcommon/lists"}