]> Untitled Git - bdk/commit
Introduce `get_checksum_bytes` method and improvements
author志宇 <hello@evanlinjin.me>
Sat, 16 Jul 2022 12:01:54 +0000 (20:01 +0800)
committer志宇 <hello@evanlinjin.me>
Tue, 19 Jul 2022 14:02:49 +0000 (22:02 +0800)
commit6db5b4a094263a07eeb82ba92b47754d25a8d0d3
treec79691bff98b859d6674c93c1770aa6171a8bf02
parent9165faef95faa5cae731d1ad028d21e658a15263
Introduce `get_checksum_bytes` method and improvements

`get_checksum_bytes` returns a descriptor checksum as `[u8; 8]` instead
of `String`, potentially improving performance and memory usage.

In addition to this, since descriptors only use charaters that fit
within a UTF-8 8-bit code unit, there is no need to use the `char` type
(which is 4 bytes). This can also potentially bring in some performance
and memory-usage benefits.
CHANGELOG.md
src/descriptor/checksum.rs
src/descriptor/error.rs