Skip to main content

Step 1: Create project components

Step 1.1: Set up repository

Clone the privacy-preserving-addition repository and navigate to it:

git clone https://github.com/marlinprotocol/privacy-preserving-addition.git && cd privacy-preserving-addition

Step 1.2: Build the components

Build all the components:

rustup target add `uname -m`-unknown-linux-musl
cargo build --release --target `uname -m`-unknown-linux-musl
note

uname -m identifies the CPU architecture (x86_64 or aarch64) of the machine building the application. These commands build the application for the same CPU architecture as the build machine.

Step 1.3: Generate keys for the loader and requester

Generate keys:

./target/`uname -m`-unknown-linux-musl/release/keygen --secret loader.sec --public loader.pub
./target/`uname -m`-unknown-linux-musl/release/keygen --secret requester.sec --public requester.pub