Note: Git clone this repertory in your '$HOME'
cd $HOME
git clone https://github.com/Agzs/zkp-sc.git
cd $HOME/zkp-sc
git clone https://github.com/scipr-lab/libsnark.git
cd libsnark
git submodule init && git submodule update
export LIBSNARK_SOURCE_PATH=$HOME/zkp-sc/libsnark
cd $HOME/zkp-sc
git clone https://github.com/JacobEberhardt/ZoKrates.git
sudo apt-get update
sudo apt-get install -y \
build-essential \
cmake \
curl \
libboost-all-dev \
libgmp3-dev \
libprocps4-dev \
libssl-dev \
pkg-config \
python-markdown \
git
Note: Ubuntu 16.04 is libprocps4-dev, and Ubuntu 14.04 is libprocps3-dev
curl https://sh.rustup.rs -sSf | \
sh -s -- --default-toolchain nightly-2018-06-04 -y
source $HOME/.cargo/env
cd $HOME/zkp-sc/ZoKrates
cargo build --release
git clone https://github.com/JacobEberhardt/ZoKrates
cd ZoKrates
cp -f Dockerfile ZoKrates/
docker build -t zokrates .
docker run -ti zokrates /bin/bash
cd ZoKrates/target/release
More detail, see README.md in 'ZoKrates'