{"id":15190424,"url":"https://github.com/coinspace/bip32-utils","last_synced_at":"2026-03-05T06:01:29.681Z","repository":{"id":57103372,"uuid":"318156952","full_name":"CoinSpace/bip32-utils","owner":"CoinSpace","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-08T09:04:40.000Z","size":187,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-06T03:52:51.896Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/CoinSpace.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}},"created_at":"2020-12-03T10:31:35.000Z","updated_at":"2021-08-29T14:37:52.000Z","dependencies_parsed_at":"2022-08-20T19:40:11.671Z","dependency_job_id":null,"html_url":"https://github.com/CoinSpace/bip32-utils","commit_stats":null,"previous_names":[],"tags_count":59,"template":false,"template_full_name":null,"purl":"pkg:github/CoinSpace/bip32-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoinSpace%2Fbip32-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoinSpace%2Fbip32-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoinSpace%2Fbip32-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoinSpace%2Fbip32-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CoinSpace","download_url":"https://codeload.github.com/CoinSpace/bip32-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoinSpace%2Fbip32-utils/sbom","scorecard":{"id":32022,"data":{"date":"2025-08-11","repo":{"name":"github.com/CoinSpace/bip32-utils","commit":"106d70266fa19b035536b982646c46057cae53c5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"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":"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":"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":"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":"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":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/CoinSpace/bip32-utils/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/CoinSpace/bip32-utils/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/CoinSpace/bip32-utils/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/CoinSpace/bip32-utils/ci.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand 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":"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/ci.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":"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":"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":"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"}},{"name":"Vulnerabilities","score":0,"reason":"30 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-xq7p-g2vc-g82p","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-vh7m-p724-62c2","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-584q-6j8j-r5pm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"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-14T19:21:37.090Z","repository_id":57103372,"created_at":"2025-08-14T19:21:37.090Z","updated_at":"2025-08-14T19:21:37.090Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30111779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-09-27T20:23:14.707Z","updated_at":"2026-03-05T06:01:29.383Z","avatar_url":"https://github.com/CoinSpace.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bip32-utils\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\nA set of utilities for working with BIP32.\nCompatible with bitcoinjs-lib `^2.0.0` and `^3.0.0`.\n\n\n## Example\n\n#### BIP32 Account\n``` javascript\nvar bitcoin = require('bitcoinjs-lib')\nvar bip32utils = require('bip32-utils')\n\n// ...\n\nvar m = bitcoin.HDNode.fromSeedHex(seedHex)\nvar i = m.deriveHardened(0)\nvar external = i.derive(0)\nvar internal = i.derive(1)\nvar account = new bip32utils.Account([\n  new bip32utils.Chain(external.neutered()),\n  new bip32utils.Chain(internal.neutered())\n])\n\nconsole.log(account.getChainAddress(0))\n// =\u003e 1QEj2WQD9vxTzsGEvnmLpvzeLVrpzyKkGt\n\naccount.nextChainAddress(0)\n\nconsole.log(account.getChainAddress(1))\n// =\u003e 1DAi282VN7Ack9o5BqWYkiEsS8Vgx1rLn\n\nconsole.log(account.nextChainAddress(1))\n// =\u003e 1CXKM323V3kkrHmZQYPUTftGh9VrAWuAYX\n\nconsole.log(account.derive('1QEj2WQD9vxTzsGEvnmLpvzeLVrpzyKkGt'))\n// =\u003e xpub6A5Fz4JZg4kd8pLTTaMBKsvVgzRBrvai6ChoxWNTtYQ3UDVG1VyAWQqi6SNqkpsfsx9F8pRqwtKUbU4j4gqpuN2gpgQs4DiJxsJQvTjdzfA\n\n// NOTE: passing in the parent nodes allows for private key escalation (see xprv vs xpub)\n\nconsole.log(account.derive('1QEj2WQD9vxTzsGEvnmLpvzeLVrpzyKkGt', [external, internal]))\n// =\u003e xprv9vodQPEygdPGUWeKUVNd6M2N533PvEYP21tYxznauyhrYBBCmdKxRJzmnsTsSNqfTJPrDF98GbLCm6xRnjceZ238Qkf5GQGHk79CrFqtG4d\n```\n\n\n#### BIP32 Chains\n``` javascript\nvar bitcoin = require('bitcoinjs-lib')\nvar bip32utils = require('bip32-utils')\n\n// ...\n\nvar hdNode = bitcoin.HDNode.fromSeedHex(seedHex)\nvar chain = new bip32utils.Chain(hdNode)\n\nfor (var k = 0; k \u003c 10; ++k) chain.next()\n\nvar address = chain.get()\n\nconsole.log(chain.find(address))\n// =\u003e 9\n\nconsole.log(chain.pop())\n// =\u003e address\n```\n\n\n#### BIP32 Discovery (manual)\n``` javascript\nvar bip32utils = require('bip32-utils')\nvar bitcoin = require('bitcoinjs-lib')\nvar Blockchain = require('cb-blockr')\n\n// ...\n\nvar blockchain = new Blockchain('testnet')\nvar hdNode = bitcoin.HDNode.fromSeedHex(seedHex)\nvar chain = bip32utils.Chain(hdNode)\nvar GAP_LIMIT = 20\nvar GAP_LIMIT_MAX = 20\n\nbip32utils.discovery(chain, GAP_LIMIT, GAP_LIMIT_MAX, function(addresses, callback) {\n  blockchain.addresses.summary(addresses, function(err, results) {\n    if (err) return callback(err)\n\n    var areUsed = results.reduce(function(obj, result) {\n      obj[result] = result.totalReceived \u003e 0\n      return obj\n    }, {})\n\n    callback(undefined, areUsed)\n  })\n}, function(err, used, checked) {\n  if (err) throw err\n\n  console.log('Discovered at most ' + used + ' used addresses')\n  console.log('Checked ' + checked + ' addresses')\n  console.log('With at least ' + (checked - used) + ' unused addresses')\n\n  // throw away ALL unused addresses AFTER the last unused address\n  var unused = checked - used\n  for (var i = 1; i \u003c unused; ++i) chain.pop()\n\n  // remember used !== total, chain may have started at a k-index \u003e 0\n  console.log('Total number of addresses (after prune): ', chain.addresses.length)\n})\n```\n\n\n## LICENSE [MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoinspace%2Fbip32-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoinspace%2Fbip32-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoinspace%2Fbip32-utils/lists"}