This application is a minimum example for running secured application with Intel SGX enclave.
To install and setup Intel SGX drivers and SDK, follow the steps described in Intel SGX for Linux repository.
Build and run this application as follows.
# clone this repo
$ git clone https://github.com/tsmatz/intel-sgx-enclave-ubuntu-tutorial
$ cd intel-sgx-enclave-ubuntu-tutorial
# build application (simulator mode)
$ make SGX_MODE=SIM INCLUDE_SECP256K1_ZKP=1
# run application
$ ./app
After the initial build, the main project can be built without INCLUDE_SECP256K1_ZKP=1
.
$ make SGX_MODE=SIM
To clean the project (INCLUDE_SECP256K1_ZKP=1
can also be ommited so only the main project is cleaned).
$ make clean INCLUDE_SECP256K1_ZKP=1