Skip to main content

Module dpns_usernames

Module dpns_usernames 

Source
Expand description

Transport-free DPNS username helpers.

The Sdk-bound DPNS surface (registration, availability checks, name resolution) lives in dash-sdk; these free functions are pure string validation/normalization shared with embedders.

Functions§

convert_to_homograph_safe_chars
Convert a string to homograph-safe characters by replacing ‘o’, ‘i’, and ‘l’ with ‘0’, ‘1’, and ‘1’ respectively to prevent homograph attacks
is_contested_username
Check if a username is contested (requires masternode voting)
is_valid_username
Check if a username is valid according to DPNS rules