Skip to main content

method_id

Function method_id 

Source
pub const fn method_id(name: &str) -> u64
Expand description

Derive a routing ID from the exact exported method name.

Uses FNV-1a-64 over ic-wire:method: followed by the name’s UTF-8 bytes, modulo 2^64. No case folding or Unicode normalization is performed. This is not authentication or a schema fingerprint. Callers must reject duplicate IDs; explicit IDs remain valid and need not use this derivation.