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