Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(integer): impl Named for compression keys #2016

Merged
merged 2 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions tfhe/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tfhe"
version = "0.11.1"
version = "0.11.2"
edition = "2021"
readme = "../README.md"
keywords = ["fully", "homomorphic", "encryption", "fhe", "cryptography"]
Expand Down Expand Up @@ -53,7 +53,9 @@ strum = { version = "0.26", features = ["derive"] }
cbindgen = { version = "0.26.0", optional = true }

[dependencies]
tfhe-csprng = { version = "0.5.0", path = "../tfhe-csprng", features = ["parallel"] }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should not be in the diff, we need a toml formatter 😵‍💫 ok here but this is so annoying

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, do you prefer that I revert the formatting?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no main has the same formatting it seems, just that this adds noise to PRs

tfhe-csprng = { version = "0.5.0", path = "../tfhe-csprng", features = [
"parallel",
] }
serde = { workspace = true, features = ["default", "derive"] }
rayon = { workspace = true }
bincode = "1.3.3"
Expand Down Expand Up @@ -140,7 +142,15 @@ split-linked-modules = true

[package.metadata.docs.rs]
# TODO: manage builds for docs.rs based on their documentation https://docs.rs/about
features = ["boolean", "shortint", "integer", "gpu", "zk-pok", "software-prng", "strings"]
features = [
"boolean",
"shortint",
"integer",
"gpu",
"zk-pok",
"software-prng",
"strings",
]
rustdoc-args = ["--html-in-header", "katex-header.html"]

###########
Expand Down
2 changes: 1 addition & 1 deletion tfhe/docs/fundamentals/serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ In the following example, we use [bincode](https://crates.io/crates/bincode) for

[dependencies]
# ...
tfhe = { version = "0.11.1", features = ["integer"] }
tfhe = { version = "0.11.2", features = ["integer"] }
bincode = "1.3.3"
```

Expand Down
4 changes: 2 additions & 2 deletions tfhe/docs/getting_started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This document provides instructions to set up **TFHE-rs** in your project.
First, add **TFHE-rs** as a dependency in your `Cargo.toml`.

```toml
tfhe = { version = "0.11.1", features = ["boolean", "shortint", "integer"] }
tfhe = { version = "0.11.2", features = ["boolean", "shortint", "integer"] }
```

{% hint style="info" %}
Expand Down Expand Up @@ -35,5 +35,5 @@ By default, **TFHE-rs** makes the assumption that hardware AES features are enab
To add support for older CPU, import **TFHE-rs** with the `software-prng` feature in your `Cargo.toml`:

```toml
tfhe = { version = "0.11.1", features = ["boolean", "shortint", "integer", "software-prng"] }
tfhe = { version = "0.11.2", features = ["boolean", "shortint", "integer", "software-prng"] }
```
4 changes: 2 additions & 2 deletions tfhe/docs/getting_started/quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ edition = "2021"
Then add the following configuration to include **TFHE-rs**:

```toml
tfhe = { version = "0.11.1", features = ["integer"] }
tfhe = { version = "0.11.2", features = ["integer"] }
```

Your updated `Cargo.toml` file should look like this:
Expand All @@ -71,7 +71,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]
tfhe = { version = "0.11.1", features = ["integer"] }
tfhe = { version = "0.11.2", features = ["integer"] }
```

If you are on a different platform please refer to the [installation documentation](installation.md) for configuration options of other supported platforms.
Expand Down
2 changes: 1 addition & 1 deletion tfhe/docs/guides/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The following example shows a complete workflow of working with encrypted arrays
# Cargo.toml

[dependencies]
tfhe = { version = "0.11.1", features = ["integer"] }
tfhe = { version = "0.11.2", features = ["integer"] }
```

```rust
Expand Down
2 changes: 1 addition & 1 deletion tfhe/docs/guides/data_versioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You can load serialized data with the `unversionize` function, even in newer ver

[dependencies]
# ...
tfhe = { version = "0.11.1", features = ["integer"] }
tfhe = { version = "0.11.2", features = ["integer"] }
tfhe-versionable = "0.4.0"
bincode = "1.3.3"
```
Expand Down
2 changes: 1 addition & 1 deletion tfhe/docs/guides/run_on_gpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ To use the **TFHE-rs** GPU backend in your project, add the following dependency


```toml
tfhe = { version = "0.11.1", features = ["boolean", "shortint", "integer", "gpu"] }
tfhe = { version = "0.11.2", features = ["boolean", "shortint", "integer", "gpu"] }
```

{% hint style="success" %}
Expand Down
2 changes: 1 addition & 1 deletion tfhe/docs/guides/strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Here is an example:
# Cargo.toml

[dependencies]
tfhe = { version = "0.11.1", features = ["integer", "strings"] }
tfhe = { version = "0.11.2", features = ["integer", "strings"] }
```

```rust
Expand Down
2 changes: 1 addition & 1 deletion tfhe/docs/references/core-crypto-api/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Welcome to this tutorial about `TFHE-rs` `core_crypto` module.
To use `TFHE-rs`, it first has to be added as a dependency in the `Cargo.toml`:

```toml
tfhe = { version = "0.11.1" }
tfhe = { version = "0.11.2" }
```

### Commented code to double a 2-bit message in a leveled fashion and using a PBS with the `core_crypto` module.
Expand Down
4 changes: 2 additions & 2 deletions tfhe/docs/tutorials/ascii_fhe_string.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ To use the `FheUint8` type, enable the `integer` feature:
# Cargo.toml

[dependencies]
tfhe = { version = "0.11.1", features = ["integer"] }
tfhe = { version = "0.11.2", features = ["integer"] }
```

The `MyFheString::encrypt` function performs data validation to ensure the input string contains only ASCII characters.
Expand Down Expand Up @@ -166,7 +166,7 @@ First, add the feature in your `Cargo.toml`
# Cargo.toml

[dependencies]
tfhe = { version = "0.11.1", features = ["strings"] }
tfhe = { version = "0.11.2", features = ["strings"] }
```

The `FheAsciiString` type allows to simply do homomorphic case changing of encrypted strings (and much more!):
Expand Down
2 changes: 1 addition & 1 deletion tfhe/docs/tutorials/parity_bit.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This function returns a Boolean (`true` or `false`) so that the total count of `
```toml
# Cargo.toml

tfhe = { version = "0.11.1", features = ["integer"] }
tfhe = { version = "0.11.2", features = ["integer"] }
```

First, define the verification function.
Expand Down
Loading