Add protobuf encoding for msg handling
Closed this issue · 0 comments
aloknerurkar commented
Add protobuf encoding, similar to pkg/p2p/msgpack.
For protobuf, we don't need to use generics as pb.Message interface already provides similar features.
ReadMsg(context.Context, pb.Message) error
WriteMsg(context.Context, pb.Message) error
Add unit tests for the implementation.