TEE-based off-chain smart contract services in blockchain