def read256_1
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
166def read256_1(bytes: List<&2, U32>, w0: U32) -> Read256:
167 match bytes:
168 case b0 <> b1 <> b2 <> b3 <> rest:
169 read256_2(rest, w0, C256.pack(b0, b1, b2, b3))
170 case _:
171 Short256{}