# Enclave: 1 ETH (WIP)

## Create VM

Create an SGX-enabled VM on Azure.

```
ResourceType	 Locations    Name	            Zones	Restrictions
virtualMachines  japaneast    Standard_DC1ds_v3       1          None
```

### Azure resources with SGX enabled

Open up your Azure console.

<figure><img src="/files/8RKdUw3AT2Tr4ZLTU1zw" alt=""><figcaption></figcaption></figure>

Print out all resources with SGX enabled.

```
az vm list-skus --size Standard_DC --all --output table

```

#### List updated as at 19/08/2024 [here](https://docs.google.com/spreadsheets/d/1CyvMuyvTzpgCJdc8Tu5dA98l-z00GPQ78mC3FjMJ_tQ/edit?usp=sharing).

## Checks

### Update packages

```
sudo apt update
sudo apt install cpuid
```

### Dependencies

Rust

```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```

Cargo

```
sudo apt install cargo
```

OpenSSL & pkg-config

```
sudo apt-get install libssl-dev pkg-config
```

#### **Set the `PKG_CONFIG_PATH` Environment Variable**

```
export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig:$PKG_CONFIG_PATH
```

## Non scp registration file transfer

&#x20;

### Method 1: Manual copy-paste

Print out the contents of the `registration_docker_001.json` file.

```
cd
cat ~/coral/output/registration_docker_001.json
```

Copy the entire output starting from the opening curly brackets `{` to the closing curly brackets `}` and paste it onto a text editor / notepad on your laptop.

**Example:**

<figure><img src="/files/O752w37Te98TKVJiz5CG" alt=""><figcaption></figcaption></figure>

Save this plain text file as `registration_docker_001.json`.&#x20;

{% hint style="info" %}
On Windows notepad, select `"All file types"` before saving.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dvt-homestaker.stakesaurus.com/bonded-validators-setup/puffer/enclave-1-eth-wip.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
