def read256_1

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

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

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{}

Uses (5)

Used by (1)