Utility functions for the CanDB Index Canister that also help reduce some boilerplate
public func callingCanisterOwnsPK(
caller : Principal,
canisterMap : CanisterMap.CanisterMap,
pk : Text
) : Bool
Authorization Helper function used for auto-scaling that determines if the calling canister has the same PK as the canister that is about to be spun up