Skip to content

Commit

Permalink
Merge pull request #324 from 0xcregis/323-fix-use-bech32m-for-pay-to-…
Browse files Browse the repository at this point in the history
…taproot

fix: use bech32m for pay-to-taproot address
  • Loading branch information
loki-cmu authored Feb 26, 2025
2 parents e94d767 + 13ac7da commit 5f0ca37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/anychain-bitcoin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "anychain-bitcoin"
description = "A Rust library for Bitcoin-focused cryptocurrency wallets, enabling seamless transactions on the Bitcoin blockchain"
version = "0.1.13"
version = "0.1.14"
keywords = ["bitcoin", "blockchain", "wallet", "transactions"]
categories = ["cryptography::cryptocurrencies"]

Expand Down
2 changes: 1 addition & 1 deletion crates/anychain-bitcoin/src/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ impl<N: BitcoinNetwork> BitcoinAddress<N> {
data.extend_from_slice(&hash.to_vec().to_base32());

let prefix = N::to_address_prefix(BitcoinFormat::Bech32)?.prefix();
let bech32 = bech32::encode(&prefix, data, Variant::Bech32)?;
let bech32 = bech32::encode(&prefix, data, Variant::Bech32m)?;

Ok(Self {
address: bech32,
Expand Down

0 comments on commit 5f0ca37

Please sign in to comment.