Removing akka.util.ByteString dependency is not possible, since all deserialization is consumed by akka.Tcp, which it's tied to.
Extracted MessageBase trait from Message.
Since other network solutions could require its own data classes and scorex.util.Serialization not available, due to tis specialty, it for now will be on the ergo-core library user's side to decide how to decode and encode those messages.
Node's Message serializer now requires MessageBase, so any inherited message type should work
Closes #2105
Removing
akka.util.ByteString
dependency is not possible, since all deserialization is consumed byakka.Tcp
, which it's tied to. ExtractedMessageBase
trait fromMessage
. Since other network solutions could require its own data classes andscorex.util.Serialization
not available, due to tis specialty, it for now will be on theergo-core
library user's side to decide how to decode and encode those messages.Node's
Message
serializer now requiresMessageBase
, so any inherited message type should work