{"id":29042448,"url":"https://github.com/corvusstorage/segwit-bitcoin-wallet-generator-in-nodejs","last_synced_at":"2025-06-26T15:33:06.897Z","repository":{"id":163268553,"uuid":"638666376","full_name":"CorvusStorage/Segwit-Bitcoin-Wallet-Generator-in-Nodejs","owner":"CorvusStorage","description":"WPKH Bitcoin Wallet Generator in Nodejs","archived":false,"fork":false,"pushed_at":"2023-05-11T21:00:08.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-27T22:08:38.475Z","etag":null,"topics":["bitcoin","bitcoin-address-generator","bitcoin-seed","bitcoin-segwit","bitcoin-wallet-address","bitcoin-wallet-generator","seedphrase","segwit","segwit-address"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/CorvusStorage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-05-09T20:57:49.000Z","updated_at":"2025-05-17T08:33:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"369c6e88-2741-4d59-9c81-405712329216","html_url":"https://github.com/CorvusStorage/Segwit-Bitcoin-Wallet-Generator-in-Nodejs","commit_stats":null,"previous_names":["corvusstorage/segwit-bitcoin-wallet-generator-in-nodejs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CorvusStorage/Segwit-Bitcoin-Wallet-Generator-in-Nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorvusStorage%2FSegwit-Bitcoin-Wallet-Generator-in-Nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorvusStorage%2FSegwit-Bitcoin-Wallet-Generator-in-Nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorvusStorage%2FSegwit-Bitcoin-Wallet-Generator-in-Nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorvusStorage%2FSegwit-Bitcoin-Wallet-Generator-in-Nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CorvusStorage","download_url":"https://codeload.github.com/CorvusStorage/Segwit-Bitcoin-Wallet-Generator-in-Nodejs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorvusStorage%2FSegwit-Bitcoin-Wallet-Generator-in-Nodejs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262094770,"owners_count":23258034,"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":["bitcoin","bitcoin-address-generator","bitcoin-seed","bitcoin-segwit","bitcoin-wallet-address","bitcoin-wallet-generator","seedphrase","segwit","segwit-address"],"created_at":"2025-06-26T15:33:01.449Z","updated_at":"2025-06-26T15:33:06.881Z","avatar_url":"https://github.com/CorvusStorage.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitcoin Segwit also known as Bech32 Wallet Generator in Nodejs \nThis code is a script for generating a Bitcoin address using the BIP39 and BIP32 libraries. It starts by importing the required modules such as coinkey, fs, crypto, cluster, blessed, bip39, tiny-secp256k1, bip32 and bitcoinjs-lib.\n\nRequirements\nNode.js\ncoinkey\nfs\ncrypto\ncluster\nblessed\nbip39\ntiny-secp256k1\nbip32\nbitcoinjs-lib\nUsage\nInstall the required dependencies by running npm install.\nRun the script using node app.js.\nThe script will generate a seed phrase and a Bitcoin address, which will be printed to the console.\nThe script generates a seed phrase using the bip39 library and converts it into a seed buffer. The seed buffer is then used to generate a root node using the bip32 library. The first account’s node is derived from the root node using the path \"m/44'/0'/0'\". The external chain node of this account is derived using the path \"0\". The first address from the external chain is derived and its public key is obtained. Finally, a P2WPKH (Pay-to-Witness-Public-Key-Hash) output script is generated using the bitcoin.payments.p2wpkh method and the Bitcoin address is printed to the console.\n\nMIT License\n\nCopyright (c) 2023 CorvusCodex\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorvusstorage%2Fsegwit-bitcoin-wallet-generator-in-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorvusstorage%2Fsegwit-bitcoin-wallet-generator-in-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorvusstorage%2Fsegwit-bitcoin-wallet-generator-in-nodejs/lists"}