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: ACK4e557fa4e6
Kixunil: ACK4e557fa4e6
Tree-SHA512: bbf19876553b7b27191610a68da60a7d1c5246646c0109dd9bc4909259244ca79f624e0c8a6fc205d93fcdacfd3a82201cda6cf09e0c233cceb10e25b3133871
This commit is contained in:
commit
87f4091a65
|
@ -24,9 +24,9 @@ checksum = "414dcefbc63d77c526a76b3afcf6fbb9b5e2791c19c3aa2297733208750c6e53"
|
|||
|
||||
[[package]]
|
||||
name = "bech32"
|
||||
version = "0.10.0-beta"
|
||||
version = "0.11.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "98f7eed2b2781a6f0b5c903471d48e15f56fb4e1165df8a9a2337fd1a59d45ea"
|
||||
checksum = "d965446196e3b7decd44aa7ee49e31d630118f90ef12f97900f262eb915c951d"
|
||||
|
||||
[[package]]
|
||||
name = "bincode"
|
||||
|
|
|
@ -24,9 +24,9 @@ checksum = "414dcefbc63d77c526a76b3afcf6fbb9b5e2791c19c3aa2297733208750c6e53"
|
|||
|
||||
[[package]]
|
||||
name = "bech32"
|
||||
version = "0.10.0-beta"
|
||||
version = "0.11.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "98f7eed2b2781a6f0b5c903471d48e15f56fb4e1165df8a9a2337fd1a59d45ea"
|
||||
checksum = "d965446196e3b7decd44aa7ee49e31d630118f90ef12f97900f262eb915c951d"
|
||||
|
||||
[[package]]
|
||||
name = "bincode"
|
||||
|
|
|
@ -29,7 +29,7 @@ rustdoc-args = ["--cfg", "docsrs"]
|
|||
|
||||
[dependencies]
|
||||
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"] }
|
||||
hex = { package = "hex-conservative", version = "0.1.1", default-features = false, features = ["alloc"] }
|
||||
hex_lit = "0.1.1"
|
||||
|
|
|
@ -170,9 +170,9 @@ impl fmt::Display for AddressInner {
|
|||
let program = program.program().as_ref();
|
||||
|
||||
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 {
|
||||
bech32::segwit::encode_lower_to_fmt_unchecked(fmt, &hrp, version, program)
|
||||
bech32::segwit::encode_lower_to_fmt_unchecked(fmt, hrp, version, program)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue