pub(crate) fn replace_private_tree(
        &mut self,
        backend: &impl OpenMlsCryptoProvider,
        key_package_bundle: &KeyPackageBundle,
        group_context: &[u8],
    ) -> Option<&CommitSecret> {
        let _path_option = self.replace_private_tree_(
            backend,
            key_package_bundle.leaf_secret(),
            key_package_bundle.key_package(),
            group_context,
            None, /* without update path */
        );
        self.private_tree.commit_secret()
    }
/// Update the private tree with the new `KeyPackageBundle`.
Update the private tree with the new `KeyPackageBundle`.
Update the private tree with the new ` KeyPackageBundle ` .
pub(crate) fn replace_private_tree(
        &mut self,
        backend: &impl OpenMlsCryptoProvider,
        key_package_bundle: &KeyPackageBundle,
        group_context: &[u8],
    ) -> Option<&CommitSecret> {
        let _path_option = self.replace_private_tree_(
            backend,
            key_package_bundle.leaf_secret(),
            key_package_bundle.key_package(),
            group_context,
            None, /* without update path */
        );
        self.private_tree.commit_secret()
    }
pub ( crate ) fn replace_private_tree ( & mut self , backend : & impl OpenMlsCryptoProvider , key_package_bundle : & KeyPackageBundle , group_context : & [ u8 ] , ) -> Option < & CommitSecret > { let _path_option = self . replace_private_tree_ ( backend , key_package_bundle . leaf_secret ( ) , key_package_bundle . key_package ( ) , group_context , None , /* without update path */ ) ; self . private_tree . commit_secret ( ) }
Update the private tree with the new `KeyPackageBundle`.
Update the private tree with the new ` KeyPackageBundle ` .
&mut self
backend
&impl OpenMlsCryptoProvider
key_package_bundle
&KeyPackageBundle
group_context
&[u8]
&mut self
backend
&impl OpenMlsCryptoProvider
key_package_bundle
&KeyPackageBundle
group_context
&[u8]