Open ashwinphatak opened 4 years ago
Encoding/decoding uses protobuf namespaced message type names (e.g. chess.Game). How does this tie ino https://github.com/wirelineio/wireline-core/issues/56?
Protobufs must be registered with WNS
Look at proto extension registry for background: https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/ExtensionRegistry But this requires coordination: https://github.com/protocolbuffers/protobuf/blob/master/docs/options.md AND https://github.com/multiformats/multicodec/blob/master/table.csv
Notes from call:
Internally, in AnyType, don't use WRN (use scoped namespace of .proto)
Externally (in pads, use WRN).
Association made in the registry (that X WRN is Y protobuf type).
.proto file is in the registry.
decode
method).Open questions:
.proto
files get registered with the codec? Maybe via a framework method?