> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/mainnet/llms.txt

# Crate compressed_string

Module: `compressed_string`

Efficient string storage.

## Structs

- [CompressedString](/aztec-nr-api/mainnet/compressed_string/struct.CompressedString.md): 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.
- [FieldCompressedString](/aztec-nr-api/mainnet/compressed_string/struct.FieldCompressedString.md)
