def hash
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/blake/blake3.bend as Blake3import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/blake/blake3/types.bend as T
import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as SC
268def hash(a: Array<U32>, +length: Nat) -> T.CV:
269 +cs = message_chunks(a,length)
270 root(tree(SC.length(T.Out,cs),cs))