def read256_7

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

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

124def read256_7(bytes: List<&2, U32>, w0: U32, w1: U32, w2: U32, w3: U32, w4: U32, w5: U32, w6: U32) -> Read256:
125  match bytes:
126    case b0 <> b1 <> b2 <> b3 <> rest:
127      read256_8(rest, w0, w1, w2, w3, w4, w5, w6, C256.pack(b0, b1, b2, b3))
128    case _:
129      Short256{}

Uses (5)

Used by (1)