Our paper Trusted Computing meets Blockchain: Rollback Attacks and a Solution for Hyperledger Fabric describes how to run smart contracts on Hyperledger Fabric within an Intel SGX trusted execution environment. It will appear at IEEE SRDS 2019 in Lyon this October. You’ll find the code on github in a Hyperledger Lab.