Have included return a reference instead of a cloned Vec

This commit is contained in:
Luke Parker
2022-12-13 19:40:54 -05:00
parent 2b042015b5
commit 9c65518dc3
3 changed files with 5 additions and 5 deletions

View File

@@ -376,8 +376,8 @@ impl<C: Ciphersuite> ThresholdView<C> {
self.group_key
}
pub fn included(&self) -> Vec<u16> {
self.included.clone()
pub fn included(&self) -> &[u16] {
&self.included
}
pub fn secret_share(&self) -> &Zeroizing<C::F> {