This repository is meant to stimulate ideas on how to store public data records on Hyperledger Sawtooth. It's a slightly modified copy of xo_go transaction processor, part of github.com/hyperledger/sawtooth-sdk-go
Please read and review the RFC located here.
-
OS Packages
sudo apt-get update sudo apt-get -y upgrade sudo apt install -y zip curl python3 python3-pip pkg-config -
Install protobuf compilers (make sure to get a 3.x.x version from here)
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.7.1/protoc-3.7.1-linux-x86_64.zip unzip protoc-3.7.1-linux-x86_64.zip -d protoc3 sudo mv protoc3/bin/* /usr/local/bin/ sudo mv protoc3/include/* /usr/local/include/ -
Install python's grpcio-tools library
sudo su - python3 -m pip install grpcio-tools
Please see Packaging As A Service
Please see Usage
-
Install golang version 1.12
wget https://dl.google.com/go/go1.12.2.linux-amd64.tar.gz sudo tar -xvf go1.12.2.linux-amd64.tar.gz sudo mv go /usr/binAdd the following to your ~/.profile
export GOROOT="/usr/bin/go" export GOPATH="$HOME/go" export PATH=$GOPATH/bin:$GOROOT/bin:$PATH -
Install go dependencies
go install github.com/golang/mock/mockgen && \ go get -u google.golang.org/grpc \ github.com/golang/protobuf/protoc-gen-go \ github.com/satori/go.uuid \ github.com/pebbe/zmq4 \ github.com/golang/mock/gomock \ github.com/hyperledger/sawtooth-sdk-go \ github.com/jessevdk/go-flags \ github.com/stretchr/testify/mock \ github.com/btcsuite/btcd/btcec \ gopkg.in/yaml.v2 cd $GOPATH/src/github.com/hyperledger/sawtooth-sdk-go && \ go generate
Read @ here
Please review the Issues for enhancements to this project.