In this blog post I take a detailed look at how the Extended Triple Diffie-Hellman Key Exchange (X3DH) works. This algorithm is part of the cryptography that drives OMEMO.