mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-04-28 03:01:21 -04:00
chore: make CompressedXofKeySet::decompress take a reference
This commit is contained in:
@@ -378,7 +378,7 @@ impl CompressedXofKeySet {
|
||||
}
|
||||
|
||||
/// Decompress the KeySet
|
||||
pub fn decompress(self) -> crate::Result<XofKeySet> {
|
||||
pub fn decompress(&self) -> crate::Result<XofKeySet> {
|
||||
let tag = self.compressed_server_key.tag.clone();
|
||||
let (mut public_key, expanded_server_key) = self.expand();
|
||||
// Server key tag is the source of truth; sync public key
|
||||
|
||||
Reference in New Issue
Block a user