pub(crate) fn from_rekeyed_key_package(
        key_package: &KeyPackage,
        backend: &impl OpenMlsCryptoProvider,
    ) -> Self {
        let leaf_secret = Secret::random(
            key_package.ciphersuite(),
            backend,
            key_package.protocol_version(),
        );
        Self::from_key_package_and_leaf_secret(leaf_secret, key_package, backend)
    }
/// Replace the init key in the `KeyPackage` with a random one and return a
/// `KeyPackageBundlePayload` with the corresponding secret values.
/// To get a key package bundle sign the `KeyPackageBundlePayload`.
Replace the init key in the `KeyPackage` with a random one and return a
`KeyPackageBundlePayload` with the corresponding secret values.
To get a key package bundle sign the `KeyPackageBundlePayload`.
Replace the init key in the ` KeyPackage ` with a random one and return a ` KeyPackageBundlePayload ` with the corresponding secret values . To get a key package bundle sign the ` KeyPackageBundlePayload ` .
pub(crate) fn from_rekeyed_key_package(
        key_package: &KeyPackage,
        backend: &impl OpenMlsCryptoProvider,
    ) -> Self {
        let leaf_secret = Secret::random(
            key_package.ciphersuite(),
            backend,
            key_package.protocol_version(),
        );
        Self::from_key_package_and_leaf_secret(leaf_secret, key_package, backend)
    }
pub ( crate ) fn from_rekeyed_key_package ( key_package : & KeyPackage , backend : & impl OpenMlsCryptoProvider , ) -> Self { let leaf_secret = Secret :: random ( key_package . ciphersuite ( ) , backend , key_package . protocol_version ( ) , ) ; Self :: from_key_package_and_leaf_secret ( leaf_secret , key_package , backend ) }
Replace the init key in the `KeyPackage` with a random one and return a
`KeyPackageBundlePayload` with the corresponding secret values.
Replace the init key in the ` KeyPackage ` with a random one and return a ` KeyPackageBundlePayload ` with the corresponding secret values .
key_package
&KeyPackage
backend
&impl OpenMlsCryptoProvider
key_package
&KeyPackage
backend
&impl OpenMlsCryptoProvider