/// Returns the controller of the canister as a blob.
Returns the controller of the canister as a blob.
Returns the controller of the canister as a blob .
pub fn controller() -> PrincipalId {
    let len: u32 = unsafe { ic0::controller_size() };
    let mut bytes = vec![0; len as usize];
    unsafe {
        ic0::controller_copy(bytes.as_mut_ptr() as u32, 0, len);
    }
    PrincipalId::try_from(bytes.as_slice()).unwrap()
}
pub fn controller ( ) -> PrincipalId { let len : u32 = unsafe { ic0 :: controller_size ( ) } ; let mut bytes = vec ! [ 0 len as usize ] ; unsafe { ic0 :: controller_copy ( bytes . as_mut_ptr ( ) as u32 , 0 , len ) ; } PrincipalId :: try_from ( bytes . as_slice ( ) ) . unwrap ( ) }
Returns the controller of the canister as a blob.
Returns the controller of the canister as a blob .