-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Description
As a user of Fabric
I want Fabric v3 to use fabric-protos Go bindings based on protocol buffer APIv2
So that Fabric is using actively maintained and non-deprecated protobuf APIs
In early 2020, a new Go API for protocol buffers was released, and the older protocol buffer API was deprecated.
- https://go.dev/blog/protobuf-apiv2
- Deprecated API: https://pkg.go.dev/github.com/golang/protobuf
- New API: https://pkg.go.dev/google.golang.org/protobuf
The two API versions produce 100% wire-level compatible protobuf messages so they can be used interchangeably with no compatibility implications for client applications, SDKs or other Fabric components. This has already been proven in the Fabric Gateway client API, which migrated seamlessly from the old to new protocol buffer API and maintained complete compatibility with Fabric.
Pre-built Go language bindings for the Fabric protobufs are already published based on both the old (fabric-protos-go) and new (fabric-protos-go-apiv2). The only work required is to change Fabric code to use the new protos package.