Module: types
- class doubleratchet.types.EncryptedMessage(header, ciphertext)[source]
Bases:
NamedTupleA Double Ratchet-encrypted message, consisting of the header and ciphertext.
- class doubleratchet.types.Header(ratchet_pub, previous_sending_chain_length, sending_chain_length)[source]
Bases:
NamedTupleThe header structure sent with each Double Ratchet-encrypted message, containing the metadata to keep the ratchets synchronized.
Type Aliases
- doubleratchet.types.JSONType
alias of
Mapping[str,JSONType] |List[JSONType] |str|int|float|bool|None
- doubleratchet.types.SkippedMessageKeys
alias of
OrderedDict[Tuple[bytes,int],bytes]