Skip to content

Commit

Permalink
feat(integer): impl Named for compression keys
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeul-zama committed Jan 29, 2025
1 parent 9ced1e7 commit 4c261ac
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tfhe/src/integer/compression_keys.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use super::ClientKey;
use crate::conformance::ParameterSetConformant;
use crate::integer::backward_compatibility::list_compression::*;
use crate::named::Named;
use serde::{Deserialize, Serialize};
use tfhe_versionable::Versionize;

Expand Down Expand Up @@ -34,6 +35,26 @@ pub struct CompressedDecompressionKey {
pub(crate) key: crate::shortint::list_compression::CompressedDecompressionKey,
}

impl Named for CompressionPrivateKeys {
const NAME: &'static str = "high_level_api::CompressionPrivateKeys";
}

impl Named for CompressionKey {
const NAME: &'static str = "high_level_api::CompressionKey";
}

impl Named for DecompressionKey {
const NAME: &'static str = "high_level_api::DecompressionKey";
}

impl Named for CompressedCompressionKey {
const NAME: &'static str = "high_level_api::CompressedCompressionKey";
}

impl Named for CompressedDecompressionKey {
const NAME: &'static str = "high_level_api::CompressedDecompressionKey";
}

impl CompressedCompressionKey {
pub fn decompress(&self) -> CompressionKey {
CompressionKey {
Expand Down

0 comments on commit 4c261ac

Please sign in to comment.