def read256_4

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

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

145def read256_4(bytes: List<&2, U32>, w0: U32, w1: U32, w2: U32, w3: U32) -> Read256:
146  match bytes:
147    case b0 <> b1 <> b2 <> b3 <> rest:
148      read256_5(rest, w0, w1, w2, w3, C256.pack(b0, b1, b2, b3))
149    case _:
150      Short256{}

Uses (5)

Used by (1)