verity_ic

Module owner

source
Expand description

This submodule manages the owner of a canister and provides functionality for authenticated/guarded canister methods.

Functions§

  • Retrieves the owner of the canister as a string. Panics if the owner has not been set.
  • Initializes the owner variable during the canister’s init hook. Sets the deployer of the canister as the owner.
  • Ensures that the caller of a canister method is the owner. Panics if the caller is not the owner.