]> Untitled Git - bdk/commit
`get_checksum_bytes` now checks input data for checksum
author志宇 <hello@evanlinjin.me>
Thu, 29 Sep 2022 05:06:03 +0000 (13:06 +0800)
committer志宇 <hello@evanlinjin.me>
Thu, 29 Sep 2022 05:06:03 +0000 (13:06 +0800)
commitfd34956c2980295e1f0cc32340fb2b99a6b245ea
tree613c67131a58600bc0b8081a5555701e33158e21
parentaf0b3698c691cd08ece9ae201cc9699f0d57acc8
`get_checksum_bytes` now checks input data for checksum

If `exclude_hash` is set, we split the input data, and if a checksum
already existed within the original data, we check the calculated
checksum against the original checksum.

Additionally, the implementation of `IntoWalletDescriptor` for `&str`
has been refactored for clarity.
src/descriptor/checksum.rs
src/descriptor/mod.rs
src/wallet/mod.rs