Expand description
This submodule manages the owner of a canister and provides functionality for authenticated/guarded canister methods.
Functions§
- get_
owner - Retrieves the owner of the canister as a string. Panics if the owner has not been set.
- init_
owner - Initializes the owner variable during the canister’s init hook. Sets the deployer of the canister as the owner.
- only_
owner - Ensures that the caller of a canister method is the owner. Panics if the caller is not the owner.