def root
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
261# The root node is compressed with ROOT added to its flags; the 32-byte digest
262# is the resulting chaining value, words in little-endian order. A single
263# chunk is itself the root.
264def root(o: T.Out) -> T.CV:
265 match o:
266 case T.Out{c,b,t,len,flags}: compress(c,b,t,len,U32.or(flags,root_flag()))