Skip to main content

Crate ic_platform_types

Crate ic_platform_types 

Source
Expand description

Canonical owned IC Principal, Account and Subaccount identities.

Byte/text admission, ordering and Serde belong here. Self-authentication is opt-in and delegates SHA-224 to its upstream supplier. Consumers must select one Cargo source/version cohort when exchanging these public Rust types. Identity validity establishes neither authorization nor authenticated evidence.

Re-exports§

pub use account::Account;
pub use account::AccountError;
pub use account::DEFAULT_SUBACCOUNT;
pub use account::Subaccount;
pub use principal::Principal;
pub use principal::PrincipalError;

Modules§

account
Accounts combine a Principal owner with an optional 32-byte subaccount.
principal
Bounded Principal identities, canonical text, and Serde representations.