AES256GCM.fixed_bytes: def of qasim-bend-kit@0.1.0.2 Import: import qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend as AES256GCM Lines 232-241 of qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend: https://jend.leeeet.dev/read.txt?path=qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend&start_line=232&end_line=241 import Base # Serialize validated fixed-size fields through a fixed-size byte view. This # makes the wire length structural even when the constructor certificate is # erased from runtime storage. def fixed_bytes(n: Nat, bytes: List<&2, U32>) -> List<&2, U32>: match n: case 0n: Nil{} case 1n+p: match bytes: case Nil{}: 0 <> fixed_bytes(p, Nil{}) case byte <> tail: byte <> fixed_bytes(p, tail) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32