pub type ManagerAddCredentialResult = Result<u64, CredentialError>;