Skip to main content

canonicalize_e6

Function canonicalize_e6 

Source
pub fn canonicalize_e6<const N: usize>(
    operand: &KappaLabel<N>,
) -> Result<Vec<u8>, CompositionFailure>
Expand description

CS-E6 canonicalize discipline: the 2-class partition with 8:1 population ratio per ADR-059. Per wiki ADR-061 §(3) the framework names the algebraic structure (a 2-class partition with population ratio 8:1 per ADR-059); the realization commits the partition derived from first_raw_digest_byte mod 9.

The canonical form is [degree_class_tag] || operand.as_bytes() — a one-byte tag (0x05 for degree-5, 0x06 for degree-6) prepended to the operand’s full κ-label bytes. Total width = N + 1 per wiki ADR-061 §(2).