Skip to main content

discovery_uri

Function discovery_uri 

Source
pub fn discovery_uri(realm: [u8; 32], procedure: &str) -> String
Expand description

Matches macula_direct_dial’s discovery_uri/2: the DHT lookup/advertisement key input is hex(realm) + "/" + procedure, so the same procedure name under different realms doesn’t collide in the DHT. The advertiser and every resolver must derive this identically.