packages.open_
aea.protocols.signing.serialization
Serialization module for signing protocol.
SigningSerializer Objects
class SigningSerializer(Serializer)
Serialization for the 'signing' protocol.
encode
@staticmethod
def encode(msg: Message) -> bytes
Encode a 'Signing' message into bytes.
Arguments:
msg
: the message object.
Returns:
the bytes.
decode
@staticmethod
def decode(obj: bytes) -> Message
Decode bytes into a 'Signing' message.
Arguments:
obj
: the bytes object.
Returns:
the 'Signing' message.