pub fn new_commit(
        framing_parameters: FramingParameters,
        sender_index: LeafIndex,
        commit: Commit,
        credential_bundle: &CredentialBundle,
        context: &GroupContext,
        backend: &impl OpenMlsCryptoProvider,
    ) -> Result<Self, MlsPlaintextError> {
        Self::new(
            framing_parameters,
            sender_index,
            Payload {
                payload: MlsPlaintextContentType::Commit(commit),
                content_type: ContentType::Commit,
            },
            credential_bundle,
            context,
            backend,
        )
    }
/// This constructor builds an `MlsPlaintext` containing a Commit.
/// The sender type is always `SenderType::Member`.
This constructor builds an `MlsPlaintext` containing a Commit.
The sender type is always `SenderType::Member`.
This constructor builds an ` MlsPlaintext ` containing a Commit . The sender type is always ` SenderType :: Member ` .
pub fn new_commit(
        framing_parameters: FramingParameters,
        sender_index: LeafIndex,
        commit: Commit,
        credential_bundle: &CredentialBundle,
        context: &GroupContext,
        backend: &impl OpenMlsCryptoProvider,
    ) -> Result<Self, MlsPlaintextError> {
        Self::new(
            framing_parameters,
            sender_index,
            Payload {
                payload: MlsPlaintextContentType::Commit(commit),
                content_type: ContentType::Commit,
            },
            credential_bundle,
            context,
            backend,
        )
    }
pub fn new_commit ( framing_parameters : FramingParameters , sender_index : LeafIndex , commit : Commit , credential_bundle : & CredentialBundle , context : & GroupContext , backend : & impl OpenMlsCryptoProvider , ) -> Result < Self , MlsPlaintextError > { Self :: new ( framing_parameters , sender_index , Payload { payload : MlsPlaintextContentType :: Commit ( commit ) , content_type : ContentType :: Commit , } , credential_bundle , context , backend , ) }
This constructor builds an `MlsPlaintext` containing a Commit.
This constructor builds an ` MlsPlaintext ` containing a Commit .
framing_parameters
FramingParameters
sender_index
LeafIndex
commit
Commit
credential_bundle
&CredentialBundle
context
&GroupContext
backend
&impl OpenMlsCryptoProvider
framing_parameters
FramingParameters
sender_index
LeafIndex
commit
Commit
credential_bundle
&CredentialBundle
context
&GroupContext
backend
&impl OpenMlsCryptoProvider