Skip to main content

is_contested_username

Function is_contested_username 

Source
pub fn is_contested_username(label: &str) -> bool
Expand description

Check if a username is contested (requires masternode voting)

A username is contested if its normalized label:

  • Is between 3 and 19 characters long (inclusive)
  • Contains only lowercase letters a-z, digits 0-1, and hyphens

§Arguments

  • label - The username label to check (e.g., “alice”)

§Returns

Returns true if the username would be contested, false otherwise