From bbbcb5628c66c185861987a8efb6acc1bffba945 Mon Sep 17 00:00:00 2001 From: tomossomot Date: Tue, 5 Nov 2019 13:03:40 +0000 Subject: [PATCH] update doc and build.sh --- README.md | 3 +-- scripts/build.sh | 12 +++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6c4f1ca..aa98f14 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Mainstay -The mainstay repository is an application that implements the [Mainstay protocol](https://www.commerceblock.com/wp-content/uploads/2018/03/commerceblock-mainstay-whitepaper.pdf) designed by [CommerceBlock](https://www.commerceblock.com). It consists of a Go daemon that performs attestations of the [Ocean](https://github.com/commerceblock/ocean) network along with client commitments to Bitcoin in the form of a commitment merkle tree. +The mainstay repository is an application that implements the [Mainstay protocol](https://cloudflare-ipfs.com/ipns/ipfs.commerceblock.com/commerceblock-whitepaper-mainstay.pdf) designed by [CommerceBlock](https://www.commerceblock.com). It consists of a Go daemon that performs attestations of the [Ocean](https://github.com/commerceblock/ocean) network along with client commitments to Bitcoin in the form of a commitment merkle tree. Mainstay is accompanied by a Confirmation tool that can be run in parallel with the Bitcoin network to confirm attestations and prove the commitment inclusion in Mainstay attestations. @@ -75,4 +75,3 @@ The multisig tool `cmd/multisigtool` can be used to generate multisig scripts an For more information go to [tool guidelines](/cmd/README.md). For example use cases go to [docs](/doc/). - diff --git a/scripts/build.sh b/scripts/build.sh index 19c54ca..d1cd2c2 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -3,13 +3,23 @@ brew install go go env GOROOT GOPATH +# Add GOPATH to env variables +export GOPATH=`go env GOPATH` + mkdir $GOPATH/src mkdir $GOPATH/bin +# Add GOBIN to env variables export GOBIN=$GOPATH/bin git clone https://github.com/commerceblock/mainstay $GOPATH/src/mainstay cd $GOPATH/src/mainstay +# Add bin to $PATH +PATH="$GOPATH/bin:$PATH" + +# Download and install dependencies +go get + +# Compile packages and dependencies go build -go install