Skip to content

Commit

Permalink
update doc and build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
86667 committed Nov 5, 2019
1 parent c66bff0 commit bbbcb56
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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/).

12 changes: 11 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bbbcb56

Please sign in to comment.