Skip to content

Instantly share code, notes, and snippets.

@bifurcation
Created July 19, 2018 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bifurcation/1a0765bb589383e42b473b7b21b2928a to your computer and use it in GitHub Desktop.
Save bifurcation/1a0765bb589383e42b473b7b21b2928a to your computer and use it in GitHub Desktop.
MLS API
class ARTState {
oneMemberGroup(leaf);
fromGroupAdd(initLeaf, groupAdd);
fromUserAdd(leaf, userAdd, groupInitKey);
join(leaf, groupInitKey);
add(userInitPub);
update(leaf);
remove(index);
groupInitKey();
handleUserAdd(ua);
handleGroupAdd(ga);
handleSelfUpdate(update, leaf);
handleUpdate(update);
handleRemove(remove);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment