Skip to content
wanzhiguo edited this page Jun 16, 2018 · 10 revisions

Use the prepared Docker image:

Ubuntu

  1. Install docker

sudo apt install docker

  1. Pull image for this workshop from dockerhub

docker pull wanzhiguo/ubuntu_snark:suss

(Permission denied: sudo usermod -a -G docker $USER)

  1. Or install all dependencies by yourself (without downloading the 2GB image):
  • sudo apt install python python3 python-pip python3-pip
  • Compile and install pbc (Pairing-based Cryptography source code)
  • pip3 install charm-crypto
  • Clone experiment repositories:
  • git clone http://github.com/wanzhiguo/mininero
  • git clone http://github.com/wanzhiguo/lightning_circuit
  • git clone http://github.com/wanzhiguo/zksnark-toy

Windows

  1. Install Docker CE for Windows (Require Windows 10 Pro)
  • Or install Virtual Box (and an Ubuntu ISO)

  • Or install putty and connect to a Ubuntu cloud server (DigitalOcean.com)

  1. Pull image for this workshop from dockerhub

docker pull wanzhiguo/ubuntu_snark:suss

Mac

  1. Install Docker CE from docker.com
  2. Pull image from dockerhub:

docker pull wanzhiguo/ubuntu_snark:suss

Run docker image:

  1. Check the image: docker images
  2. Run the image in a container with docker: docker run -it wanzhiguo/ubuntu_snark:suss /bin/bash
  3. Exit container without stopping: ctrl+p then ctrl+q. You can use docker ps check the running container.

Enter container: docker exec -it [Container ID|Name] bash

Clone this wiki locally