# Deploying the WORM in a TEE

First build the enclave using [nix](https://github.com/DeterminateSystems/nix-installer):

```
git clone https://github.com/BrainsOnChain/DeepWorm
cd DeepWorm/worm
nix build -v
```

The above creates a directory called `result`.

```
$ ls result/
image.eif  log.txt  pcr.json
```

Host image.eif at a publicly follow the steps [here](http://docs.marlin.org/user-guides/oyster/instances/quickstart/deploy) to deploy the enclave image on a Marlin node with the following parameters:

Instance: c6a.xlarge\
Architecture: amd64\
Region: Any\
Bandwidth: 10 KB/s\
vCPU: Default\
Memory: Default

The `pcr.json` file contains the enclave PCRs which can be used to verify against TEE attestations.

<figure><img src="https://2760324793-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8jfg5Pl7s0mhhQHJVb2u%2Fuploads%2FEGtKxi8sNGAtNuCzxoHC%2Fworm-oyster.png?alt=media&#x26;token=312d6947-4383-401e-bf36-6838f7c6daa4" alt=""><figcaption><p>Deploying the EIF on hub.marlin.org</p></figcaption></figure>
