Skip to content

packages.valory.protocols.abci.serialization

Serialization module for abci protocol.

AbciSerializer Objects

class AbciSerializer(Serializer)

Serialization for the 'abci' protocol.

encode

@staticmethod
def encode(msg: Message) -> bytes

Encode a 'Abci' message into bytes.

Arguments:

  • msg: the message object.

Returns:

the bytes.

decode

@staticmethod
def decode(obj: bytes) -> Message

Decode bytes into a 'Abci' message.

Arguments:

  • obj: the bytes object.

Returns:

the 'Abci' message.