Skip to content

[1.x] Parse message function #216

@mulmarta

Description

@mulmarta

Background

Part of #211

Parse Message

We will have a function that parses an MLSMessage and outputs information needed to fetch the right data from storage.

pub enum MlsMessageDescription<'a> {
    Welcome {
        key_package_refs: &'a [KeyPackageRef],
        cipher_suite: CipherSuite,
    },
    ProtocolMessage {
        group_id: &'a [u8],
        epoch_id: u64,
        content_type: ContentType, // commit, proposal, or application
    },
    // Processing GroupInfo and KeyPackage does not require any storage
    GroupInfo,
    KeyPackage,
}

impl<'a> From<&'a MlsMessage> for MlsMessageDescription<'a> {
    ...
}

impl MlsMessage {
    fn description(&self) -> MlsMessageDescription  {
        ....
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions