Ridge-Lab/moonmls/types does not have a README file
pub(all) suberror MlsError {
MlsError(String)
}pub(all) struct AuthenticatedContent {
wire_format : WireFormat
content : FramedContent
auth : FramedContentAuthData
} derive(Eq, Debug)pub(all) struct EncryptedGroupSecrets {
new_member : Bytes
encrypted_group_secrets : HPKECiphertext
} derive(Eq, Debug)pub(all) struct FramedContent {
group_id : Bytes
epoch : UInt64
sender : Sender
authenticated_data : Bytes
body : FramedContentBody
} derive(Eq, Debug)pub(all) struct GroupInfo {
group_context : GroupContext
extensions : Array[Extension]
confirmation_tag : Bytes
signer : UInt
signature : Bytes
} derive(Eq, Debug)pub(all) struct GroupSecrets {
joiner_secret : Bytes
path_secret : Bytes?
psks : Array[PreSharedKeyID]
} derive(Eq, Debug)pub(all) struct LeafNode {
encryption_key : Bytes
signature_key : Bytes
credential : Credential
capabilities : Capabilities
leaf_node_source : LeafNodeSource
extensions : Array[Extension]
signature : Bytes
} derive(Eq, Debug)pub(all) enum MLSMessage {
PublicMessage(PublicMessage)
PrivateMessage(PrivateMessage)
Welcome(Welcome)
GroupInfo(GroupInfo)
KeyPackage(KeyPackage)
} derive(Eq, Debug)pub(all) struct PrivateMessage {
group_id : Bytes
epoch : UInt64
content_type : ContentType
authenticated_data : Bytes
encrypted_sender_data : Bytes
ciphertext : Bytes
} derive(Eq, Debug)pub(all) enum Proposal {
Add(KeyPackage)
Update(LeafNode)
Remove(UInt)
PreSharedKey(PreSharedKeyID)
ReInit(Bytes, UInt, UInt, Array[Extension])
ExternalInit(Bytes)
GroupContextExtensions(Array[Extension])
Custom(UInt, Bytes)
} derive(Eq, Debug)pub(all) struct PublicMessage {
content : FramedContent
auth : FramedContentAuthData
membership_tag : Bytes?
} derive(Eq, Debug)pub(all) struct UpdatePathNode {
encryption_key : Bytes
encrypted_path_secret : Array[HPKECiphertext]
} derive(Eq, Debug)pub(all) struct Welcome {
cipher_suite : UInt
secrets : Array[EncryptedGroupSecrets]
encrypted_group_info : Bytes
} derive(Eq, Debug)let EXT_APPLICATION_ID : UIntlet PROTOCOL_VERSION_MLS10 : UIntInstall
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.