Wal.frame.digest.pair: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/Wal.bend as Wal Lines 228-237 of mylsm-lsm-store@0.6.0.1/src/Wal.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/Wal.bend&start_line=228&end_line=237 import Base import mylsm-lsm-store@0.6.0.1/src/hub_sha/sha256.bend as SHA import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes def frame.digest.pair( +count: U32, +frame_len: U32, output_payload: Bytes.Bytes, hash_payload: Bytes.Bytes ) -> Result<&1, &1, Error, Bytes.Bytes>: digest = SHA.sha256_packed_bytes(Bytes.concat([u32_bytes(frame_len), u32_bytes(count), hash_payload])) Done{Bytes.concat([u32_bytes(frame_len), u32_bytes(count), output_payload, digest])} Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=concat https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/Wal.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/Wal.bend&name=u32_bytes https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/hub_sha/sha256.bend&name=sha256_packed_bytes