The v2 implementation retains wire-level compatibility with Fabric but does include the following breaking changes:
Chaincode implementations that make direct use of github.com/hyperledger/fabric-protos-go will experience protocol buffer namespace conflicts (as described in https://protobuf.dev/reference/go/faq/). Any use of fabric-protos-go must be replaced by github.com/hyperledger/fabric-protos-go-apiv2.
In order to avoid an indirect dependency on fabric-protos-go, chaincode implementations that make direct use of github.com/hyperledger/fabric-chaincode-go must instead use github.com/hyperledger/fabric-chaincode-go/v2.
The v2 implementation retains wire-level compatibility with Fabric but does include the following breaking changes:
github.com/hyperledger/fabric-protos-go
will experience protocol buffer namespace conflicts (as described in https://protobuf.dev/reference/go/faq/). Any use of fabric-protos-go must be replaced bygithub.com/hyperledger/fabric-protos-go-apiv2
.github.com/hyperledger/fabric-chaincode-go
must instead usegithub.com/hyperledger/fabric-chaincode-go/v2
.Closes #102