Skip to main content

Module bounds

Module bounds 

Source
Expand description

Ring-element grammar constants (UOR-Framework Amendment 43 §2).

The HostBounds capacity profile is the shared crate::bounds::AddrBounds; only the format-specific grammar constants live here.

Constants§

MAX_WITT_LEVEL
Maximum Witt level admissible per Amendment 43 §2’s tower (0..=3, inclusive). The Witt-level byte at canonical-bytes offset 0 must satisfy witt_level ≤ MAX_WITT_LEVEL.
RING_VALUE_MAX_BYTES
Maximum total byte width of a RingElement’s structurally-tagged serialization (Witt-level byte + up to four little-endian coefficient bytes — at most 5; the generous ceiling guards the fixed stack buffer).