def state_bytes

bend-collections-laws-crypto@1.0.0.0 · spec/crypto/sha3.bend:100

import bend-collections-laws-crypto@1.0.0.0/spec/crypto/sha3.bend as Sha3
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/keccak/types.bend as T

100def state_bytes(ls: List<&2, T.Lane>) -> List<&2, U32>:
101  match ls:
102    case Nil{}:
103      Nil{}
104    case l <> rest:
105      List.append(&2, U32, lane_bytes(l), state_bytes(rest))

Uses (5)

Used by (1)