pub fn new_application(
        sender_index: LeafIndex,
        authenticated_data: &[u8],
        application_message: &[u8],
        credential_bundle: &CredentialBundle,
        context: &GroupContext,
        membership_key: &MembershipKey,
        backend: &impl OpenMlsCryptoProvider,
    ) -> Result<Self, MlsPlaintextError> {
        let framing_parameters =
            FramingParameters::new(authenticated_data, WireFormat::MlsCiphertext);
        Self::new_with_membership_tag(
            framing_parameters,
            sender_index,
            Payload {
                payload: MlsPlaintextContentType::Application(application_message.into()),
                content_type: ContentType::Application,
            },
            credential_bundle,
            context,
            membership_key,
            backend,
        )
    }
/// This constructor builds an `MlsPlaintext` containing an application
/// message. The sender type is always `SenderType::Member`.
This constructor builds an `MlsPlaintext` containing an application
message. The sender type is always `SenderType::Member`.
This constructor builds an ` MlsPlaintext ` containing an application message . The sender type is always ` SenderType :: Member ` .
pub fn new_application(
        sender_index: LeafIndex,
        authenticated_data: &[u8],
        application_message: &[u8],
        credential_bundle: &CredentialBundle,
        context: &GroupContext,
        membership_key: &MembershipKey,
        backend: &impl OpenMlsCryptoProvider,
    ) -> Result<Self, MlsPlaintextError> {
        let framing_parameters =
            FramingParameters::new(authenticated_data, WireFormat::MlsCiphertext);
        Self::new_with_membership_tag(
            framing_parameters,
            sender_index,
            Payload {
                payload: MlsPlaintextContentType::Application(application_message.into()),
                content_type: ContentType::Application,
            },
            credential_bundle,
            context,
            membership_key,
            backend,
        )
    }
pub fn new_application ( sender_index : LeafIndex , authenticated_data : & [ u8 ] , application_message : & [ u8 ] , credential_bundle : & CredentialBundle , context : & GroupContext , membership_key : & MembershipKey , backend : & impl OpenMlsCryptoProvider , ) -> Result < Self , MlsPlaintextError > { let framing_parameters = FramingParameters :: new ( authenticated_data , WireFormat :: MlsCiphertext ) ; Self :: new_with_membership_tag ( framing_parameters , sender_index , Payload { payload : MlsPlaintextContentType :: Application ( application_message . into ( ) ) , content_type : ContentType :: Application , } , credential_bundle , context , membership_key , backend , ) }
This constructor builds an `MlsPlaintext` containing an application
message.
This constructor builds an ` MlsPlaintext ` containing an application message .
sender_index
LeafIndex
authenticated_data
&[u8]
application_message
&[u8]
credential_bundle
&CredentialBundle
context
&GroupContext
membership_key
&MembershipKey
backend
&impl OpenMlsCryptoProvider
sender_index
LeafIndex
authenticated_data
&[u8]
application_message
&[u8]
credential_bundle
&CredentialBundle
context
&GroupContext
membership_key
&MembershipKey
backend
&impl OpenMlsCryptoProvider