macOS Installation

OZKi is also supported on the macOS.

Install the Rust compiler

$ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
$ source ~/.cargo/env

During the rust installation, you will be prompted with installation options (1, 2, or 3). Simply hit the enter key (which defaults to 1) to proceed.

After it is completed, type "rustc --version" to confirm the rust compiler is installed correctly.

Install Nodejs/npm and the Typescript compiler

Go to the nodejs site and click the "macOS Installer" icon. Then install Typescript compiler as shown below.

$ npm install -g -y typescript

Type "npm --version", "node --version", "tsc --version" to confirm the installation has completed.

Install Circom and Snarkjs

$ git clone https://github.com/iden3/circom.git
$ cd circom
$ cargo build --release
$ cargo install --path circom
$ cd ..
$ npm install -g -y snarkjs

Type "circom --version" and "snarkjs" to confirm the circom and snarkjs have been successfully installed.

Install MongoDB

Follow this instructions to install MongoDB Community Edition on macOS.

To test a connection to the database, run "mongosh", and you should see the "test> " prompt.

Last updated