Confidential computing is difficult and Microsoft, together with partners, has embarked on simplifying confidential computing in IoT using enclaves on Open Enclave SDK.
From the description:
The enormity of data and the evolution of intelligence in IoT is inspiring new computational models that distribute compute from cloud to edge and synthesize data to improve business outcomes. The result is rapid growth in patterns such as deploying proprietary algorithms and data including AI, generating valuable insights including monetization avenues in, and creating direct actions including those controlling downstream critical infrastructure from IoT devices. But such patterns are potentially susceptible to exposure of algorithms, data, valuable insights, and tampering of actions unless the computational environment is protected by confidential computing.