Skip to content

Commit 179cfef

Browse files
committed
Remove deprecated get_checksum{,_bytes} routines
There are deprecated since 0.24.0, i.e. they can be removed now.
1 parent 7eff024 commit 179cfef

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

crates/bdk/src/descriptor/checksum.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -107,29 +107,8 @@ pub fn calc_checksum(desc: &str) -> Result<String, DescriptorError> {
107107
.map(|b| unsafe { String::from_utf8_unchecked(b.to_vec()) })
108108
}
109109

110-
// TODO in release 0.25.0, remove get_checksum_bytes and get_checksum
111110
// TODO in release 0.25.0, consolidate calc_checksum_bytes_internal into calc_checksum_bytes
112111

113-
/// Compute the checksum bytes of a descriptor
114-
#[deprecated(
115-
since = "0.24.0",
116-
note = "Use new `calc_checksum_bytes` function which excludes any existing checksum in the descriptor string before calculating the checksum hash bytes. See https://github.com/bitcoindevkit/bdk/pull/765."
117-
)]
118-
pub fn get_checksum_bytes(desc: &str) -> Result<[u8; 8], DescriptorError> {
119-
calc_checksum_bytes_internal(desc, false)
120-
}
121-
122-
/// Compute the checksum of a descriptor
123-
#[deprecated(
124-
since = "0.24.0",
125-
note = "Use new `calc_checksum` function which excludes any existing checksum in the descriptor string before calculating the checksum hash. See https://github.com/bitcoindevkit/bdk/pull/765."
126-
)]
127-
pub fn get_checksum(desc: &str) -> Result<String, DescriptorError> {
128-
// unsafe is okay here as the checksum only uses bytes in `CHECKSUM_CHARSET`
129-
calc_checksum_bytes_internal(desc, false)
130-
.map(|b| unsafe { String::from_utf8_unchecked(b.to_vec()) })
131-
}
132-
133112
#[cfg(test)]
134113
mod test {
135114
use super::*;

0 commit comments

Comments
 (0)