Ridge-Lab/moonmls/secret_tree does not have a README file
pub struct HashRatchet {
suite : CipherSuite
secret : Bytes
next_generation : UInt
out_of_order : Map[UInt, RatchetKeyNonce]
max_forward_distance : UInt
}fn HashRatchet::key_nonce_for_generation(self : HashRatchet, generation : UInt) -> RatchetKeyNonce raise MlsErrorfn HashRatchet::new(suite : CipherSuite, initial_secret : Bytes, max_forward_distance? : UInt) -> HashRatchetpub struct SecretTree {
suite : CipherSuite
n_leaves : UInt
nodes : Array[Bytes?]
handshake_ratchets : Array[HashRatchet?]
application_ratchets : Array[HashRatchet?]
max_forward_distance : UInt
}fn SecretTree::key_nonce_for_generation(self : SecretTree, leaf_index : UInt, content_type : ContentType, generation : UInt) -> RatchetKeyNonce raise MlsErrorfn SecretTree::new(suite : CipherSuite, encryption_secret : Bytes, n_leaves : UInt, max_forward_distance? : UInt) -> SecretTree raise MlsErrorfn SecretTree::next_key_nonce(self : SecretTree, leaf_index : UInt, content_type : ContentType) -> RatchetKeyNonce raise MlsErrorfn sender_data_key_nonce(suite : CipherSuite, sender_data_secret : Bytes, ciphertext : Bytes) -> (Bytes, Bytes) 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.