Skip to main content

namehash

Function namehash 

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

ENS-style namehash: namehash("mytestapp.dot").

Splits by ., reverses labels, and iteratively hashes to produce a 32-byte node identifier compatible with the ENS/DOTNS registry.