diff --git a/Cargo.lock b/Cargo.lock
index a494bcf..2f4cb09 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -237,7 +237,7 @@ dependencies = [
[[package]]
name = "fhe"
-version = "0.1.0-beta.1"
+version = "0.1.0-beta.2"
dependencies = [
"console",
"criterion",
diff --git a/crates/fhe/CHANGELOG.md b/crates/fhe/CHANGELOG.md
index d2e417b..91b8351 100644
--- a/crates/fhe/CHANGELOG.md
+++ b/crates/fhe/CHANGELOG.md
@@ -5,6 +5,28 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## Unreleased
+
+This release fixes a bug that did not allow to decrypt a modulo-switched ciphertext correctly.
+
+### Commit Statistics
+
+
+
+ - 1 commit contributed to the release.
+ - 0 commits were understood as [conventional](https://www.conventionalcommits.org).
+ - 0 issues like '(#ID)' where seen in commit messages
+
+### Commit Details
+
+
+
+view details
+
+ * **Uncategorized**
+ - Remove forgotten cfg(not(feature ([`385c6fa`](https://github.com/tlepoint/fhe.rs/commit/385c6fabefbe7c06efbc90cdf4d8455fdfc33396))
+
+
## 0.1.0-beta.1 (2022-09-07)
First version of the `fhe` crate, that includes the BFV cryptosystem.
@@ -13,7 +35,7 @@ First version of the `fhe` crate, that includes the BFV cryptosystem.
- - 12 commits contributed to the release over the course of 1 calendar day.
+ - 13 commits contributed to the release over the course of 1 calendar day.
- 0 commits were understood as [conventional](https://www.conventionalcommits.org).
- 6 unique issues were worked on: [#114](https://github.com/tlepoint/fhe.rs/issues/114), [#115](https://github.com/tlepoint/fhe.rs/issues/115), [#116](https://github.com/tlepoint/fhe.rs/issues/116), [#118](https://github.com/tlepoint/fhe.rs/issues/118), [#120](https://github.com/tlepoint/fhe.rs/issues/120), [#121](https://github.com/tlepoint/fhe.rs/issues/121)
@@ -36,6 +58,7 @@ First version of the `fhe` crate, that includes the BFV cryptosystem.
* **[#121](https://github.com/tlepoint/fhe.rs/issues/121)**
- Remove features, remove utilities crate, bump versions ([`570943a`](https://github.com/tlepoint/fhe.rs/commit/570943ae1822888a2ccb27412619ab3355b3ea3a))
* **Uncategorized**
+ - Release fhe v0.1.0-beta.1 ([`718f0cd`](https://github.com/tlepoint/fhe.rs/commit/718f0cdc1e5b75eaf52a5ea1078c1ed9c2bf46f5))
- First version fhe crate ([`3f9e80c`](https://github.com/tlepoint/fhe.rs/commit/3f9e80c9bc91b068d00ec6b03ccafb07f150185a))
- Release fhe-traits v0.1.0-beta.0, fhe-util v0.1.0-beta.0, fhe-math v0.1.0-beta.0, fhe v0.1.0-beta.0 ([`e81e1c6`](https://github.com/tlepoint/fhe.rs/commit/e81e1c60769e63c52ad3885d16249161074ca293))
- Adjusting changelogs prior to release of fhe-traits v0.1.0-beta.0, fhe-util v0.1.0-beta.0, fhe-math v0.1.0-beta.0, fhe v0.1.0-beta.0 ([`4c9ed5b`](https://github.com/tlepoint/fhe.rs/commit/4c9ed5bc57ccaa4a9d9ac98e4883f6c5c2136b5b))
diff --git a/crates/fhe/Cargo.toml b/crates/fhe/Cargo.toml
index 13af4b6..aebbebb 100644
--- a/crates/fhe/Cargo.toml
+++ b/crates/fhe/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "fhe"
description = "Fully Homomorphic Encryption in Rust"
-version = "0.1.0-beta.1"
+version = "0.1.0-beta.2"
edition = "2021"
license = "MIT"
repository = "https://github.com/tlepoint/fhe.rs"
diff --git a/crates/fhe/src/bfv/ciphertext.rs b/crates/fhe/src/bfv/ciphertext.rs
index f3c4b7b..37611c9 100644
--- a/crates/fhe/src/bfv/ciphertext.rs
+++ b/crates/fhe/src/bfv/ciphertext.rs
@@ -158,13 +158,6 @@ impl TryConvertFrom<&CiphertextProto> for Ciphertext {
return Err(Error::DefaultError("Invalid level".to_string()));
}
- #[cfg(not(feature = "leveled_bfv"))]
- if value.level != 0 {
- return Err(Error::DefaultError(
- "Invalid level: did you enable the leveled_bfv feature?".to_string(),
- ));
- }
-
let ctx = par.ctx_at_level(value.level as usize)?;
let mut seed = None;