pybitmessage.helper_msgcoding module

Message encoding end decoding functions

exception MsgEncodeException[source]

Bases: exceptions.Exception

Exception during message encoding

exception MsgDecodeException[source]

Bases: exceptions.Exception

Exception during message decoding

exception DecompressionSizeException(size)[source]

Bases: pybitmessage.helper_msgcoding.MsgDecodeException

Decompression resulted in too much data (attack protection)

class MsgEncode(message, encoding=2)[source]

Bases: object

Message encoder class

encodeExtended(message)

Handle extended encoding

encodeSimple(message)

Handle simple encoding

encodeTrivial(message)

Handle trivial encoding

class MsgDecode(encoding, data)[source]

Bases: object

Message decoder class

decodeExtended(data)

Handle extended encoding

decodeSimple(data)

Handle simple encoding