def block.authenticated

mylsm-lsm-store@0.6.0.1 · src/transfer/Backup.bend:206

import mylsm-lsm-store@0.6.0.1/src/transfer/Backup.bend as Backup
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

206def block.authenticated(
207  pair: Bytes.Bytes & Bytes.Bytes
208) -> Bytes.Bytes:
209  match pair:
210    case (output, hash_input):
211      Bytes.concat([output, SHA.sha256_packed_bytes(hash_input)])

Uses (6)

Used by (1)