def read256_5

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

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

138def read256_5(bytes: List<&2, U32>, w0: U32, w1: U32, w2: U32, w3: U32, w4: U32) -> Read256:
139  match bytes:
140    case b0 <> b1 <> b2 <> b3 <> rest:
141      read256_6(rest, w0, w1, w2, w3, w4, C256.pack(b0, b1, b2, b3))
142    case _:
143      Short256{}

Uses (5)

Used by (1)