Skip to content

packages.fetchai.protocols.signing.serialization

Serialization module for signing protocol.

SigningSerializer Objects

class SigningSerializer(Serializer)

Serialization for the 'signing' protocol.

encode

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

Encode a 'Signing' message into bytes.

Arguments:

  • msg: the message object.

Returns:

the bytes.

decode

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

Decode bytes into a 'Signing' message.

Arguments:

  • obj: the bytes object.

Returns:

the 'Signing' message.

Back to top