Module: bundle

class omemo.bundle.Bundle[source]

Bases: ABC

The bundle of a device, containing the cryptographic information required for active session building.

Note

All usages of “identity key” in the public API refer to the public part of the identity key pair in Ed25519 format.

abstract property namespace: str
abstract property bare_jid: str
abstract property device_id: int
abstract property identity_key: bytes
abstractmethod __eq__(other)[source]

Check an object for equality with this Bundle instance.

Parameters:

other (object) – The object to compare to this instance.

Return type:

bool

Returns:

Whether the other object is a bundle with the same contents as this instance.

Note

The order in which pre keys are included in the bundles does not matter.

abstractmethod __hash__()[source]

Hash this instance in a manner that is consistent with __eq__().

Return type:

int

Returns:

An integer value representing this instance.