For the complete documentation index, see llms.txt.
aztec-nr - compressed_string

Crate compressed_string

Efficient string storage.

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 input str into 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.