aztec-nr - compressed_string
Crate compressed_string
Structs
- Convenience struct for capturing a string of type
str<M>, and converting it into other basic Noir types. Notably: converts to[Field; N]or[u8; M]. This particular conversion process tightly-packs the M bytes of the inputstrinto 31-byte chunks, with each chunk being put into a field. Each field can store 31 characters, so N should be M/31 rounded up. Can be used for longer strings that don't fit into a single field.