{"id":20253234,"url":"https://github.com/rust-bitcoin/rust-bech32-bitcoin","last_synced_at":"2025-06-28T23:35:02.284Z","repository":{"id":21016724,"uuid":"90657894","full_name":"rust-bitcoin/rust-bech32-bitcoin","owner":"rust-bitcoin","description":"Encoding and decoding Segregated Witness addresses in Bech32 format","archived":false,"fork":false,"pushed_at":"2023-04-05T04:48:35.000Z","size":61,"stargazers_count":18,"open_issues_count":2,"forks_count":24,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T11:35:01.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/rust-bitcoin.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":"2017-05-08T18:05:01.000Z","updated_at":"2025-03-16T10:33:47.000Z","dependencies_parsed_at":"2024-06-20T23:23:58.507Z","dependency_job_id":"9d9dbc98-2a4a-4440-9caf-4beb47d9b062","html_url":"https://github.com/rust-bitcoin/rust-bech32-bitcoin","commit_stats":{"total_commits":55,"total_committers":13,"mean_commits":4.230769230769231,"dds":0.509090909090909,"last_synced_commit":"8e998485eb0b0582be4bc122e1a89c894b2035c7"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/rust-bitcoin/rust-bech32-bitcoin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bitcoin%2Frust-bech32-bitcoin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bitcoin%2Frust-bech32-bitcoin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bitcoin%2Frust-bech32-bitcoin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bitcoin%2Frust-bech32-bitcoin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-bitcoin","download_url":"https://codeload.github.com/rust-bitcoin/rust-bech32-bitcoin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-bitcoin%2Frust-bech32-bitcoin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262513627,"owners_count":23322661,"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":[],"created_at":"2024-11-14T10:22:32.996Z","updated_at":"2025-06-28T23:35:02.214Z","avatar_url":"https://github.com/rust-bitcoin.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitcoin Bech32\n[![Docs.rs badge](https://docs.rs/bitcoin-bech32/badge.svg)](https://docs.rs/bitcoin-bech32/)\n[![Continuous Integration](https://github.com/rust-bitcoin/rust-bech32-bitcoin/workflows/Continuous%20Integration/badge.svg)](https://github.com/rust-bitcoin/rust-bech32-bitcoin/actions?query=workflow%3A%22Continuous+Integration%22)\n\nEncodes and decodes Bitcoin Segregated Witness addresses in the Bech32 format described in [BIP-0173](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki) and Bech32m format described in [BIP-0350](https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki).\n\n## Example\n\n```rust\nuse bitcoin_bech32::{WitnessProgram, u5};\nuse bitcoin_bech32::constants::Network;\n\nlet witness_program = WitnessProgram::new(\n    u5::try_from_u8(0).unwrap(),\n    vec![\n        0x00, 0x00, 0x00, 0xc4, 0xa5, 0xca, 0xd4, 0x62,\n        0x21, 0xb2, 0xa1, 0x87, 0x90, 0x5e, 0x52, 0x66,\n        0x36, 0x2b, 0x99, 0xd5, 0xe9, 0x1c, 0x6c, 0xe2,\n        0x4d, 0x16, 0x5d, 0xab, 0x93, 0xe8, 0x64, 0x33],\n    Network::Testnet,\n).unwrap();\n\nlet address = witness_program.to_address();\nassert_eq!(address,\n           \"tb1qqqqqp399et2xygdj5xreqhjjvcmzhxw4aywxecjdzew6hylgvsesrxh6hy\".to_string());\n\nlet decoded = WitnessProgram::from_address(\u0026address).unwrap();\nassert_eq!(decoded, witness_program);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-bitcoin%2Frust-bech32-bitcoin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-bitcoin%2Frust-bech32-bitcoin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-bitcoin%2Frust-bech32-bitcoin/lists"}