def read256_0

bend-collections@1.0.0.0 · src/crypto/hash.bend:173

import bend-collections@1.0.0.0/src/crypto/hash.bend as Hash
import Base
import bend-collections@1.0.0.0/src/crypto/sha/core.bend as C256

173def read256_0(bytes: List<&2, U32>) -> Read256:
174  match bytes:
175    case b0 <> b1 <> b2 <> b3 <> rest:
176      read256_1(rest, C256.pack(b0, b1, b2, b3))
177    case _:
178      Short256{}

Uses (5)

Used by (2)