{"id":18609563,"url":"https://github.com/rggh/bitcoin_hashing_wasm","last_synced_at":"2026-04-12T12:36:18.731Z","repository":{"id":261084681,"uuid":"883212710","full_name":"RGGH/bitcoin_hashing_wasm","owner":"RGGH","description":"Base58Check Legacy Bitcoin Address from PK","archived":false,"fork":false,"pushed_at":"2024-11-04T17:09:01.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T03:14:49.667Z","etag":null,"topics":["bitcoin","ripemd","rust","sha256","wasm"],"latest_commit_sha":null,"homepage":"https://rggh.github.io/bitcoin_hashing_wasm/web/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RGGH.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-11-04T15:13:35.000Z","updated_at":"2024-11-04T17:09:05.000Z","dependencies_parsed_at":"2024-11-04T16:45:32.231Z","dependency_job_id":null,"html_url":"https://github.com/RGGH/bitcoin_hashing_wasm","commit_stats":null,"previous_names":["rggh/bitcoin_hashing_wasm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RGGH%2Fbitcoin_hashing_wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RGGH%2Fbitcoin_hashing_wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RGGH%2Fbitcoin_hashing_wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RGGH%2Fbitcoin_hashing_wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RGGH","download_url":"https://codeload.github.com/RGGH/bitcoin_hashing_wasm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239400596,"owners_count":19632049,"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","ripemd","rust","sha256","wasm"],"created_at":"2024-11-07T03:06:29.386Z","updated_at":"2026-04-12T12:36:18.639Z","avatar_url":"https://github.com/RGGH.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Rust](https://github.com/RGGH/bitcoin_hashing_wasm/actions/workflows/rust.yml/badge.svg)](https://github.com/RGGH/bitcoin_hashing_wasm/actions/workflows/rust.yml)\n# ⚡ Base58 address from Public Key 🔑\n---\n### example key to enter: \n\n```0250863ad64a87ae8a2fe83c1af1a8403cb53f53e486d8511dad8a04887e5b2352```\n\nThis will give you :\n```1PMycacnJaSqwwJqjawXBErnLsZ7RkXUAs```\n\n[Visit the Bitcoin Wiki](https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses)\n\nThis is a demo, it uses Legacy Bitcoin addresses, which start with a 1 for P2PKH (Pay-to-Public-Key-Hash) addresses.\n\n    Legacy Addresses (Base58Check):\n        Format: Starts with 1.\n        Example: 1PMycacnJaSqwwJqjawXBErnLsZ7RkXUAs.\n        Encoding: Base58Check encoding.\n        Type: P2PKH (Pay-to-Public-Key-Hash).\n\nThis code generates a legacy Bitcoin address from a given public key in hexadecimal format. It performs the following steps:\n\n1. **Hex to Bytes**: Converts the input hexadecimal string into a byte array.\n2. **SHA-256 Hashing**: Computes the SHA-256 hash of the public key bytes.\n3. **RIPEMD-160 Hashing**: Hashes the SHA-256 result using the RIPEMD-160 algorithm.\n4. **Version Byte**: Prepends a version byte (0x00) to the RIPEMD-160 hash, indicating it's for the main Bitcoin network.\n5. **Checksum Calculation**: Computes the SHA-256 hash of the versioned hash, then performs SHA-256 again to derive a checksum.\n6. **Checksum Append**: Appends the first four bytes of the checksum to the versioned hash.\n7. **Base58 Encoding**: Converts the final byte array into a Base58 string, resulting in the Bitcoin address.\n\n   [try it out](https://rggh.github.io/bitcoin_hashing_wasm/web/)\n\n   ![image](https://github.com/user-attachments/assets/560aed1d-fd47-4996-b579-e6f7b8a773c0)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frggh%2Fbitcoin_hashing_wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frggh%2Fbitcoin_hashing_wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frggh%2Fbitcoin_hashing_wasm/lists"}