Open tharvik opened 4 years ago
In onet/network/encoding.go, there are a series of protobuf.RegisterInterface calls that set up protobuf to handle this correctly; at least for decoding.
But yes, I agree that GenerateProtobufDefinition doesn't do this right.
I'm trying to find how
onet.Roster
is serialized by protobuf. Sadly, when encountering an interface, such askyber.Point
, it fails.It would be nice to support it, such as using the
Any
prototype defined in proto3, or simply areserved
with a comment.