Module owner

Source
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.