Skip to main content

compute_routing_id

Function compute_routing_id 

Source
pub fn compute_routing_id(context_id: &str) -> [u8; 32]
Expand description

Computes the 32-byte routing ID for a broadcast context.

routing_id = SHA-256(context_id) where context_id is the raw bytes of the lowercase hex-encoded context ID string, per spec section 5.14.6. Normalizes to lowercase before hashing so that mixed-case IDs produce the same routing ID.