Merge rust-bitcoin/rust-bitcoin#2506: Update bech32 dependency

4e557fa4e6 Update bech32 dependency (Tobin C. Harding)

Pull request description:

  Update `bech32` to the newly released version `0.11.0`.

ACKs for top commit:
  apoelstra:
    ACK 4e557fa4e6
  Kixunil:
    ACK 4e557fa4e6

Tree-SHA512: bbf19876553b7b27191610a68da60a7d1c5246646c0109dd9bc4909259244ca79f624e0c8a6fc205d93fcdacfd3a82201cda6cf09e0c233cceb10e25b3133871
This commit is contained in:
Andrew Poelstra 2024-02-26 22:47:59 +00:00
commit 87f4091a65
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
4 changed files with 7 additions and 7 deletions

View File

@ -24,9 +24,9 @@ checksum = "414dcefbc63d77c526a76b3afcf6fbb9b5e2791c19c3aa2297733208750c6e53"
[[package]] [[package]]
name = "bech32" name = "bech32"
version = "0.10.0-beta" version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "98f7eed2b2781a6f0b5c903471d48e15f56fb4e1165df8a9a2337fd1a59d45ea" checksum = "d965446196e3b7decd44aa7ee49e31d630118f90ef12f97900f262eb915c951d"
[[package]] [[package]]
name = "bincode" name = "bincode"

View File

@ -24,9 +24,9 @@ checksum = "414dcefbc63d77c526a76b3afcf6fbb9b5e2791c19c3aa2297733208750c6e53"
[[package]] [[package]]
name = "bech32" name = "bech32"
version = "0.10.0-beta" version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "98f7eed2b2781a6f0b5c903471d48e15f56fb4e1165df8a9a2337fd1a59d45ea" checksum = "d965446196e3b7decd44aa7ee49e31d630118f90ef12f97900f262eb915c951d"
[[package]] [[package]]
name = "bincode" name = "bincode"

View File

@ -29,7 +29,7 @@ rustdoc-args = ["--cfg", "docsrs"]
[dependencies] [dependencies]
base58 = { package = "base58check", version = "0.1.0", default-features = false } base58 = { package = "base58check", version = "0.1.0", default-features = false }
bech32 = { version = "0.10.0-beta", default-features = false, features = ["alloc"] } bech32 = { version = "0.11.0", default-features = false, features = ["alloc"] }
hashes = { package = "bitcoin_hashes", version = "0.13.0", default-features = false, features = ["alloc", "io"] } hashes = { package = "bitcoin_hashes", version = "0.13.0", default-features = false, features = ["alloc", "io"] }
hex = { package = "hex-conservative", version = "0.1.1", default-features = false, features = ["alloc"] } hex = { package = "hex-conservative", version = "0.1.1", default-features = false, features = ["alloc"] }
hex_lit = "0.1.1" hex_lit = "0.1.1"

View File

@ -170,9 +170,9 @@ impl fmt::Display for AddressInner {
let program = program.program().as_ref(); let program = program.program().as_ref();
if fmt.alternate() { if fmt.alternate() {
bech32::segwit::encode_upper_to_fmt_unchecked(fmt, &hrp, version, program) bech32::segwit::encode_upper_to_fmt_unchecked(fmt, hrp, version, program)
} else { } else {
bech32::segwit::encode_lower_to_fmt_unchecked(fmt, &hrp, version, program) bech32::segwit::encode_lower_to_fmt_unchecked(fmt, hrp, version, program)
} }
} }
} }