Module ic_types::principal[][src]

Expand description

Principal related types and traits.

Structs

Principal

A principal describes the security context of an identity, namely any identity that can be authenticated along with a specific role. In the case of the Internet Computer this maps currently to the identities that can be authenticated by a canister. For example, a canister ID is a Principal. So is a user.

Enums

PrincipalError

An error happened while encoding, decoding or serializing a principal.