/hedera-protobufs-go

Generated protobufs in Go for interacting with Hedera™ Hashgraph

Primary LanguageGoApache License 2.0Apache-2.0

Hedera™ Hashgraph Go Protubufs

Generated protobufs in Go for interacting with Hedera Hashgraph: the official distributed consensus platform built using the hashgraph consensus algorithm for fast, fair and secure transactions. Hedera enables and empowers developers to build an entirely new class of decentralized applications.

Install

$ go get github.com/hashgraph/hedera-protobufs-go

Usage

import "github.com/hashgraph/hedera-protobufs-go/services"

Example

to be written

Development

When updating the protobufs submodule, the generated code should be updated.

Prerequisites

  • Go v15+

  • Protobuf Compiler

  • Go plugins for the protobuf compiler

    $ go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.27.1
    $ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1.0

Build

# update the proto/ directory from hedera-protobufs
$ git submodule update --init

# generate go code from protobuf definitions
$ go generate ./...

# ensure the projects build
$ go vet ./...

License

Licensed under Apache License, Version 2.0 – see LICENSE in this repo