junobuild_shared::utils

Function principal_anonymous

Source
pub fn principal_anonymous(p: Principal) -> bool
Expand description

Checks if a principal is the anonymous principal.

§Arguments

  • p - The principal to check.

§Returns

True if the principal is anonymous; false otherwise.