Skip to content
This repository was archived by the owner on Jan 11, 2024. It is now read-only.

Latest commit

 

History

History
29 lines (25 loc) · 1.39 KB

BUILD.md

File metadata and controls

29 lines (25 loc) · 1.39 KB

Building Protocol Buffers

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.

Build

Requirements

  1. Protobuf Compiler - the protoc binary must be accesible on the build $PATH. Download the binary from the protocolbuffers/protobuf repository releases.
  2. 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