Skip to main content

Preliminaries

In this tutorial, you will learn how to perform privacy preserving addition inside an enclave. This includes how to

  • create project components
  • build an enclave image with the server
  • deploy the image on the Marlin network
  • verify the integrity of the enclave and interact with the server inside it

This tutorial assumes Ubuntu 20.04+. If you have an older Ubuntu or a different distro, commands might need modification before use.

Install Docker

The tutorial uses the nitro-cli Docker image as a development environment. If not installed already, you can install it by running

sudo apt install docker.io

Install Rust

This tutorial involves building components in Rust. If not installed already, you can install it by running

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
sudo apt-get install clang pkg-config libssl-dev make musl-tools

Install metamask wallet

This tutorial uses Metamask to make transactions on the blockchain. If not installed, you can install it using the Extension/Add-On store for your browser.