def read256_3
import bend-collections@1.0.0.0/src/crypto/hash.bend as Hashimport Base
import bend-collections@1.0.0.0/src/crypto/sha/core.bend as C256
152def read256_3(bytes: List<&2, U32>, w0: U32, w1: U32, w2: U32) -> Read256:
153 match bytes:
154 case b0 <> b1 <> b2 <> b3 <> rest:
155 read256_4(rest, w0, w1, w2, C256.pack(b0, b1, b2, b3))
156 case _:
157 Short256{}