uor-addr 0.2.0

UOR-ADDR — the typed reference vocabulary for content-addressing across recursively-grammared formats. Standard-library Layer-3 Prism realization of the UOR Foundation; ships the common architectural surface plus the JSON realization under JCS-RFC8785 + NFC + SHA-256.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! 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.

/// 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`.
pub const MAX_WITT_LEVEL: u8 = 3;

/// 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).
pub const RING_VALUE_MAX_BYTES: usize = 3968;