junobuild_shared::utils

Function principal_not_anonymous

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

Checks if a principal is not the anonymous principal.

§Arguments

  • p - The principal to check.

§Returns

True if the principal is not anonymous; false otherwise.