diff --git a/.github/workflows/make_release.yml b/.github/workflows/make_release.yml index bf665a1020..c693fb6ef5 100644 --- a/.github/workflows/make_release.yml +++ b/.github/workflows/make_release.yml @@ -30,6 +30,36 @@ env: NPM_TAG: "" jobs: + package: + runs-on: ubuntu-latest + outputs: + hash: ${{ steps.hash.outputs.hash }} + steps: + - name: Checkout + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 + with: + fetch-depth: 0 + - name: Prepare package + run: | + cargo package -p tfhe + - name: generate hash + id: hash + run: cd target/package && echo "hash=$(sha256sum ./*.crate | base64 -w0)" >> "${GITHUB_OUTPUT}" + + provenance: + needs: [package] + uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0 + permissions: + # Needed to detect the GitHub Actions environment + actions: read + # Needed to create the provenance via GitHub OIDC + id-token: write + # Needed to upload assets/artifacts + contents: write + with: + # SHA-256 hashes of the Python distributions. + base64-subjects: ${{ needs.package.outputs.hash }} + publish_release: name: Publish Release runs-on: ubuntu-latest diff --git a/README.md b/README.md index 0919dcdc1c..b12f3acd11 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ + SLSA 3

## About @@ -95,7 +96,7 @@ tfhe = { version = "*", features = ["boolean", "shortint", "integer", "x86_64"] > Note: aarch64-based machines are not yet supported for Windows as it's currently missing an entropy source to be able to seed the [CSPRNGs](https://en.wikipedia.org/wiki/Cryptographically_secure_pseudorandom_number_generator) used in TFHE-rs.

- ↑ Back to top + ↑ Back to top

### A simple example @@ -152,7 +153,7 @@ fn main() -> Result<(), Box> { } ``` -To run this code, use the following command: +To run this code, use the following command:

cargo run --release

> [!Note] @@ -162,12 +163,12 @@ to run in release mode with cargo's `--release` flag to have the best performanc *Find an example with more explanations in [this part of the documentation](https://docs.zama.ai/tfhe-rs/getting-started/quick_start)*

- ↑ Back to top + ↑ Back to top

-## Resources +## Resources ### TFHE deep dive - [TFHE Deep Dive - Part I - Ciphertext types](https://www.zama.ai/post/tfhe-deep-dive-part-1) @@ -190,7 +191,7 @@ to run in release mode with cargo's `--release` flag to have the best performanc Full, comprehensive documentation is available here: [https://docs.zama.ai/tfhe-rs](https://docs.zama.ai/tfhe-rs).

- ↑ Back to top + ↑ Back to top

@@ -208,7 +209,7 @@ When a new update is published in the Lattice Estimator, we update parameters ac ### Security model -The default parameters for the TFHE-rs library are chosen considering the IND-CPA security model, and are selected with a bootstrapping failure probability fixed at p_error = $2^{-40}$. In particular, it is assumed that the results of decrypted computations are not shared by the secret key owner with any third parties, as such an action can lead to leakage of the secret encryption key. If you are designing an application where decryptions must be shared, you will need to craft custom encryption parameters which are chosen in consideration of the IND-CPA^D security model [1]. +The default parameters for the TFHE-rs library are chosen considering the IND-CPA security model, and are selected with a bootstrapping failure probability fixed at p_error = $2^{-40}$. In particular, it is assumed that the results of decrypted computations are not shared by the secret key owner with any third parties, as such an action can lead to leakage of the secret encryption key. If you are designing an application where decryptions must be shared, you will need to craft custom encryption parameters which are chosen in consideration of the IND-CPA^D security model [1]. [1] Li, Baiyu, et al. "Securing approximate homomorphic encryption using differential privacy." Annual International Cryptology Conference. Cham: Springer Nature Switzerland, 2022. https://eprint.iacr.org/2022/816.pdf @@ -259,7 +260,7 @@ This software is distributed under the **BSD-3-Clause-Clear** license. Read [thi >We are open to collaborating and advancing the FHE space with our partners. If you have specific needs, please email us at hello@zama.ai.

- ↑ Back to top + ↑ Back to top

@@ -273,8 +274,8 @@ This software is distributed under the **BSD-3-Clause-Clear** license. Read [thi -🌟 If you find this project helpful or interesting, please consider giving it a star on GitHub! Your support helps to grow the community and motivates further development. +🌟 If you find this project helpful or interesting, please consider giving it a star on GitHub! Your support helps to grow the community and motivates further development.

- ↑ Back to top + ↑ Back to top