Ridge-Lab/moonmls/tree does not have a README file
pub struct CreatedUpdatePath {
update_path : UpdatePath
path_secrets : Array[Bytes]
commit_secret : Bytes
new_tree : RatchetTree
new_private_state : PrivateTreeState
}pub struct PrivateTreeState {
leaf_index : UInt
leaf_encryption_priv : Bytes
signature_priv : Bytes
node_privs : Map[UInt, Bytes]
}fn PrivateTreeState::new(leaf_index : UInt, leaf_encryption_priv : Bytes, signature_priv : Bytes) -> PrivateTreeStatefn PrivateTreeState::set_path_secret(self : PrivateTreeState, suite : CipherSuite, node : UInt, path_secret : Bytes) -> Unit raise MlsErrorpub struct ProcessedUpdatePath {
decrypted_path_secret : Bytes
commit_secret : Bytes
new_tree : RatchetTree
new_private_state : PrivateTreeState
}fn RatchetTree::create_update_path(self : RatchetTree, suite : CipherSuite, group_id : Bytes, priv_state : PrivateTreeState, leaf_secret : Bytes, hpke_seed : Bytes, excluded_leaves : Array[UInt], build_group_context : (Bytes) -> Bytes raise MlsError) -> CreatedUpdatePath raise MlsErrorfn RatchetTree::filtered_direct_path(self : RatchetTree, leaf_index : UInt) -> Array[(UInt, UInt)] raise MlsErrorfn RatchetTree::merge_update_path(self : RatchetTree, suite : CipherSuite, group_id : Bytes, sender_leaf : UInt, update_path : UpdatePath) -> RatchetTree raise MlsErrorfn RatchetTree::node_tree_hash(self : RatchetTree, suite : CipherSuite, node : UInt) -> Bytes raise MlsErrorfn RatchetTree::node_tree_hash_excluding(self : RatchetTree, suite : CipherSuite, node : UInt, excluded_leaves : Array[UInt]) -> Bytes raise MlsErrorfn RatchetTree::process_update_path(self : RatchetTree, suite : CipherSuite, group_id : Bytes, sender_leaf : UInt, update_path : UpdatePath, excluded_leaves : Array[UInt], priv_state : PrivateTreeState, build_group_context : (Bytes) -> Bytes raise MlsError) -> ProcessedUpdatePath raise MlsErrorfn RatchetTree::update_leaf(self : RatchetTree, sender_leaf : UInt, new_leaf : LeafNode) -> Unit raise MlsErrorfn RatchetTree::verify_all_leaf_signatures(self : RatchetTree, suite : CipherSuite, group_id : Bytes) -> Unit raise MlsErrorfn RatchetTree::verify_parent_hashes(self : RatchetTree, suite : CipherSuite) -> Unit raise MlsErrorfn compute_parent_hash(suite : CipherSuite, encryption_key : Bytes, parent_hash : Bytes, original_sibling_tree_hash : Bytes) -> Bytes raise MlsErrorfn verify_leaf_signature(suite : CipherSuite, leaf : LeafNode, group_id : Bytes?, leaf_index : UInt?) -> Unit raise MlsErrorInstall
Download zipPure MoonBit IETF MLS (RFC 9420) end-to-end encrypted group messaging protocol engine: TreeKEM, Secret Tree, Key Schedule, framing, and stateful Group API.