# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
ExtractIdentity extracts the identity key from a given bundle.
New creates a new ProtocolService instance.
NewBundleContainer creates a new BundleContainer from an identity private key.
DB and migrations are shared between encryption package and its sub-packages.
PerformActiveDH performs a Diffie-Hellman exchange using a public key and a generated ephemeral key.
PerformActiveX3DH takes someone else's bundle and calculates shared secret.
PerformDH generates a shared key given a private and a public key.
PerformPassiveX3DH handles the part of the protocol where our interlocutor used our bundle, with ID of the signedPreKey, we loaded our identity key and the correct signedPreKey and we perform X3DH.
SignBundle signs the bundle and refreshes the timestamps.
VerifyBundle checks that a bundle is valid.
# Constants
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
ErrNoPayload means that there was no payload found in the received protocol message.
ErrNotPairedDevice means that we received a message signed with our public key but from a device that has not been paired.
# Structs
X3DH prekey bundle.
No description provided by the author
No description provided by the author
Direct message value.
No description provided by the author
No description provided by the author
Top-level protocol message.
No description provided by the author
RatchetInfo holds the current ratchet state.
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author