Skip to main content

Module principal

Module principal 

Source
Expand description

Platform-owned principal representation and non-cryptographic conversions.

Adapted from ic_principal 0.1.5 under Apache-2.0; see NOTICE.md. No Candid marker handling or generic range stepping is implemented. Required Candid DTOs must use ExternalPrincipal, converting at the boundary:

ⓘ
ic_platform::candid::contract::encode_one(ic_platform::Principal::anonymous()).unwrap();

Structs§

ExternalPrincipal
Original registry identity required by external IC clients and DTOs. Convert explicitly at the boundary; owned application payloads use Principal. Generic ID on Internet Computer.
Principal
Generic ID on Internet Computer.

Enums§

ExternalPrincipalError
Original parse errors for the explicitly external principal identity. An error happened while encoding, decoding or serializing a Principal.
PrincipalError
An error happened while encoding, decoding or serializing a Principal.