Skip to content

Latest commit

 

History

History
103 lines (63 loc) · 2.45 KB

INSTALL.markdown

File metadata and controls

103 lines (63 loc) · 2.45 KB

Building and Installing PSC

A PSC network consists of a Tally Server (TS), at least two Computation Parties (CPs) and one or more Data Parties (DPs).

Install PSC

Install virtual environment

git clone https://github.com/ekalinin/envirius.git
cd envirius
make install

Add following to your ~/.bashrc:

[ -f "$HOME/.envirius/nv" ] && . ~/.envirius/nv

Restart your terminal.

Check available versions of go

nv ls-versions --go-prebuilt

Create an environment <goenvironment_name> with go 1.9 or later

nv mk <goenvironment_name> --go-prebuilt=1.9.4

Activate environment

nv on <goenvironment_name>

Install PSC dependancies

go get -u github.com/golang/protobuf/protoc-gen-go
go get golang.org/x/net/publicsuffix
go get github.com/armon/go-radix
go get github.com/dedis/kyber
cd $GOPATH/src/github.com/dedis/kyber
go get -t ./...
go build -tags vartime

Download PSC

cd $GOPATH/src
git clone https://github.com/AkshayaMani/PSC.git

Upgrade PSC

cd $GOPATH/src/PSC
git pull

Deactivate environment

nv off

Installing PrivCount-patched Tor (Data Parties) dependencies

A custom compiled PrivCount-patched Tor must be used to run a Data Party.

The most up to date instructions for installing a PrivCount-patched Tor can be found here:

https://github.com/privcount/privcount/blob/master/INSTALL.markdown#installing-a-privcount-patched-tor-data-collectors