Data ergonomics precompiles help contracts work with structured payloads and repeated address data. They are not core consensus concepts, but they can reduce glue code and make cross-domain applications easier to build.

Surfaces

When to use

  • Use JSON parsing when structured payloads are part of a protocol boundary and native parsing is safer than brittle byte slicing.
  • Use address conversion when a contract must translate between EVM and Cosmos account representations.
  • Use address compression when a protocol passes the same addresses repeatedly: register an address once, after which compress encodes it as its table index and decompress reads it back. The interface is AddressTableI.

Design notes