This sample shows how to build an enclave application with EGo.
The sample can be built as follows:
ego-go build
ego sign helloworld
To run it inside the enclave:
ego run helloworld
To run it in simulation mode:
OE_SIMULATION=1 ego run helloworld
You should see an output similar to:
[erthost] loading enclave ...
[erthost] entering enclave ...
[ego] starting application ...
hello
world
world
hello
hello
world
world
hello
hello
world