def serialize
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha.bend as Chachaimport Base
89def serialize(ws: List<&2, U32>) -> List<&2, U32>:
90 match ws:
91 case Nil{}: Nil{}
92 case w <> rest: List.append(&2, U32, octets(w), serialize(rest))
Uses (4)
Used by (7)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha:block_body
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/chacha:hchacha_body
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/core:block_correct
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/core:bytes_correct
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/chacha/core:hbytes_correct
- …