aea.protocols.default.serialization

Serialization module for default protocol.

DefaultSerializer

class DefaultSerializer(Serializer)

Serialization for the 'default' protocol.

encode

 | encode(msg: Message) -> bytes

Encode a 'Default' message into bytes.

Arguments:

  • msg: the message object.

Returns:

the bytes.

decode

 | decode(obj: bytes) -> Message

Decode bytes into a 'Default' message.

Arguments:

  • obj: the bytes object.

Returns:

the 'Default' message.