Skip to content

Commit fe47bac

Browse files
authored
chore(release): v0.1.1 (#332)
1 parent c7454b6 commit fe47bac

12 files changed

Lines changed: 31 additions & 34 deletions

File tree

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,3 @@ thiserror = "^2.0.17"
3636
zeroize = "^1.8.2"
3737
zeroize_derive = "^1.4.2"
3838
once_cell = "^1.19.0"
39-

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ To install, add the following to your project's `Cargo.toml` file:
2828

2929
```toml
3030
[dependencies]
31-
fhe = "0.1.0"
32-
fhe-traits = "0.1.0"
31+
fhe = "0.1.1"
32+
fhe-traits = "0.1.1"
3333
```
3434

3535
## Minimum supported version / toolchain

crates/fhe-math/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition.workspace = true
66
license.workspace = true
77
repository.workspace = true
88
rust-version.workspace = true
9-
version = "0.1.0"
9+
version = "0.1.1"
1010

1111
[lib]
1212
bench = false # Disable default bench (we use criterion)
@@ -16,8 +16,8 @@ tfhe-ntt = []
1616
tfhe-ntt-nightly = ["tfhe-ntt/nightly"]
1717

1818
[dependencies]
19-
fhe-traits = { version = "=0.1.0", path = "../fhe-traits" }
20-
fhe-util = { version = "=0.1.0", path = "../fhe-util" }
19+
fhe-traits = { version = "=0.1.1", path = "../fhe-traits" }
20+
fhe-util = { version = "=0.1.1", path = "../fhe-util" }
2121

2222
tfhe-ntt.workspace = true
2323
ethnum.workspace = true

crates/fhe-math/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Add the following to your `Cargo.toml`:
1515

1616
```toml
1717
[dependencies]
18-
fhe-math = "0.1.0-beta.8"
18+
fhe-math = "0.1.1"
1919
```
2020

2121
## Testing
@@ -30,5 +30,5 @@ This project is licensed under the [MIT license](https://opensource.org/licenses
3030

3131
## Security / Stability
3232

33-
The code in this crate has not undergone an independent security audit and the API may change before version `1.0.0`.
33+
The code in this crate has not undergone an independent security audit.
3434
Use at your own risk.

crates/fhe-math/src/rq/scaler.rs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,15 @@ impl Scaler {
2828
return Err(Error::Default("Incompatible degrees".to_string()));
2929
}
3030

31-
let mut number_common_moduli = 0;
32-
if factor.is_one {
33-
for (qi, pi) in izip!(from.q.iter(), to.q.iter()) {
34-
if qi == pi {
35-
number_common_moduli += 1
36-
} else {
37-
break;
38-
}
39-
}
40-
}
41-
31+
let number_common_moduli = if factor.is_one {
32+
from.q
33+
.iter()
34+
.zip(to.q.iter())
35+
.take_while(|(qi, pi)| qi == pi)
36+
.count()
37+
} else {
38+
0
39+
};
4240
let scaler = RnsScaler::new(&from.rns, &to.rns, factor);
4341

4442
Ok(Self {

crates/fhe-traits/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition.workspace = true
66
license.workspace = true
77
repository.workspace = true
88
rust-version.workspace = true
9-
version = "0.1.0"
9+
version = "0.1.1"
1010

1111
[lib]
1212
bench = false # Disable default bench (we use criterion)

crates/fhe-traits/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This crate provides common abstractions for parameters, plaintext and ciphertext
88

99
```toml
1010
[dependencies]
11-
fhe-traits = "0.1.0-beta.8"
11+
fhe-traits = "0.1.1"
1212
```
1313

1414
## Testing
@@ -23,5 +23,5 @@ This project is licensed under the [MIT license](https://opensource.org/licenses
2323

2424
## Security / Stability
2525

26-
The code in this crate has not undergone an independent security audit and the API may change before version `1.0.0`.
26+
The code in this crate has not undergone an independent security audit.
2727
Use at your own risk.

crates/fhe-util/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition.workspace = true
66
license.workspace = true
77
repository.workspace = true
88
rust-version.workspace = true
9-
version = "0.1.0"
9+
version = "0.1.1"
1010

1111
[dependencies]
1212
num-bigint-dig = { workspace = true, features = ["prime"] }

crates/fhe-util/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The crate contains helper routines such as primality testing, centered binomial
88

99
```toml
1010
[dependencies]
11-
fhe-util = "0.1.0-beta.8"
11+
fhe-util = "0.1.1"
1212
```
1313

1414
## Testing
@@ -23,5 +23,5 @@ This project is licensed under the [MIT license](https://opensource.org/licenses
2323

2424
## Security / Stability
2525

26-
The code in this crate has not undergone an independent security audit and the API may change before version `1.0.0`.
26+
The code in this crate has not undergone an independent security audit.
2727
Use at your own risk.

0 commit comments

Comments
 (0)