pub(crate) fn new_from_public_tree(ratchet_tree: &RatchetTree) -> Self {
        RatchetTree {
            ciphersuite: ratchet_tree.ciphersuite,
            mls_version: ratchet_tree.mls_version,
            nodes: ratchet_tree.nodes.clone(),
            private_tree: PrivateTree::new(ratchet_tree.private_tree.leaf_index()),
        }
    }
/// Create a new `RatchetTree` by cloning the public tree nodes from another
/// tree and an empty `PrivateTree`
Create a new `RatchetTree` by cloning the public tree nodes from another
tree and an empty `PrivateTree`
Create a new ` RatchetTree ` by cloning the public tree nodes from another tree and an empty ` PrivateTree `
pub(crate) fn new_from_public_tree(ratchet_tree: &RatchetTree) -> Self {
        RatchetTree {
            ciphersuite: ratchet_tree.ciphersuite,
            mls_version: ratchet_tree.mls_version,
            nodes: ratchet_tree.nodes.clone(),
            private_tree: PrivateTree::new(ratchet_tree.private_tree.leaf_index()),
        }
    }
pub ( crate ) fn new_from_public_tree ( ratchet_tree : & RatchetTree ) -> Self { RatchetTree { ciphersuite : ratchet_tree . ciphersuite , mls_version : ratchet_tree . mls_version , nodes : ratchet_tree . nodes . clone ( ) , private_tree : PrivateTree :: new ( ratchet_tree . private_tree . leaf_index ( ) ) , } }
Create a new `RatchetTree` by cloning the public tree nodes from another
tree and an empty `PrivateTree`
Create a new ` RatchetTree ` by cloning the public tree nodes from another tree and an empty ` PrivateTree `
ratchet_tree
&RatchetTree
ratchet_tree
&RatchetTree