This repository uses generated code via Google's protoc-gen-go
utility, which generates Go code from proto specification.
The source protobufs are found in protos/. The transaction
generics batch.proto
and transaction.proto
are sourced from the
hyperledger/transact repository, whereas sabre_payload.proto
is
sourced from Cargill/splinter, or alternatively hyperledger/transact-sdk-go.
Requirements
- Protobuf Compiler - the protoc binary must be accesible on the build
$PATH
. Download the binary from the protocolbuffers/protobuf repository releases. - Install Golang's
protoc-gen-go
protocol buffers plugin, which is maintained as a dependency in go.mod.go get google.golang.org/protobuf/cmd/protoc-gen-go # The compiler plugin, protoc-gen-go, will be installed in $GOPATH/bin # unless $GOBIN is set. It must be in your $PATH for the protocol # compiler, protoc, to find it. go install google.golang.org/protobuf/cmd/protoc-gen-go
Build Command
./scripts/compile_protos.sh