Skip to content

Commit 5f0ca37

Browse files
authored
Merge pull request #324 from 0xcregis/323-fix-use-bech32m-for-pay-to-taproot
fix: use bech32m for pay-to-taproot address
2 parents e94d767 + 13ac7da commit 5f0ca37

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: crates/anychain-bitcoin/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "anychain-bitcoin"
33
description = "A Rust library for Bitcoin-focused cryptocurrency wallets, enabling seamless transactions on the Bitcoin blockchain"
4-
version = "0.1.13"
4+
version = "0.1.14"
55
keywords = ["bitcoin", "blockchain", "wallet", "transactions"]
66
categories = ["cryptography::cryptocurrencies"]
77

Diff for: crates/anychain-bitcoin/src/address.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ impl<N: BitcoinNetwork> BitcoinAddress<N> {
268268
data.extend_from_slice(&hash.to_vec().to_base32());
269269

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

273273
Ok(Self {
274274
address: bech32,

0 commit comments

Comments
 (0)