Apex › Cryptography

MLS / TreeKEM — group key agreement

The Double Ratchet keeps a two-party chat secure; doing that for a big group pairwise is O(n) work per change. MLS (RFC 9420) puts members at the leaves of a binary ratchet tree with the group key at the root, so any change re-keys only one leaf-to-root path — O(log n). Click a member to update or remove it and watch just its direct path light up (3 nodes, 3 encryptions in a group of 8, vs 7 pairwise — or 10 vs 1023 at 1024 members), and see a removed member locked out of the new root.

More in Cryptography