Im struggling to find a way of creating a generic Transaction packet, that
can encapsulate many transaction types. I was doing this with oneof but
oneof cannot be extended. Enums can't be extended either.
Im lost at this point for how to let one or more clients extend Transaction
and have thei
I really like using protobuf but I cannot find a way to make this one case
work.
I need to define a base, lets call it Transaction. Each message could be
implemented differently so my original implementation was
message Transaction{
oneof type {
NTx n = 1;
TTx tx = 2;
}