Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
bluele authored and siburu committed Sep 20, 2024
1 parent 2f0dc81 commit 2a2eb21
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,30 @@ This repository contains multiple modules:

## Build enclave and run E2E test

### Prerequisites

You need to install the Intel SGX SDK for your environment:
```bash
$ curl -LO https://download.01.org/intel-sgx/sgx-linux/2.19/distro/ubuntu22.04-server/sgx_linux_x64_sdk_2.19.100.3.bin
$ chmod +x ./sgx_linux_x64_sdk_2.19.100.3.bin
$ echo -e 'no\n/opt' | ./sgx_linux_x64_sdk_2.19.100.3.bin
$ source /opt/sgxsdk/environment
```

### SGX HW mode(default)

```
$ make all yrly prepare-contracts build-images
$ make yrly prepare-contracts build-images
$ make e2e-test
```

### SGX SW mode
### SGX SW mode(for non-SGX supported environment)

This mode is for non-SGX supported environment. This doesn't require SGX hardware and driver, but the enclave is not secure.

```
$ export SGX_MODE=SW
$ make all yrly prepare-contracts build-images
$ make yrly prepare-contracts build-images
$ make e2e-test
```

Expand Down

0 comments on commit 2a2eb21

Please sign in to comment.