Module: types

class doubleratchet.types.EncryptedMessage(header, ciphertext)[source]

Bases: tuple

A Double Ratchet-encrypted message, consisting of the header and ciphertext.

Parameters
  • header (Header) –

  • ciphertext (bytes) –

property header

Alias for field number 0

property ciphertext

Alias for field number 1

class doubleratchet.types.Header(ratchet_pub, previous_sending_chain_length, sending_chain_length)[source]

Bases: tuple

The header structure sent with each Double Ratchet-encrypted message, containing the metadata to keep the ratchets synchronized.

Parameters
  • ratchet_pub (bytes) –

  • previous_sending_chain_length (int) –

  • sending_chain_length (int) –

property ratchet_pub

Alias for field number 0

property previous_sending_chain_length

Alias for field number 1

property sending_chain_length

Alias for field number 2